/* home.html */
      #map {
        width: 100%;
        max-width: 1000px;
        height: 40vw;        
        margin: 0 auto;      
      }
      .modal .card {
        margin-bottom: 0.5rem;  
      }

      .modal .card-body {
        padding: 0.5rem 0.75rem;
      }

      .modal .card-body p {
        margin: 0.25rem 0;       
        font-size: 0.9rem;       
      }

      .modal .card-title {
        margin-bottom: 0.3rem;   
        font-size: 1rem;         
      }

      .legend {
        background: white;
        padding: 6px 10px;
        border-radius: 5px;
        box-shadow: 0 0 6px rgba(0,0,0,0.3);
        font-size: 10px;
      }
      .legend h6 {
        margin: 0 0 4px 0;
        font-weight: bold;
        font-size: 10px;
      }
    .role-circle {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 60px;
      margin: 5px;
    }

    .role-label {
      text-align: center;
      font-size: 11px;
      margin-top: 4px;
    }

    #rolesMetrics {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
      align-items: center;    
    }
    #totalResearchersCard {
      display: flex;
      flex-direction: column;
      justify-content: center; 
      align-items: center;      
      font-size: 1.5rem;        
      font-weight: bold;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
    }
    #totalResearchersLabel {
      font-size: 1rem;        
      margin-bottom: 5px;
    }
    .btn-community {
      background-color: #1565C0;   
      color: white;
      text-align: center;
      display: flex;
      align-items: center;         
      justify-content: center;   
      width: 100%;
      padding: 12px 10px;       
      border: none;
      border-radius: 6px;
      line-height: 1.2;            
      white-space: normal;         
      font-size: 0.95rem;
      font-weight: 500;
      transition: background-color 0.3s;
      min-height: 60px; 

    }

    .btn-community:hover {
      background-color: #0D47A1;
      text-decoration: none;
      color: white;
    }

    .modal-body .btn-community {
      margin-bottom: 5px;       
    }

/* login.html */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* vertically center */
}

.login-form {
    width: 350px;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fff;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #0056b3;
}

.login-form .errorlist {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* register.html */

.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #357ab8;
}

.radio-group {
  display: flex;
  justify-content: center;  
  align-items: center;
  gap: 15px;                
  flex-wrap: nowrap;        
}

.radio-group .form-check-inline {
  display: flex !important;      
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-shrink: 1;               
}

.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #4c956c;
}

.radio-group .form-check-inline label {
  white-space: nowrap;          
  font-size: 0.9rem;
  text-align: center;
}

/* Mobile view */
@media (max-width: 480px) {
  .radio-group {
    gap: 10px;                  
  }

  .radio-group .form-check-inline {
    flex: 1 1 auto;             
    justify-content: center;     
  }
}


.user-type-description {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  text-align: justify;
  line-height: 1.4;
}

.popover-body {
    text-align: center;
}
/* login and register btn */
button.btn-custom {
    background-color: #4c956c !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button.btn-custom:hover {
    background-color: #3b7a54 !important;
}

/* Responsive fix for home layout */
@media (max-width: 768px) {
  /* Force column stacking */
  #main-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Map first */
  #map {
    order: 1 !important;
    width: 100% !important;
    min-height: 400px !important;
    margin-bottom: 10px !important;
  }

  /* Both metrics below map */
  #metrics-left,
  #metrics-right {
    order: 2 !important;
    width: 50% !important;
    margin: 0 !important;
    padding: 5px !important;
    display: inline-block !important;
    vertical-align: top !important;
  }

  /* Place them next to each other */
  #main-layout {
    text-align: center;
  }
}

/* For very small phones */
@media (max-width: 480px) {
  #metrics-left,
  #metrics-right {
    width: 100% !important;
    display: block !important;
  }
}
/* navbar on mobile view */
@media (max-width: 768px) {
  .navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Smaller brand text */
  .navbar-brand {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Custom toggler button */
  #customNavbarToggler {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
  }

  /* Collapse menu */
  #customNavbar {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.25rem;
    align-items: flex-end; /* menu options on the right */
  }
  #customNavbar.show {
    display: flex;
  }

  /* Navbar links full width but aligned right */
  #customNavbar .nav-link {
    width: auto;           /* shrink to content */
    padding: 0.5rem 1rem;
    text-align: right;     /* align text right */
  }
}

/* Desktop (keep links horizontal) */
@media (min-width: 769px) {
  #customNavbar {
    display: flex !important;
    flex-grow: 1;
    justify-content: flex-end;
  }
  #customNavbar .nav-link {
    padding: 0.5rem 0.75rem;
    width: auto;
  }
}

/*field-set register-form*/
/* container background — the legend's background should match this */
.form-container {
  background: #ffffff; /* adjust if your form uses another color */
  padding: 20px;
  border-radius: 6px;
}

/* fieldset box */
.group-box {
  border: 1.5px solid #919293; /* box color */
  border-radius: 8px;
  padding: 1em 1em 1em;         /* space inside box */
  margin: 18px 0;
}

/* legend above the box */
.group-box legend {
  font-weight: 600;
  color: #4c956c;
  font-size: 1rem;
  padding: 0;
  margin-bottom: 0.5em;
}

/* small responsive tweak */
@media (max-width: 480px){
  .group-box legend { left: 10px; top: -0.6em; font-size: 0.9rem; }
}

/*checkbox register form*/
.checkbox-center {
  display: flex;
  justify-content: center;
}

.checkbox-center label {
  display: flex;
  align-items: center;  
  gap: 6px;
  cursor: pointer;
}

.checkbox-center input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.checkbox-center span {
  line-height: 1.2; 
  margin: 0;
}





