body {
  font-family: Arial, sans-serif !important;
  display: flex;
  min-height: 100vh;
}

/* HomePage Components */

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

.home-container{
  width: 82%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  overflow-y: auto;
  margin-left: 18%;
}

.main-content{
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 1rem 1rem;
}

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

.material-alert {
  padding: 16px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  transition: opacity 0.3s ease;
}
.alert-success.material-alert {
  background-color: #17aa67;
}

.alert-danger.material-alert {
  background-color: #d42411;
}

button.close {
  border: none;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
}

.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;
}

/* Navigation Bar Left */

.nav-container{
  width: 18%;
  background-color: #212529;
  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: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.5rem;
  margin: 0;
}

.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: #198754;
  border: 1px solid #198754;
  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: #000;
  border: 1px solid #000;
}
.component-item.disabled {
  background-color: #6c757d; /* Gray background for disabled buttons */
  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: #0d6efd !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: #0d6efd !important;
  color: #fff;
}

/* CVI Form */

.cvi-form {
  background-color: #f3f3f3;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 80%;
  margin: 0 auto;
}

.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 .form-section h2 {
  font-size: 1.25rem;
  color: #000000;
  border-bottom: 2px solid #000000;
  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;
}

#add_animal {
  border-radius: 12px !important;
  padding: 0.25rem 1rem;
  margin-left: 0.5rem;
}

#add_group_lot {
  border-radius: 0.3rem !important;
  padding: 0.15rem 0.5rem;
  margin-left: 0.2rem;
  margin-top: 0.8rem;
  font-size: 0.8rem !important;
}

#tags-container {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
}

.animal-section {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: #fff;
}

.add-tag {
  display: block;
}

.add-tag {
  border: 1px solid #3c763d;
  background-color: #3c763d;
  color: #fff;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  border-radius: 10px;
}

.add-tag:hover {
  background-color: #fff;
  color: #3c763d;
}
.remove-tag{
  cursor: pointer;
  padding-top: 0.5rem;
}

.vaccination-wrapper{
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
}
.test-result-wrapper{
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
}
.remove-vaccination{
  cursor: pointer;
  padding-top: 0.5rem;
}
.remove-test-result{
  cursor: pointer;
  padding-top: 2.5rem;
}

.remove_animal {
  margin-top: 15px;
  border-radius: 10px !important;
  padding: 0.15rem 0.8rem !important;
  font-size: 0.9rem !important; 
}

.remove_group_lot {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  border-radius: 0.3rem !important;
  padding: 0.15rem 0.5rem !important;
  font-size: 0.8rem !important; 
}

.cvi-submit{
  display: flex;
  gap: 1rem;
  justify-content: center; 
}
.cvi-index{
  text-decoration: none;
  border: 2px solid #198754;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  padding: 0.2rem 1rem;
  font-size: 1rem ;
  text-align: center;
  width: 15%;
  background-color: #198754 ;
  transition: all 0.3s ease;
}
.submit-button{
  width: 100%;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem ;
  border: 2px solid #0d6efd;
  background-color: #0d6efd ;
  padding: 0.3rem 1rem;
  border-radius: 10px;
  width: 20%;
  transition: all 0.3s ease;
}
.finalise-submit{
  background-color: #198754 ;
  border: 2px solid #198754;
}

.submit-button:hover {
  color: #000;
  border: 2px solid #000;
  background-color: #fff;
}

.cvi-index:hover {
  color: #000;
  border: 2px solid #000;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.address-header h2 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #343a40;
  text-align: center;
  margin-bottom: 1.5rem;
}

.address-section {
  background-color: #f3f3f3;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  margin: 0 auto;
}
/* Address Suggestion in Create/Edit CVI form */

.suggestions-container {
  border: 1px solid #ccc;
  background: white;
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  position: absolute;
}

