@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

* {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
}

body {
  font-size: 16px;
  color: #333;
}

#subtext {
  font-size: 12px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
  margin-bottom: 1rem;
}

.navbar-brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

a {
  color: #00B7FF;
}


.bg-church {
  background-color: #457507;
}

.btn-success {
  border-color: #457507 !important;
}

.btn-success:hover {
  background-color: #356006 !important;
  border-color: #356006 !important;
}

.bg-success {
  background-color: #457507 !important;
}


#mainContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  width: 100%;
  min-height: 60vh;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#profilingContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


#startProfilingBtn {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#pagination button {
  font-size: 16px;
  font-weight: 500;
}

.text-secondary {
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

#genCard {
  width: 70vw;
}

/* Better dropdown positioning */
#autocompleteList {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Base adjustments */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    /* Form controls - smaller but touch-friendly */
    .form-control, .form-select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    /* Buttons - good touch targets (min 44px) */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    /* Checkbox cards - compact for mobile */
    .checkbox-card {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .checkbox-card label {
        font-size: 13px;
    }
    
    /* Member cards */
    .member-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .member-card h6 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Remove button */
    .remove-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: 8px;
        right: 8px;
    }
    
    /* Table adjustments */
    .table {
        font-size: 12px;
    }
    
    .table th, .table td {
        padding: 6px 4px;
    }
    
    /* Cards */
    .form-card {
        padding: 12px !important;
    }
    
    /* Progress bar */
    .progress-custom {
        height: 6px;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 16px;
    }
    
    /* Container */
    .col-lg-10 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Modal */
    .modal-body {
        padding: 12px;
    }
    
    /* SweetAlert */
    .swal2-popup {
        font-size: 14px;
        padding: 12px;
    }
    
    /* Autocomplete */
    #autocompleteList {
        font-size: 13px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .checkbox-card {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .form-control, .form-select {
        font-size: 13px;
    }
}