body {
  font-family: Arial, sans-serif !important;
}

.btn-primary {
  background-color: #7a8f4e !important;
  border-color: #7a8f4e !important;
}

.btn-primary:hover {
  background-color: #6b7f42 !important;
  border-color: #6b7f42 !important;
  transform: translateY(-1px) !important;
}
/* Landing */
.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  padding: 4rem 6rem;
  background: #f7f5ef;
  height: 85%;
}
.hero-left {
  padding-top: 2rem;
}

.hero-image {
  width: 100%;
  border-radius: 24px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  line-height: 1.4;
  max-width: 38rem;
  margin-bottom: 3rem;
}

.decor-green {
  background: #7a8f4e;
  border-radius: 24px;
  position: absolute;
}

.decor-green.top {
  width: 240px;
  height: 120px;
  top: -30px;
  right: 40px;
}

.landing-footer {
  padding: 1rem 6rem;
  background: #222;
  height: 15%;
}

.tracefirst-logo {
  height: 90px;
  top: 80px !important;
}

/* Landing buttons */
.landing-btn {
  text-decoration: none;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.landing-btn-primary {
  background-color: #7a8f4e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.landing-btn-primary:hover {
  background-color: #6b7f42;
  transform: translateY(-1px);
}

.landing-btn-secondary {
  background-color: transparent;
  color: #3f3f3f;
  border: 1.5px solid #b9b9b9;
}

.landing-btn-secondary:hover {
  border-color: #6b7f42;
  background-color: #f7f5ef;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* HomePage Components */

.main-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.signed-out .home-container {
  width: 100%;
  margin-left: 0;
}

.signed-in .home-container {
  width: 82%;
  margin-left: 18%;
  padding: 1.5rem 1rem 1rem 1rem;
}

.home-container{
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flash-alerts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  width: 300px;
  margin: 0;
}

.material-alert {
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  font-family: 'Roboto', sans-serif;
  transition: opacity 0.3s ease;
}

.alert-success.material-alert {
  background-color: #edf3e8;
  color: #2f4a1f;
  border-left: 4px solid #7a8f4e;
}

.alert-danger.material-alert {
  background-color: #f6ecea;
  color: #6a1f16;
  border-left: 4px solid #9b4a3c;
}

.material-alert__icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
  opacity: 0.85;
}

.material-alert__text {
  flex: 1;
}

button.close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  padding: 0;
  cursor: pointer;
  margin-left: 8px;
  line-height: 1;
  opacity: 0.7;
}

button.close:hover {
  opacity: 1;
}

.alert-dismissible.fade.show {
  opacity: 1;
  visibility: visible !important;
  transition: opacity 0.3s ease;
}

.components-menu{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
}
.user-components {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.component-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: stretch;
}