.suggestion-item {
  padding: 8px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* 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-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.cvi-home{
  .back-home-button{
    margin-left: 0rem;
  }
}

.cvi-actions{
  display: flex;
  margin-top: auto;
}
.print-button{
  text-decoration: none;
  color: #fff;
  background-color: #d6d318;
  border-color: #d6d318;
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 5px;
  border: 0.5px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.xml-button{
  text-decoration: none;
  color: #fff;
  background-color: #11561a;
  border-color: #11561a;
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 5px;
  border: 0.5px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.print-button:hover, .xml-button:hover{
  color: #000;
  background-color: #fff;
  border-color: #000;
}
.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;
}

.search-form .form-control {
  border-radius: 10px;
  padding-left: 20px;
  background-color: #f8f9fa;
}

.clear-search {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: #dc3545; 
  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: #007bff;
  font-weight: bold;
  display: flex;
  align-items: center;
  border: 2px solid #007bff;
  background-color: #ffff;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.search-btn:hover{
  color: #fff;
  background-color: #007bff;
}

/* Pagination */

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f5f5f5;
}
.pagination-info p {
  margin: 0;
  padding-left: 0.5rem;
}

.pagination {
  margin: 0; 
  padding-right: 0.5rem;
}


/* Address Book  */
.address-form {
  background-color: #f3f3f3;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 70%;
  margin: 0 auto;
}

.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-button {
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid #0d6efd;
  background-color: #0d6efd;
  color: #fff;
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  margin-left: 0.5rem;
}


/* Address Index */

.add-address {
  margin-bottom: 1rem;
}

.add-new-address{
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #198754;
  background-color: #198754;
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}
.address-container{
  background-color: #f9f9f9;
  padding: 1rem;
}

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

.header-color{
  background-color: #f7ba0b !important;
}

.actions-column {
  display: flex;
}
.edit-button, .delete-button {
  padding: 0.1rem 0.5rem;
  font-size: 0.85rem;
  margin-right: 5px;
  border: 0.5px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.edit-button {
  text-decoration: none;
  color: #fff;
  background-color: #4381c1;
  border-color: #4381c1;
}

.badge-success {
  background-color: #28a745;
  color: #fff;
}

.badge-secondary {
  background-color: #6c757d;
  color: #fff;
}

.delete-button {
  color: #fff;
  background-color: #ff1f1f;
  border-color: #ff1f1f;
}

.address-limit-info {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.badge-info {
  background-color: #198754;
  color: #fff;
  padding: 0.5rem 1rem !important;
  font-size: 1rem !important;
}

.edit-button:hover, .delete-button:hover, .back-home-button:hover, .address-button:hover, .add-new-address:hover{
  color: #000;
  background-color: #fff;
  border-color: #000;
  transition: opacity 0.2s;
}

.back-home-button {
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #fff;
  background-color: #5cb85c;
  color: #fff;
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  margin-left: 0.5rem;
}

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

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

/* Account Information */

.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);
}

.question-mark {
  vertical-align: text-top !important;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  cursor: pointer;
}
.info-container {
  position: relative;
  display: inline-block;
}

.info-container .info-text {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.info-container .info-text::after {
  content: "";
  position: absolute;
  top: 100%; 
  left: 50%;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.info-container .question-mark:hover + .info-text {
  opacity: 1;
}

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

/* User Forms */

.user-form {
  background-color: #f3f3f3 !important;
  padding: 1.5rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  width: 75%; 
}

.signup-button{
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem ;
  border: 2px solid #2e891a;
  background-color: #2e891a ;
  padding: 0rem 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.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;
}

.login-box {
  width: 50%;
  min-width: 400px;
  max-width: 650px;
  padding: 2.5rem;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.login-button {
  width: 100%;
  background-color: #1a5589 !important;
  border: none !important;
  padding: 0.7rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
}

.login-signup-button {
  width: 100%;
  background-color: #6c63ff !important;
  border: none !important;
  padding: 0.7rem;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: 600;
}

.login-button:hover {
  background-color: #174a75 !important;
}

.login-signup-button:hover {
  background-color: #5a53d6 !important;
}

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

.small-link-button {
  font-size: 0.9rem;
  color: #1a5589;
  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;
}

/* 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: #f8f9fa; 
  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(0, 0, 0, 0.5);
  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;
}

