/* Enhanced Public Health CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9)),
        url("/images/wallpaper/global_stats_bg.png");

    background-repeat: repeat;
    background-position: center;
    background-size: auto;

    filter: blur(1px);
    transform: scale(1.05); /* prevents blur edges */
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header with government aesthetic */
header {
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
background: linear-gradient(135deg, #12756f 0%, #5fdfbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header .subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* Welcome section */
.welcome-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

/* Main dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Request form styling */
.request-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.request-form-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Customized UI area */
.customized-ui-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
    min-height: 400px;
    margin-top: 20px;
}

.customized-ui-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.pending-approval {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.pending-approval .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Data cards grid */
.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #3498db;
}

.data-card:hover {
    transform: translateY(-5px);
}

.data-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    color: #7f8c8d;
    margin-top: 3rem;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

}

.verification-badge {
    background: #14ffec;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Enhanced Data Cards */
.data-features {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Access Tiers */
.access-tiers-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tier-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
    border-top: 4px solid #bdc3c7;
    transition: transform 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-3px);
}

.tier-card.basic {
    border-top-color: #3498db;
}

.tier-card.enhanced {
    border-top-color: #9b59b6;
}

.tier-card.full {
    border-top-color: #e74c3c;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tier-header h4 {
    color: #2c3e50;
    margin: 0;
}

.tier-badge {
    background: #34495e;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tier-features {
    list-style: none;
    padding: 0;
}

.tier-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    color: #7f8c8d;
}

.tier-features li:last-child {
    border-bottom: none;
}

/* Interactive Data Cards */
.data-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-card::after {
    content: '🔍 Click for details';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #3498db;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-card:hover::after {
    opacity: 1;
}

.data-card.expanded {
    grid-column: 1 / -1;
    text-align: left;
}

.data-card.expanded .data-features {
    display: flex;
}
/* Data Statistics */
.data-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}
.jurisdiction-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jurisdiction-stats {
  display: flex;
  gap: 2rem;
}
.jurisdiction-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}
.stat {
    text-align: center;
}
.jurisdiction-meta {
  display: flex;
  gap: 0.5rem;
}
.comparison-tabs {
  margin-bottom: 1.5rem;
}
.comparison-nav {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.25rem;
}
.jurisdiction-info .badge {
  background: #6c757d;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.comparison-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.comparison-tab:hover {
  background: #e9ecef;
}

.comparison-tab.active {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #667eea;
}

