:root {
    --primary: #1e7e34;
    --primary-dark: #155724;
    --primary-light: #f0fdf4;
    --accent: #28a745;
    --success: #10b981;
    --danger: #ef4444;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e5e7eb;
    --base-font-size: 15px;
}

html {
    font-size: var(--base-font-size);
    transition: font-size 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
}

/* Screen Reader Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-rsib {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.hospital-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hospital-info p {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.4;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Tombol Mode Terang / Malam */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Switch Box di Header */
.header-switch-box {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-kars {
    background: rgba(255,255,255,0.9);
    color: #1e7e34;
}

.badge-kars img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.top-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.main-title h2 {
    color: #1e7e34;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-title p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Mode Switch Button */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--danger);
    transition: .3s; border-radius: 22px;
}

.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s; border-radius: 50%;
}

input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(22px); }

/* Panel Kontrol Penyesuaian Tampilan */
.display-settings-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.setting-btn {
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s;
}

.setting-btn:hover { background: #e2e8f0; }
.setting-btn.active { background: #1e7e34; color: #ffffff; border-color: #1e7e34; }

/* Simulasi Tampilan */
.container.force-tablet-view {
    max-width: 768px !important;
    border: 3px dashed #cbd5e1;
    padding: 10px;
    background: #f8fafc;
    border-radius: 12px;
}

.container.force-phone-view {
    max-width: 420px !important;
    border: 3px solid #64748b;
    padding: 8px;
    background: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Search Box Section */
.search-section {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.search-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.85rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

.btn {
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary { background: #1e7e34; color: white; }
.btn-primary:hover { background: #155724; transform: translateY(-1px); }

.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #5a6268; }

.btn-calc { background-color: #0284c7; color: white; }
.btn-calc:hover { background-color: #0369a1; transform: translateY(-1px); }

/* Quick Chips */
.symptom-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 8px 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.chips-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-right: 4px;
}

.chip-btn {
    padding: 4px 10px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn:hover { background-color: #1e7e34; color: #ffffff; border-color: #1e7e34; transform: translateY(-1px); }

/* Filters */
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover { border-color: #1e7e34; color: #1e7e34; }
.filter-btn.active { background: #1e7e34; color: white; border-color: #1e7e34; }

.filter-fav { border-color: #f59e0b !important; color: #d97706 !important; }
.filter-fav.active { background-color: #d97706 !important; color: #ffffff !important; }

/* Kotak Keamanan Klinis */
.ai-summary-box { 
    display: none; 
    margin-bottom: 1.5rem; 
    padding: 16px 20px; 
    border-radius: 10px; 
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 5px solid #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.05);
    font-size: 14px; 
    line-height: 1.6;
    color: #1f2937;
}

.ai-header { display: flex; align-items: center; font-weight: 700; color: #9f1239; font-size: 1.05rem; margin-bottom: 10px; }
.ai-highlight { background-color: #fecdd3; padding: 2px 8px; border-radius: 4px; font-weight: 700; color: #881337; }
.ai-highlight-notfound { background-color: #fee2e2; padding: 2px 8px; border-radius: 6px; font-weight: 700; color: #991b1b; }
.badge-pregnancy { background-color: #ffe4e6; color: #9f1239; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 12px; border: 1px solid #fecdd3; }

.medical-buttons { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed #fecdd3; margin-top: 10px; }
.btn-medical { display: inline-flex; align-items: center; color: white !important; padding: 6px 12px; font-size: 0.85rem; font-weight: 600; border-radius: 6px; text-decoration: none; cursor: pointer; transition: opacity 0.2s; }
.btn-medical:hover { opacity: 0.9; }
.btn-mims-direct { background-color: #0284c7; }
.btn-halodoc { background-color: #e0004d; }
.btn-alodokter { background-color: #1b4996; }
.btn-google { background-color: #4285f4; }

/* Download Buttons Group */
.download-btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.btn-download {
    padding: 10px 16px; border: none; color: white; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.btn-download-main { background-color: #0d9488; }
.btn-download-safety { background-color: #0284c7; }
.btn-download-dosage { background-color: #d97706; }

/* Stats Bar */
.stats-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding: 1rem; background: white; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.stats-info { color: #6b7280; font-size: 0.9rem; }
.stats-info strong { color: #1e7e34; font-size: 1.1rem; }

.status-bar { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; display: inline-block; }
.status-online { background-color: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-offline { background-color: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.status-syncing { background-color: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-manual-sync {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-manual-sync:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.sync-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.sync-icon.rotating {
    animation: spin 0.8s linear infinite;
}

/* Toast Notifikasi Sinkronisasi */
.sync-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    background: #1e293b;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    z-index: 99999;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sync-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sync-toast.sync-toast-success {
    background: #065f46;
    border: 1px solid #10b981;
}

.sync-toast.sync-toast-info {
    background: #1e3a8a;
    border: 1px solid #3b82f6;
}

.sync-toast.sync-toast-warning {
    background: #854d0e;
    border: 1px solid #eab308;
}

/* Table Style & Animasi Halus */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-row-animate {
    animation: fadeInSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.table-container { background: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); overflow: hidden; }
.table-wrapper { overflow-x: auto; max-height: 600px; }
table { width: 100%; border-collapse: collapse; }
thead { background: #1e7e34; color: white; position: sticky; top: 0; z-index: 10; }
th { padding: 1rem; text-align: left; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
td { padding: 1rem; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; vertical-align: top; }
tbody tr { animation: fadeInSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; transition: background-color 0.15s ease; }
tbody tr:hover { background: #f9fafb; }

@media (prefers-reduced-motion: reduce) {
    .table-row-animate,
    tbody tr {
        animation: none !important;
        transition: none !important;
    }
}

.btn-star {
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #cbd5e1;
    transition: transform 0.1s ease, color 0.2s ease; padding: 2px 6px;
}
.btn-star:hover { transform: scale(1.2); color: #f59e0b; }
.btn-star.active { color: #f59e0b; }

.tag { display: inline-block; padding: 0.25rem 0.75rem; background: #fef3c7; color: #92400e; border-radius: 4px; font-size: 0.8rem; margin: 0.2rem; }
.loading, .empty-state { text-align: center; padding: 3rem; color: #6b7280; }

.spinner {
    border: 3px solid #e5e7eb; border-top-color: #1e7e34; border-radius: 50%;
    width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal Kalkulator Dosis */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-content {
    background: #ffffff; width: 100%; max-width: 480px; border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); overflow: visible !important;
}
.modal-header { background: #0284c7; color: white; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.modal-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-body { padding: 1.25rem; overflow: visible !important; position: relative; }

.form-group { margin-bottom: 1rem; position: relative; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #334155; margin-bottom: 0.4rem; }
.form-group input, .form-group select {
    width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.95rem; font-family: inherit;
}

#calcDropdownResults {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px;
    max-height: 200px; overflow-y: auto; z-index: 9999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.calc-result-box { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 1rem; margin-top: 1rem; text-align: center; }
.result-title { font-weight: 700; color: #0369a1; font-size: 1rem; margin-bottom: 4px; }
.result-detail { font-size: 0.88rem; color: #334155; margin-bottom: 8px; }
.result-highlight { background: #0284c7; color: white; font-size: 1.15rem; font-weight: 700; padding: 8px; border-radius: 6px; margin-bottom: 6px; }
.result-note { font-size: 0.8rem; color: #64748b; font-style: italic; }

/* STYLING DARK MODE (MODE MALAM) */
body.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    background-color: var(--bg-color);
    color: var(--text-main);
}
body.dark-mode .search-section,
body.dark-mode .stats-bar,
body.dark-mode .table-container,
body.dark-mode .display-settings-bar,
body.dark-mode .symptom-chips,
body.dark-mode .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .search-input,
body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background-color: #0f172a !important; color: #f1f5f9 !important; border-color: #334155 !important;
}
body.dark-mode tbody tr:hover { background-color: #273548 !important; }
body.dark-mode td { border-bottom-color: #334155 !important; color: #cbd5e1; }
body.dark-mode .chip-btn { background-color: #0f172a; color: #cbd5e1; border-color: #334155; }
body.dark-mode .filter-btn { background-color: #1e293b; color: #cbd5e1; border-color: #334155; }
body.dark-mode #calcDropdownResults { background-color: #1e293b; border-color: #334155; color: #f1f5f9; }
body.dark-mode .btn-manual-sync { background-color: #1e293b; color: #cbd5e1; border-color: #475569; }
body.dark-mode .btn-manual-sync:hover { background-color: #334155; color: #f1f5f9; }

@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    .header-left { flex-direction: column; }
    .top-controls-bar { flex-direction: column; align-items: flex-start; }
    .search-wrapper { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .download-btn-group { flex-direction: column; }
    .btn-download { width: 100%; justify-content: center; }
}

/* Utility Classes */
.data-status-hidden { display: none; }
.modal-overlay-hidden { display: none; }
.form-group-relative { position: relative; }
.dropdown-results-hidden { display: none; }
.calc-result-box-hidden { display: none; }
.col-star { width: 40px; text-align: center; }
.col-no { width: 50px; }
.col-aksi { width: 80px; text-align: center; }

/* Tambah & Edit Obat Buttons */
.btn-add {
    background-color: #059669;
    color: white;
}
.btn-add:hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.btn-action-backup {
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.btn-action-backup:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
}

.btn-action-download {
    background-color: #0d9488;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.btn-action-download:hover {
    background-color: #0f766e;
    transform: translateY(-1px);
}

.btn-edit-row {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-edit-row:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    transform: scale(1.05);
}

/* Modal Styling untuk Input/Edit Obat */
.modal-content-large {
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.modal-content-medium {
    max-width: 520px;
}
.modal-header-green {
    background: linear-gradient(135deg, #1e7e34, #15803d);
}
.modal-header-blue {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}
.modal-scrollable {
    overflow-y: auto;
    max-height: calc(90vh - 130px);
    padding: 1.25rem 1.5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}
.form-group .required {
    color: #ef4444;
    font-weight: bold;
}
.form-section-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0 0.85rem;
    border-top: 1px dashed #cbd5e1;
    padding-top: 0.85rem;
}
.form-section-divider span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
.btn-danger {
    background: #ef4444;
    color: white;
    margin-right: auto;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-delete-hidden {
    display: none;
}
#dataSourceBadge,
#downloadBtnArea,
.data-source-badge,
.download-btn-group {
    display: none !important;
}
.backup-indicator {
    display: inline-block;
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}
.backup-status-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #334155;
}
.form-help-text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
    display: block;
}
.modal-info-text {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Dark Mode Extensions */
body.dark-mode .form-group textarea {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}
body.dark-mode .modal-footer {
    border-top-color: #334155;
}
body.dark-mode .form-section-divider {
    border-top-color: #334155;
}
body.dark-mode .form-section-divider span {
    color: #94a3b8;
}
body.dark-mode .btn-edit-row {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #059669;
}
body.dark-mode .btn-edit-row:hover {
    background: #10b981;
    color: white;
}
body.dark-mode .backup-status-box {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}
body.dark-mode .data-source-badge {
    background: #0c4a6e;
    color: #7dd3fc;
}
body.dark-mode .backup-indicator {
    background: #064e3b;
    color: #6ee7b7;
}