.component-block, .add-component{
  background-color: #f1f0f0;
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
  flex: 1;
  min-height: 200px;
  flex-direction: column;
}
.component-block {
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* NAVBAR LEFT */

.nav-container{
  width: 18%;
  background-color: #1f241a;
  padding: 10px;
  height: 100vh;
  position: fixed;
}

.navigation-bar{
  display: flex;
  flex-direction: column;
  height: 100%;
}
.navbar-top {
  display: flex;
  justify-content: center;
}

.navbar-title {
  color: #f7f5ef;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.5rem;
  margin: 0;
}
hr.border {
  border-color: rgba(255,255,255,0.1);
}

.navbar-middle{
  flex-grow: 1;
  overflow-y: auto;
}
.nav-pills{
  padding: 0rem 0.5rem;
  margin-top: 1rem;
  list-style: none;
}
.nav-component {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.nav-actions{
  display: flex;
}
.component-name {
  font-size: 1rem;
  display: inline-block;
  color: #fff; 
  margin-left: 0.5rem;
}
.component-item{
  text-decoration: none;
  color: #fff;
  background-color: #7a8f4e;
  border: 1px solid #7a8f4e;
  border-radius: 8px;
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.nav-actions li:first-child .component-item.cvis, .nav-actions li:first-child .component-item.addresses {
  border-radius: 8px 0 0 8px; 
  border-right: 1px solid #000;
}
.nav-actions li:last-child .component-item.cvis, .nav-actions li:last-child .component-item.addresses {
  border-radius: 0 8px 8px 0px; 
  border-left: none; 
} 

.component-item:hover{
  background-color: #fff !important;
  color: #6b7f42;
  border: 1px solid #6b7f42;
}
.component-item.disabled {
  background-color: #9aa388;
  border-color: #9aa388;
  color: #fff;
  cursor: not-allowed;
}

.navbar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 1rem;
}

.profile-name-wrapper {
  cursor: pointer;
  position: relative;
}

.profile-details {
  display: flex;
  align-items: center;
}
.profile-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%; 
  border: 1px solid #fff;
}

.profile-name {
  padding: 0.5rem 1rem;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-dropdown {
  display: none;
  position: absolute;
  background-color: #343a40;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  bottom: 100%;
  left: 0;
  margin-bottom: 10px;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-dropdown .dropdown-item {
  display: block;
  padding: 0.3rem 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 8px;
}

.profile-dropdown .dropdown-item:hover{
  background-color: #6b7f42 !important;
  color: #fff;
}

.signin-signup-buttons {
  display: flex;
  justify-content: center;
  padding: 0; 
  list-style: none; 
  gap: 1.5rem;
}

.nav-item{
  display: flex;
}
.navbar-item{
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.25rem 1rem;
  text-decoration: none;
  border-radius:8px;
  transition: background-color 0.3s;
}
.navbar-item:hover {
  background-color: #6b7f42 !important;
  color: #fff;
}

/* CVI FORM */

.cvi-form {
  background-color: #f7f5ef;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 80%;
  margin: 0 auto;
}
.cvi-form .form-control:focus {
  border-color: #7a8f4e;
  box-shadow: 0 0 0 0.15rem rgba(122, 143, 78, 0.25);
}

.cvi-form .form-header h1 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #343a40;
  text-align: center;
  margin-bottom: 1.5rem;
}
.cvi-form .form-section {
  margin-bottom: 2rem;
}
.cvi-form table thead th {
  background-color: #eef2e6;
  color: #2f3a1f;
  font-weight: 600;
  text-align: center;
}

.cvi-form .form-section h2 {
  font-size: 1.25rem;
  color: #667d37;
  border-bottom: 2px solid #7a8f4e;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-label {
  font-weight: bold;
  color: #212529;
}

.form-control {
  border: 1px solid #ced4da;
  border-radius: 8px;
  height: 35px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.group-lot-fields {
  background-color: #ffffff;
  border: 1px solid #e0e5d8;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
#add_group_lot {
  background-color: #7a8f4e;
  border-color: #7a8f4e;
  padding: 0.25rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}
#add_group_lot:hover {
  background-color: #6b7f42;
  border-color: #6b7f42;
}
.remove_group_lot {
  background-color: #9b4a3c !important;
  border-color: #9b4a3c !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.8rem !important;
  margin-top: 0.5rem !important;
  cursor: pointer;
}
.remove_group_lot:hover {
  background-color: #7d3c30 !important;
  border-color: #7d3c30 !important;
}

.animal-section {
  background-color: #ffffff;
  border: 1px solid #e0e5d8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
#add_animal {
  background-color: #7a8f4e;
  border-color: #7a8f4e;
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 1rem;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
#add_animal:hover {
  background-color: #6b7f42;
  border-color: #6b7f42;
  color: #fff;
}
.remove_animal {
  background-color: #9b4a3c !important;
  border-color: #9b4a3c !important;
  border-radius: 8px !important;
  padding: 0.25rem 0.9rem !important;
  font-size: 0.85rem !important;
  margin-top: 15px;
  cursor: pointer;
}
.remove_animal:hover {
  background-color: #7d3c30 !important;
  border-color: #7d3c30 !important;
}

#tags-container {
  border: 1px solid #e0e5d8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #f7f5ef;
  margin-bottom: 1rem;
}
.add-tag {
  align-items: center;
  border: 1px solid #7a8f4e;
  background-color: #7a8f4e;
  color: #fff;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  border-radius: 10px;
}
.add-tag:hover {
  background-color: #6b7f42;
  border-color: #6b7f42;
}
.remove-tag{
  cursor: pointer;
  padding-top: 0.5rem;
  color: #9b4a3c !important;
}
.remove-tag:hover {
  color: #7d3c30 !important;
}

.vaccination-wrapper,
.test-result-wrapper {
  border: 1px solid #e0e5d8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: #f7f5ef;
  margin-bottom: 1rem;
}
.add-vaccination, .add-test-result{
  color: #7a8f4e;
  border-color: #7a8f4e;
}
.add-test-result:hover, .add-vaccination:hover {
  background-color: #7a8f4e;
  color: #fff;
}
.remove-vaccination{
  cursor: pointer;
  padding-top: 0.5rem;
  color: #9b4a3c !important;
}
.remove-test-result{
  cursor: pointer;
  padding-top: 2.5rem;
  color: #9b4a3c !important;
}
.remove-vaccination:hover,
.remove-test-result:hover {
  color: #7d3c30 !important;
}

.cvi-submit{
  display: flex;
  gap: 1rem;
  justify-content: center; 
}

.submit-button{
  color: #7a8f4e;
  font-weight: bold;
  font-size: 1.2rem ;
  border: 2px solid #7a8f4e;
  background-color: #ffffff ;
  padding: 0.3rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  width: 20%;
  transition: all 0.25s ease;
}
.finalise-submit{
  background-color: #7a8f4e ;
  border: 2px solid #7a8f4e;
  color: #fff;
}
.submit-button:hover {
  color: #fff;
  border: 2px solid #7a8f4e;
  background-color: #7a8f4e;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.finalise-submit:hover {
  background-color: #546b22;
  border: 2px solid #546b22;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.address-header h2 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2f2f2f;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Address Suggestion in Create/Edit CVI form */

.suggestions-container {
  border: 1px solid #d6dccb;
  background-color: #fff;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1050;
  position: absolute;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  margin-top: 4px;
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #2f2f2f;
  border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:last-child {
  border-bottom: none;
}
.suggestion-item:hover {
  background-color: #eef2e6;
  color: #2f3a1f;
}
/* CVIS VIEW */

.cvi-view {
  display: flex;
  height: 100vh;
  padding: 0rem !important;
}

.left-view {
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  overflow-y: auto;
}

.right-view {
  padding: 0rem 0.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.certificate-title {
  font-size: 1.5rem;
}

.pdf-preview {
  border: 1px solid #ddd;
}

.text-muted {
  font-size: 0.9rem;
  color: #6c757d;
}
.cvi-details-headers{
  color: #5f6f3a !important;
  font-weight: bold;
}
.cvi-details-text{
  color: #000000 !important;
  font-weight: bold;
}
.cvi-details-subtext{
  color: #7a8f4e !important;
  font-weight: bold;
}

.cvi-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.cvi-actions{
  display: flex;
  margin-top: auto;
}
.print-button, .xml-button{
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.print-button { 
  color: #fff;
  background-color: #7a8f4e;
  border-color: #7a8f4e;
}

.xml-button{
  color: #7a8f4e;
  background-color: #f7f5ef;
  border-color: #7a8f4e;
}

.print-button:hover, .xml-button:hover{
  color: #7a8f4e;
  background-color: #fff;
  border-color: #7a8f4e;
}
.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* CVIS INDEX */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}
.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 2px 8px;
  border-radius: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: -150%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
}
.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.text-success {
  color: #7a8f4e !important;
}

.cvi-index.btn-primary{
  text-decoration: none;
  border: 2px solid #7a8f4e;
  color: #fff !important;
  font-weight: bold;
  border-radius: 10px;
  padding: 0.2rem 1rem;
  text-align: center;
  width: 15%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  background-color: #7a8f4e !important;
  transition: all 0.3s ease;
}

.cvi-index.btn-primary:hover {
  background-color: #fff !important;
  border-color: #6b7f42 !important;
  color: #7a8f4e !important; 
}

.cvi-index.btn-primary.disabled {
  background-color: #a3ad8c;
  border-color: #a3ad8c;
  opacity: 0.8;
}

.search-form .form-control {
  border-radius: 10px;
  padding-left: 20px;
  background-color: #f7f5ef;
  border: 1px solid #d6dccb;
}

.search-form .form-control:focus {
  border-color: #7a8f4e;
  box-shadow: 0 0 0 0.15rem rgba(122, 143, 78, 0.25);
}

.clear-search {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9b4a3c !important; 
  font-weight: bold;
  text-decoration: none; 
  padding: 0rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.search-btn {
  padding: 0rem 0.5rem !important;
  color: #7a8f4e;
  font-weight: bold;
  display: flex;
  align-items: center;
  border: 2px solid #7a8f4e;
  background-color: #ffff;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.search-btn:hover{
  color: #fff;
  background-color: #7a8f4e;
}
.cvis-table {
  border-radius: 10px;
  overflow: hidden;
}

.badge-success {
  background-color: #7a8f4e;
  color: #fff;
}
.badge-danger {
  background-color: #9b4a3c;
  color: #fff;
}
.badge-warning {
  background-color: #d2b24c;
  color: #fff !important;
}

.btn-outline-info,
.btn-outline-secondary,
.btn-outline-primary {
  color: #7a8f4e !important;
  border-color: #7a8f4e !important;
}

.btn-outline-info:hover,
.btn-outline-secondary:hover,
.btn-outline-primary:hover {
  background-color: #7a8f4e !important;
  color: #fff !important;
}

.void-cvi-btn {
  background-color: #a0563f !important;
  border-color: #a0563f !important;
  color: #fff !important;
}
.void-cvi-btn:hover {
  background-color: #874635 !important;
  border-color: #874635 !important;
}

.btn-outline-danger {
  color: #7d3c30 !important;
  border-color: #7d3c30 !important;
  background-color: transparent !important;
}
.btn-outline-danger:hover {
  background-color: #7d3c30 !important;
  color: #fff !important;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.1rem;
  border: 1px solid #d6dccb;
  border-radius: 5px;
  background-color: #f7f5ef;
}
.pagination {
  margin: 0; 
  padding-right: 0.5rem;
}
.pagination a {
  color: #7a8f4e;
}
.pagination .active span {
  background-color: #7a8f4e;
  border-color: #7a8f4e;
  color: #fff;
}
.pagination-info p {
  margin: 0;
  padding-left: 0.5rem;
}
.pagination .page-link {
  color: #7a8f4e;
  border-color: #d6dccb;
  background-color: #fff;
  border-radius: 6px;
  margin: 0 2px;
}
.pagination .page-link:hover {
  color: #fff;
  background-color: #7a8f4e;
  border-color: #7a8f4e;
}
.pagination .page-link:focus {
  box-shadow: 0 0 0 0.15rem rgba(122, 143, 78, 0.35);
  background-color: #7a8f4e;
  color: #fff;
  border-color: #7a8f4e;
}
.pagination .page-item.active .page-link {
  background-color: #7a8f4e;
  border-color: #7a8f4e;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #9aa388;
  background-color: #f7f5ef;
  border-color: #d6dccb;
}


/* Address Book  */
.address-form {
  background-color: #f7f5ef;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  width: 70%;
  margin: 0 auto;
  border: 1px solid #e0e5d8;
}

.address-form .form-header h1 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #343a40;
  text-align: center;
  margin-bottom: 1.5rem;
}
.address-form .form-section {
  margin-bottom: 2rem;
}
.address-form .form-control:focus {
  border-color: #7a8f4e;
  box-shadow: 0 0 0 0.15rem rgba(122, 143, 78, 0.25);
}
.checkbox-input {
  accent-color: #7a8f4e;
}

.address-button {
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid #7a8f4e;
  background-color: #7a8f4e;
  color: #fff;
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  margin-left: 0.5rem;
  transition: all 0.25s ease;
}

.address-button:hover {
  background-color: #6b7f42;
  border-color: #6b7f42;
  color: #fff;
}

/* Address Index */

.add-address {
  margin-bottom: 1rem;
}
.add-new-address {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #7a8f4e;
  background-color: #7a8f4e;
  color: #fff !important;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.25s ease;
}
.add-new-address:hover {
  background-color: #6b7f42 !important;
  border-color: #6b7f42 !important;
}
.add-new-address.disabled {
  background-color: #a3ad8c;
  border-color: #a3ad8c;
  cursor: not-allowed;
  opacity: 0.8;
}
.address-table {
  border-radius: 10px;
  overflow: hidden;
}


.badge-secondary {
  background-color: #9aa388;
  color: #fff;
}
.address-details-container {
  background-color: #f7f5ef;
  border: 1px solid #e0e5d8;
  border-radius: 12px;
  padding: 2rem;
  width: 70%;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.address-details-container table.table {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.address-details-container table.table th {
  width: 35%;
  background-color: #eef2e6;
}

.address-details-container table.table td {
  border-bottom: 1px solid #f0f0f0;
}

.address-container{
  padding: 1rem;
}

.address-container h1 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #333;
}

.header-color{
  background-color: #5f6f3a !important;
  color: #fff !important;
  font-weight: 600;
}

.actions-column {
  display: flex;
  gap: 0.35rem;
}
.address-container .table > tbody > tr.row-active > * {
  background-color: #cdddbf !important;
}
.address-container .table > tbody > tr.row-inactive > * {
  background-color: #f3f3f3 !important;
  color: #6b6b6b;
}
.btn-outline-success,
.btn-outline-warning {
  color: #b0892e !important;
  border-color: #b0892e !important;
}

.btn-outline-success:hover,
.btn-outline-warning:hover {
  background-color: #b0892e !important;
  color: #fff !important;
}
.btn-outline-danger {
  color: #9b4a3c !important;
  border-color: #9b4a3c !important;
}

.btn-outline-danger:hover {
  background-color: #9b4a3c !important;
  color: #fff !important;
}
.address-limit-info {
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.badge-info {
  background-color: #7a8f4e;
  color: #fff;
  padding: 0.4rem 0.9rem !important;
  font-size: 1rem !important;
}

.back-home-button {
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid #556931;
  background-color: #556931;
  color: #ffff;
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
}

.back-home-button:hover {
  background-color: #ffff;
  color: #556931;
}

.address-container table td {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
}

.pagination-info p {
  font-size: 0.85rem;
}

/* Account Information */
.profile-page {
  width: 80%;
  margin: 0 auto;
}
.profile-title {
  font-size: 1.6rem;
  font-weight: 700;
}
.profile-card {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e0e5d8 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
.profile-card-body {
  background-color: #f7f5ef;
}
.profile-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e5d8;
}
.profile-section:last-child {
  border-bottom: none;
}
.profile-subtitle {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #6b7f42;
}
.profile-label {
  color: #6b6b6b;
  font-weight: 700;
}
.question-mark {
  vertical-align: text-top !important;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  cursor: pointer;
  opacity: 0.85;
}
.info-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.info-container .info-text {
  background-color: #1f241a;
  color: #f7f5ef;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(247, 245, 239, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 1050;
}
.info-container .info-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1f241a transparent transparent transparent;
}
.info-container .question-mark:hover + .info-text {
  opacity: 1;
}
.badge-pro {
  background-color: #ff4500;
  font-size: 0.9rem !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: 1px solid #cc3700;
}
.badge-state {
  background-color: #6f42c1;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.badge-free-plus {
  background-color: #17a2b8;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.badge-free {
  background-color: #007bff;
  font-size: 0.85rem !important;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
.profile-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  align-items: center;
}
.profile-btn {
  border-radius: 10px !important;
  padding: 0.45rem 1rem !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}
.back-button {
  background-color: #f7f5ef;
  border: 2px solid #d6dccb;
  color: #2f2f2f;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.back-button:hover {
  background-color: #e3e7d8;
  color: #2f2f2f;
}
.edit-button {
  background-color: #7a8f4e;
  border: 2px solid #7a8f4e;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.edit-button:hover {
  background-color: #6b7f42;
  border-color: #6b7f42;
  color: #fff;
}
.delete-button {
  background-color: #9b4a3c;
  border: 2px solid #9b4a3c;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.delete-button:hover {
  background-color: #7d3c30;
  border-color: #7d3c30;
  color: #fff;
}


.profile-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-edit{
  display: flex;
}

/* User Forms */

.user-form {
  background-color: #f7f5ef !important;
  padding: 1.5rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  width: 85%; 
}

.user-form .form-control:focus {
  border-color: #7a8f4e;
  box-shadow: 0 0 0 0.15rem rgba(122, 143, 78, 0.25);
}

.signup-button{
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem ;
  border: 2px solid #7a8f4e;
  background-color: #7a8f4e ;
  padding: 0rem 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
  width: 20% !important;
}

.password-edit{
  color: #fff;
  font-weight: bold;
  font-size: 1rem ;
  border: 2px solid #1a3489;
  background-color: #1a3489 ;
  padding: 0.1rem 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}
.update-account-button{
  color: #fff;
  font-weight: bold;
  font-size: 1rem ;
  border: 2px solid #1a5589;
  background-color: #1a5589 ;
  padding: 0.1rem 2.5rem;
  border-radius: 5px;
  margin-top: 1rem;
}

.signup-button:hover, .update-account-button:hover, .password-edit:hover{
  color: #000;
  background-color: #fff;
  border-color: #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.login-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem;
}
.fa-icon {
  color: #7a8f4e;
  opacity: 0.85;
}

.login-box {
  width: 40%;
  min-width: 400px;
  padding: 2.5rem;
  border-radius: 15px;
  background: #f7f5ef;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.login-box h2 {
  font-weight: 700;
  color: #1f1f1f;
}

.login-btn {
  width: 100%;
  border: none !important;
  padding: 0.7rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.login-btn-primary {
  background-color: #7a8f4e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.login-btn-primary:hover {
  background-color: #6b7f42;
  transform: translateY(-1px);
}

.login-box .form-control:focus {
  border-color: #7a8f4e;
  box-shadow: 0 0 0 0.15rem rgba(122, 143, 78, 0.25);
}

.login-signup-button {
  width: 100%;
  background-color: transparent !important;
  border: none !important;
  padding: 0.7rem;
  color: #3f3f3f !important;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1.5px solid #b9b9b9 !important;
}

.login-signup-button:hover {
  border-color: #6b7f42 !important;
  background-color: #f7f5ef !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.password-toggle-btn {
  border: none !important;
  background: transparent !important;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
}

.password-toggle-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

.password-toggle-btn i {
  font-size: 1.1rem;
  color: #6c757d;
}


.small-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.small-link-button {
  font-size: 0.9rem;
  color: #6b7f42;
  text-decoration: none;
  font-weight: 600;
}

.small-link-button:hover {
  text-decoration: underline;
}

.google-container {
  display: flex;
  justify-content: center;
}

.google-container .g_id_signin {
  max-width: 300px !important;
  width: 100% !important;
}

/* EXPORTED CVIS */
.exported-cvis-page {
  width: 98%;
  margin: 0 auto;
}
.exported-cvis-title {
  text-align: center;
  margin-bottom: 1.25rem;
  color: #2f2f2f;
  font-weight: 700;
}
.exported-cvis-table {
  border-radius: 10px;
  overflow: hidden;
}
tbody > tr.table-success > * {
  background-color: #edf3e8 !important;
}
tbody > tr.table-warning > * {
  background-color: #fbf6e8 !important;
}
tbody > tr.table-danger > * {
  background-color: #f6ecea !important;
}
tbody > tr.table-light > * {
  background-color: #ffffff !important;
}
.export-link {
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #7a8f4e;
  background-color: #f7f5ef;
  color: #7a8f4e;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.export-link:hover {
  background-color: #7a8f4e;
  color: #fff;
  border-color: #7a8f4e;
}

/* DIVIDERS */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.4rem 0;
  color: #7a7a7a;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
  margin: 0 10px;
}
/* Footer */

.footer {
  background-color: #ffff; 
  text-align: center;
  margin-top: auto;
  padding-top: 5px;
}
.footer-text{
  font-size: 1.2rem;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 58, 31, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-wrapper {
  text-align: center;
  color: white;
  font-size: 18px;
}

.table-container {
  margin-top: 1.5rem;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.eula-box {
  font-size: 0.9rem;
  background-color: #f9f9f9;
  border-radius: 6px;
  line-height: 1.4;
  overflow-y: auto;
  max-height: 250px;
  border: 1px solid #ccc;
}