.level-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.level-local { background: #4CAF50; color: white; }
.level-country { background: #2196F3; color: white; }
.level-global { background: #9C27B0; color: white; }
.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.2rem;
}

/* Analytics Tools Section */
.analytics-tools-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem 0;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.tool-features {
    margin: 1rem 0;
}

.tool-features span {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.tool-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s ease;
}

.tool-button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* Methodology Section */
.methodology-section {
    background: rgba(52, 152, 219, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.methodology-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.methodology-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.methodology-card ul {
    list-style: none;
    padding: 0;
}

.methodology-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
    color: #7f8c8d;
}

.methodology-card li:last-child {
    border-bottom: none;
}

.methodology-card strong {
    color: #2c3e50;
}
/* Modal Styles */
.category-modal,
.tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-section {
    margin: 1.5rem 0;
}

.modal-section h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    color: #7f8c8d;
}

.modal-section li:last-child {
    border-bottom: none;
}

.modal-specs {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.spec {
    margin-bottom: 0.5rem;
}

.spec:last-child {
    margin-bottom: 0;
}

.access-badge {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-close {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
}

.tool-loading {
    text-align: center;
    padding: 2rem;
}








        /* Loading State */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255,255,255,0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        
/* Update the loading spinner to use the same styling */
.loading-overlay .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0;
}

/* Keep the keyframes animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


        .logout-btn {
            background: var(--danger);
            background: #14ffec;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .logout-btn:hover {
            background: #c0392b;
            transform: translateY(-1px);
        }




/* Toast Message */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffe9b3;
  color: #5f5f5f;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  font-size: 16px;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast p {
  margin: 0;
}

.toast {
  animation: toastAnimation 1s ease-out forwards;
}

@keyframes toastAnimation {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* API Credentials Styles */
.api-credentials-section {
    margin: 20px 0;
}

.credentials-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.credentials-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.credential-display {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.credential-item {
    margin: 10px 0;
}

.credential-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.credential-item code {
    display: block;
    padding: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    word-break: break-all;
}

.credential-item code.secret {
    color: #e74c3c;
    font-weight: bold;
}

.client-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    background: white;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.client-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.client-actions button.danger {
    background: #e74c3c;
    color: white;
}

.scope-checkboxes {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 5px;
}

.scope-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Inactive (blue) */
.cred-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s ease;
}

.cred-button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* Active (red) */
.cred-button.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.cred-button.active:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}



.clipboard-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2c3e50;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 9999;
}

.clipboard-toast.success {
    background: #27ae60;
}

.clipboard-toast.error {
    background: #e74c3c;
}

.clipboard-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Token Display Styles */
.token-display {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-width: 90%;
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.token-card {
    padding: 20px;
}

.token-card h4 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.token-value {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.token-code {
    color: #e74c3c;
    font-size: 0.9em;
}

.copy-token-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.token-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.test-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
}

.close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Secret Input Styles */
.secret-section {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.secret-input-group {
    display: flex;
    gap: 5px;
}

.secret-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.eye-btn {
    background: #ecf0f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.secret-warning {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

/* Test Results */
.test-results {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border: 2px solid #27ae60;
    border-radius: 10px;
    padding: 20px;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.test-results pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
}

/* Get Token Button */
.get-token {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
}

.get-token:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}
/* Scope Tier Styling */
.scope-tier {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.scope-tier h5 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.tier-description {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-style: italic;
}

.consent-note {
    display: block;
    font-size: 0.8em;
    color: #e74c3c;
    margin-top: 3px;
    font-weight: bold;
}

.scope-option {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.scope-option:hover {
    background: #f8f9fa;
}

.patient-scope:checked ~ .consent-note {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Modal Styling */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.help-text {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-top: 5px;
}

.slider {
  width: 60px;
  height: 30px;
  background-color: lightgray;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 4px solid transparent;
  transition: .3s;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25) inset;
  cursor: pointer;
}

.slider::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transform: translateX(-30px);
  border-radius: 20px;
  transition: .3s;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.checkbox:checked ~ .slider::before {
  transform: translateX(30px);
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.checkbox:checked ~ .slider {
  background-color: #2196F3;
}

.checkbox:active ~ .slider::before {
  transform: translate(0);
}

/* Label styling */
label {
  font-size: 16px;
  margin-right: 10px; /* Add some space between label and switch */
  cursor: pointer;
}


.switch {
  display: flex;
  flex-direction: column; /* Aligns label above slider */
  align-items: center; /* Centers the content */
  justify-content: center;
}

/*==================================================================================================== Label styling ===============================================================*/
    .biostatistics-container {
      background-color: #f8f9fa;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
    }
    
    .stats-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      flex-wrap: wrap;
      gap: 16px;
    }
    
    .stats-header h2 {
      margin: 0;
      color: #2c3e50;
      font-size: 24px;
    }
    
    .stats-summary {
      display: flex;
      gap: 16px;
    }
    
    .summary-card {
      background: white;
      padding: 12px 20px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      text-align: center;
      min-width: 120px;
    }
    
    .summary-label {
      display: block;
      font-size: 12px;
      color: #6c757d;
      margin-bottom: 4px;
    }
    
    .summary-value {
      display: block;
      font-size: 24px;
      font-weight: bold;
      color: #2c3e50;
    }
    
    .description-section {
      background: white;
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 24px;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
    }
    
.chart-header {
  margin-bottom: 1rem;
}
.chart-header h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}
.chart-description {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}
.chart-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
}
.chart-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}
.no-data-message {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}
.insight-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #6c757d;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.insight-item.high {
  border-left-color: #dc3545;
}

.insight-item.medium {
  border-left-color: #ffc107;
}

.insight-item.low {
  border-left-color: #28a745;
}

.insight-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  min-width: 40px;
  text-align: center;
}

.insight-content {
  flex: 1;
}

.insight-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #333;
}

.insight-action {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
}

.insight-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.dashboard-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.dashboard-header h2 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.8rem;
}

.dashboard-header h2 i {
  margin-right: 10px;
  color: #4dc9f6;
}

.dashboard-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c757d;
  font-size: 0.95rem;
}

.simple-trends-dashboard {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}
.insight-tag.high {
  background: #dc3545;
  color: white;
}

.insight-tag.medium {
  background: #ffc107;
  color: #212529;
}

.insight-tag.low {
  background: #28a745;
  color: white;
}
.no-data-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #dee2e6;
}
.insights-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.no-data-message p {
  margin: 0;
  font-size: 1.1rem;
}

.metric-badge {
  background: #f8f9fa;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid #dee2e6;
}
.metric-badge strong {
  color: #495057;
  margin-right: 0.25rem;
}

    .charts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 24px;
      margin-top: 24px;
    }
    
    .chart-card {
      background: white;
      border-radius: 8px;
      padding: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s;
    }
    
    .chart-card:hover {
      transform: translateY(-2px);
    }
    
    .chart-card h3 {
      margin: 0 0 16px 0;
      font-size: 16px;
      color: #2c3e50;
    }
    
    .chart-container {
      position: relative;
      height: 250px;
      margin-bottom: 12px;
    }
    
    .chart-stats {
      padding-top: 12px;
      border-top: 1px solid #e9ecef;
    }
    
    .stat-item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 6px;
      font-size: 13px;
    }
    
    .stat-label {
      color: #6c757d;
    }
    
    .stat-value {
      font-weight: 600;
      color: #2c3e50;
    }
    
    .stat-value.good {
      color: #28a745;
    }
    
    .stat-value.warning {
      color: #ffc107;
    }
    
    .stat-value.poor {
      color: #dc3545;
    }
    
    .no-data {
      color: #6c757d;
      font-style: italic;
      text-align: center;
      padding: 8px;
    }
    
    .empty-state {
      text-align: center;
      padding: 48px;
      color: #6c757d;
      font-size: 16px;
      background: white;
      border-radius: 8px;
      border: 2px dashed #dee2e6;
    }
    
    @media (max-width: 768px) {
      .charts-grid {
        grid-template-columns: 1fr;
      }
      
      .stats-header {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .stats-summary {
        width: 100%;
        justify-content: space-between;
      }
      
      .summary-card {
        flex: 1;
        min-width: auto;
      }
    }

.critical { color: #d32f2f; }
.warning { color: #f57c00; }
.normal { color: #388e3c; }
}

/*==================================================================================================== Label styling ===============================================================*/

.consent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.consent-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.consent-card.approved { border-left: 5px solid #48bb78; }
.consent-card.pending { border-left: 5px solid #ecc94b; opacity: 0.8; }

.status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: bold;
}

.badge-approved { background: #c6f6d5; color: #22543d; }
.badge-pending { background: #fefcbf; color: #744210; }

.fetch-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #6b46c1;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.fetch-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}


/* ===== Section Scroll ===== */
.notifications-scroll { 
  margin-bottom: 20px;
  border-radius: 15px;
  padding: 20px;
  max-height: calc(50vh - 50px); /* Fixed height when visible */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), 
              0 0 20px rgba(0, 0, 0, 0.1);
  position: relative; /* Optional, if you need additional positioning */

  /* New scrollbar styles */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.3) rgba(255, 255, 255, 0.1); /* For Firefox */

  /* WebKit (Chrome, Safari, Edge) customization */
}

.notifications-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.notifications-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 4px 0;
}

.notifications-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s ease;
}

.notifications-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.notifications-scroll::-webkit-scrollbar-corner {
  background: transparent;
}

.center {
  text-align: center; 
  color: #2c3e50; 
  margin: 1rem 0 2rem 0;
}

