/* ============================================================
   POLPROG Admin Dashboard - Styles
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f4f6f9;
}

/* Accessible focus ring for all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.sidebar-link:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
#login-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Login top bar */
.login-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    z-index: 10;
}
.login-topbar-left a { display: inline-flex; align-items: center; }
.login-topbar-left img { opacity: 0.75; transition: opacity 0.2s; }
.login-topbar-left a:hover img { opacity: 1; }

/* Login hamburger toggle - visible only on mobile */
.login-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 4px;
}
.login-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    border-radius: 1px;
    transition: all 0.25s ease;
}
body.dark-mode .login-hamburger span { background: rgba(255,255,255,0.7); }
.login-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.login-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.login-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.login-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.login-topbar .admin-lang-btn {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}
.login-topbar .admin-lang-btn.active {
    background: rgba(245,166,35,0.15);
    color: #F5A623;
    border-color: rgba(245,166,35,0.3);
}
.login-topbar .admin-lang-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* Login footer */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 28px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
}
.login-footer a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.login-footer a:hover { color: #F5A623; }
.login-footer .admin-footer-sep { color: rgba(255,255,255,0.2); }

.login-container {
    background: #fff;
    padding: 40px 36px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 8px;
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.login-container .form-group {
    margin-bottom: 18px;
}

.login-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 13px;
}

.login-container .form-control {
    height: 44px;
    font-size: 15px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    padding: 8px 14px;
    transition: border-color 0.2s;
    width: 100%;
}

.login-container .form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
    outline: none;
}

.login-container .btn-primary {
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: #F5A623;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}

.login-container .btn-primary:hover { background: #e09510; }
.login-container .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.login-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}
.login-back:hover { color: #F5A623; }

/* ============================================================
   NAVBAR
   ============================================================ */
.admin-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    color: #fff;
    padding: 0 24px;
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.admin-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.admin-navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    font-size: 13px;
    color: #ccc;
}

.admin-navbar .btn-outline-light {
    font-size: 13px;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 14px;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.3);
}
.admin-navbar .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* ============================================================
   LAYOUT - flex column for sticky footer
   ============================================================ */
#dashboard-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    margin-top: 56px;
    flex: 1;
    min-height: 0;
}

.admin-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 20px 0;
    position: fixed;
    top: 56px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover { background: #f8f9fa; color: #333; }
.sidebar-link.active {
    color: #F5A623;
    background: #fff8ed;
    border-left-color: #F5A623;
    font-weight: 600;
}

.admin-content {
    flex: 1;
    margin-left: 220px;
    padding: 30px;
    max-width: 1100px;
}

/* ============================================================
   ADMIN FOOTER
   ============================================================ */
.admin-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    background: #fafbfc;
    flex-wrap: wrap;
}
.admin-footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}
.admin-footer a:hover {
    color: #F5A623;
}
.admin-footer-sep {
    color: #ccc;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.admin-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 { margin-bottom: 0; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff8ed;
    color: #F5A623;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-card--warning .stat-icon {
    background: #fff3f3;
    color: #e74c3c;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* ============================================================
   FILTERS BAR
   ============================================================ */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filters-bar .form-control {
    max-width: 280px;
    border-radius: 6px;
    border: 1.5px solid #ddd;
    height: 36px;
    font-size: 13px;
    padding: 4px 10px;
}

.filters-bar .form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.12);
    outline: none;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-responsive {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 12px 16px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}

.table tbody tr:hover { background: #fafbfc; }
.table tbody tr:last-child td { border-bottom: none; }

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: #F5A623; }

.badge-active {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f8ed;
    color: #27ae60;
}

.badge-unsubscribed {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #f8e8e8;
    color: #c0392b;
}

.table .btn-sm {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid;
    background: transparent;
    margin-right: 4px;
    transition: all 0.15s;
}

.btn-action-unsub { color: #e67e22; border-color: #e67e22; }
.btn-action-unsub:hover { background: #e67e22; color: #fff; }

.btn-action-resub { color: #27ae60; border-color: #27ae60; }
.btn-action-resub:hover { background: #27ae60; color: #fff; }

.btn-action-delete { color: #e74c3c; border-color: #e74c3c; }
.btn-action-delete:hover { background: #e74c3c; color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls .btn {
    font-size: 12px;
    border-radius: 5px;
    padding: 4px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    transition: all 0.15s;
}
.pagination-controls .btn:hover:not(:disabled) { border-color: #F5A623; color: #F5A623; }
.pagination-controls .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.page-display { font-weight: 600; color: #555; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.settings-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card .form-group {
    margin-bottom: 16px;
}

.settings-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 13px;
}

.settings-card .form-control {
    max-width: 400px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    padding: 8px 14px;
    font-size: 14px;
    width: 100%;
}

.settings-card .form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
    outline: none;
}

.settings-card .form-text { font-size: 12px; margin-top: 4px; }

.settings-card .btn-primary {
    background: #F5A623;
    border: none;
    color: #fff;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    margin-top: 4px;
}
.settings-card .btn-primary:hover { background: #e09510; }
.settings-card .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.info-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
}
.info-table th, .info-table td {
    padding: 10px 14px;
    border: 1px solid #eee;
    font-size: 13px;
}
.info-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    width: 40%;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.alert-danger { background: #fef2f2; color: #c0392b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ============================================================
   CONFIRM MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-dialog-custom {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header-custom h4 { margin: 0; font-size: 16px; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #333; }

.modal-body-custom { padding: 20px; font-size: 14px; color: #555; }

.modal-footer-custom {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.modal-footer-custom .btn {
    padding: 6px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-secondary {
    background: #e8e8e8;
    border: none;
    color: #555;
}
.btn-secondary:hover { background: #ddd; }

.btn-danger {
    background: #e74c3c;
    border: none;
    color: #fff;
}
.btn-danger:hover { background: #c0392b; }

.btn-outline-primary {
    border: 1px solid #F5A623;
    color: #F5A623;
    background: transparent;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-outline-primary:hover { background: #F5A623; color: #fff; }

/* ============================================================
   UTILITY
   ============================================================ */
.d-none { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: #999; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .login-topbar { padding: 8px 12px; flex-wrap: wrap; }
    .login-hamburger { display: flex; }
    .login-topbar-right {
        display: none;
        width: 100%;
        flex-basis: 100%;
        padding-top: 8px;
        justify-content: flex-end;
    }
    .login-topbar-right.open { display: flex; }
    .login-container { margin: 0 16px; }
    .admin-navbar { padding: 0 12px; }
    .admin-navbar-right { gap: 8px; }
    .admin-user { display: none; }
    .admin-navbar-brand span { display: none; }

    .admin-sidebar {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 10px 0;
    }

    .sidebar-nav { flex-direction: row; overflow-x: auto; }

    .sidebar-link {
        padding: 10px 16px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 13px;
    }
    .sidebar-link.active {
        border-left-color: transparent;
        border-bottom-color: #F5A623;
    }

    .admin-layout { flex-direction: column; }
    .admin-content { margin-left: 0; padding: 20px 16px; }

    .stats-grid { grid-template-columns: 1fr; }

    .filters-bar { flex-direction: column; }
    .filters-bar .form-control { max-width: none; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

    .pagination-bar { flex-direction: column; gap: 8px; text-align: center; }
    .pagination-controls { justify-content: center; }

    .table td:last-child { white-space: nowrap; }
}

/* ============================================================
   DARK MODE TOGGLE (shared with SPA via dark-mode.js)
   ============================================================ */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    color: inherit;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

/* Icon switching */
body:not(.dark-mode) .dark-mode-toggle .dm-icon-sun { display: none; }
body.dark-mode .dark-mode-toggle .dm-icon-moon { display: none; }

.admin-dm-toggle {
    color: rgba(255,255,255,0.6);
}
.admin-dm-toggle:hover { color: #F5A623; }

.login-dm-toggle {
    color: rgba(255,255,255,0.5);
}
.login-dm-toggle:hover { color: #F5A623; }

/* ============================================================
   LOADING SCREEN (auth check)
   ============================================================ */
#loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f4f6f9;
}
.loading-spinner {
    text-align: center;
    color: #888;
    font-size: 14px;
}
.loading-spinner i { font-size: 24px; color: #F5A623; display: block; margin-bottom: 12px; }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-stat {
    width: 48px;
    height: 32px;
    display: inline-block;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 360px;
}
.admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}
.admin-toast--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.admin-toast--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================================
   DARK MODE - ADMIN PANEL
   ============================================================ */

/* Flash prevention */
html.dark-mode-pending { background: #1a1b1e !important; }
html.dark-mode-pending body { visibility: hidden; }

/* Base */
body.dark-mode {
    background: #1a1b1e;
    color: #e0e0e0;
}

/* Login screen */
body.dark-mode #login-screen {
    background: linear-gradient(135deg, #0d0d1a 0%, #111827 50%, #0a1628 100%);
}

body.dark-mode .login-container {
    background: #1e1f26;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

body.dark-mode .login-logo img {
    filter: brightness(0) invert(1);
}

body.dark-mode .login-title { color: #e0e0e0; }

body.dark-mode .login-container label { color: #aaa; }

body.dark-mode .login-container .form-control {
    background: #2a2b33;
    border-color: #3a3b44;
    color: #e0e0e0;
}
body.dark-mode .login-container .form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}
body.dark-mode .login-container .form-control::placeholder { color: #666; }

body.dark-mode .login-back { color: #777; }
body.dark-mode .login-back:hover { color: #F5A623; }

body.dark-mode .login-dm-toggle { color: rgba(255,255,255,0.4); }
body.dark-mode .login-topbar .admin-lang-btn { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); }
body.dark-mode .login-topbar .admin-lang-btn.active { background: rgba(245,166,35,0.15); color: #F5A623; border-color: rgba(245,166,35,0.3); }

/* Loading screen */
body.dark-mode #loading-screen { background: #1a1b1e; }
body.dark-mode .loading-spinner { color: #ccc; }

/* Navbar - already dark by design, subtle adjustment */
body.dark-mode .admin-navbar {
    background: #111118;
    border-bottom: 1px solid #2a2a35;
}

/* Sidebar */
body.dark-mode .admin-sidebar {
    background: #1e1f26;
    border-right-color: #2a2b33;
}

/* Footer */
body.dark-mode .admin-footer {
    background: #16171d;
    border-top-color: #2a2b33;
    color: #777;
}
body.dark-mode .admin-footer a { color: #888; }
body.dark-mode .admin-footer a:hover { color: #F5A623; }
body.dark-mode .admin-footer-sep { color: #444; }

body.dark-mode .sidebar-link {
    color: #aaa;
}
body.dark-mode .sidebar-link:hover {
    background: #252630;
    color: #e0e0e0;
}
body.dark-mode .sidebar-link.active {
    color: #F5A623;
    background: rgba(245, 166, 35, 0.08);
    border-left-color: #F5A623;
}

/* Section headings */
body.dark-mode .admin-section h2 { color: #e0e0e0; }

/* Stat cards */
body.dark-mode .stat-card {
    background: #1e1f26;
    border-color: #2a2b33;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
body.dark-mode .stat-icon {
    background: rgba(245, 166, 35, 0.1);
}
body.dark-mode .stat-card--warning .stat-icon {
    background: rgba(231, 76, 60, 0.1);
}
body.dark-mode .stat-value { color: #f0f0f0; }
body.dark-mode .stat-label { color: #888; }

/* Skeleton in dark mode */
body.dark-mode .skeleton {
    background: linear-gradient(90deg, #2a2b33 25%, #333340 50%, #2a2b33 75%);
    background-size: 200% 100%;
}

/* Table */
body.dark-mode .table-responsive {
    background: #1e1f26;
    border-color: #2a2b33;
}
body.dark-mode .table thead th {
    background: #252630;
    border-bottom-color: #333;
    color: #999;
}
body.dark-mode .table tbody td {
    border-bottom-color: #2a2b33;
    color: #ddd;
}
body.dark-mode .table tbody tr:hover {
    background: #252630;
}

body.dark-mode .sortable:hover { color: #F5A623; }

body.dark-mode .badge-active {
    background: rgba(39, 174, 96, 0.12);
    color: #4ade80;
}
body.dark-mode .badge-unsubscribed {
    background: rgba(231, 76, 60, 0.12);
    color: #f87171;
}

body.dark-mode .btn-action-unsub { color: #e67e22; border-color: #e67e22; }
body.dark-mode .btn-action-resub { color: #4ade80; border-color: #4ade80; }
body.dark-mode .btn-action-delete { color: #f87171; border-color: #f87171; }

/* Filters */
body.dark-mode .filters-bar .form-control {
    background: #2a2b33;
    border-color: #3a3b44;
    color: #e0e0e0;
}
body.dark-mode .filters-bar .form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.15);
}
body.dark-mode .filters-bar .form-control::placeholder { color: #666; }

body.dark-mode .filters-bar select option {
    background: #2a2b33;
    color: #e0e0e0;
}

/* Pagination */
body.dark-mode .pagination-bar { color: #888; }
body.dark-mode .page-display { color: #ccc; }
body.dark-mode .pagination-controls .btn {
    background: #2a2b33;
    border-color: #3a3b44;
    color: #ccc;
}
body.dark-mode .pagination-controls .btn:hover:not(:disabled) {
    border-color: #F5A623;
    color: #F5A623;
}

/* Settings card */
body.dark-mode .settings-card {
    background: #1e1f26;
    border-color: #2a2b33;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
body.dark-mode .settings-card h3 { color: #e0e0e0; }
body.dark-mode .settings-card label { color: #aaa; }

body.dark-mode .settings-card .form-control {
    background: #2a2b33;
    border-color: #3a3b44;
    color: #e0e0e0;
}
body.dark-mode .settings-card .form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}
body.dark-mode .settings-card .form-control::placeholder { color: #666; }
body.dark-mode .settings-card .form-text { color: #777; }

body.dark-mode .info-table th {
    background: #252630;
    border-color: #2a2b33;
    color: #aaa;
}
body.dark-mode .info-table td {
    border-color: #2a2b33;
    color: #ddd;
}

/* Alerts */
body.dark-mode .alert-danger {
    background: rgba(192, 57, 43, 0.1);
    color: #f87171;
    border-color: rgba(192, 57, 43, 0.3);
}
body.dark-mode .alert-success {
    background: rgba(22, 101, 52, 0.1);
    color: #4ade80;
    border-color: rgba(22, 101, 52, 0.3);
}

/* Toast dark mode */
body.dark-mode .admin-toast--success {
    background: #122b18;
    color: #4ade80;
    border-color: #1a5c2e;
}
body.dark-mode .admin-toast--error {
    background: #2a1010;
    color: #f87171;
    border-color: #5c1a1a;
}

/* Modal */
body.dark-mode .modal-overlay {
    background: rgba(0,0,0,0.7);
}
body.dark-mode .modal-dialog-custom {
    background: #1e1f26;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
body.dark-mode .modal-header-custom {
    border-bottom-color: #2a2b33;
}
body.dark-mode .modal-header-custom h4 { color: #e0e0e0; }
body.dark-mode .modal-close { color: #777; }
body.dark-mode .modal-close:hover { color: #e0e0e0; }
body.dark-mode .modal-body-custom { color: #ccc; }
body.dark-mode .modal-footer-custom {
    border-top-color: #2a2b33;
    background: #252630;
}
body.dark-mode .btn-secondary {
    background: #333340;
    color: #ccc;
}
body.dark-mode .btn-secondary:hover { background: #3a3b48; }

/* Export button */
body.dark-mode .btn-outline-primary {
    border-color: #F5A623;
    color: #F5A623;
}
body.dark-mode .btn-outline-primary:hover {
    background: #F5A623;
    color: #fff;
}

/* Text muted */
body.dark-mode .text-muted { color: #777; }

/* Responsive dark borders */
@media (max-width: 768px) {
    body.dark-mode .admin-sidebar {
        border-bottom-color: #2a2b33;
    }
}

/* ============================================================
   ADMIN LANGUAGE TOGGLE (PL / EN)
   ============================================================ */
.admin-lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2px;
    margin-right: 6px;
}
.admin-lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.admin-lang-btn:hover { color: rgba(255,255,255,0.8); }
.admin-lang-btn.active {
    background: #F5A623;
    color: #1a1a2e;
}

/* ============================================================
   DASHBOARD WIDGETS (Recent Subscribers + Monthly Trend)
   ============================================================ */
.dashboard-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.widget-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 20px;
    min-height: 200px;
}
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.widget-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}
.widget-link {
    font-size: 12px;
    color: #F5A623;
    text-decoration: none;
    font-weight: 500;
}
.widget-link:hover { text-decoration: underline; }

/* Recent subscriber list */
.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.recent-item:last-child { border-bottom: none; }
.recent-email {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 55%;
}
.recent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}
.recent-date {
    color: #999;
    white-space: nowrap;
}

/* Monthly trend chart */
.trend-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 140px;
    gap: 8px;
    padding-top: 10px;
}
.trend-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.trend-count {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}
.trend-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #F5A623 0%, #e6951a 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.4s ease;
}
.trend-label {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    font-weight: 500;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    background: #f8f9fa;
    border: 1px solid transparent;
}
.quick-action-btn:hover {
    background: #fff8ed;
    color: #F5A623;
    border-color: rgba(245,166,35,0.2);
}
.quick-action-btn i {
    width: 16px;
    text-align: center;
    color: #F5A623;
    font-size: 14px;
}

/* ============================================================
   SYSTEM INFO
   ============================================================ */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sys-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.sys-row:last-child { border-bottom: none; }
.sys-label {
    color: #888;
    font-weight: 500;
}
.sys-value {
    color: #333;
    font-weight: 600;
    font-size: 12px;
}

/* ============================================================
   RESPONSIVE - DASHBOARD WIDGETS
   ============================================================ */
@media (max-width: 768px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   DARK MODE - LANGUAGE TOGGLE
   ============================================================ */
body.dark-mode .admin-lang-toggle {
    background: rgba(255,255,255,0.05);
}
body.dark-mode .admin-lang-btn {
    color: rgba(255,255,255,0.4);
}
body.dark-mode .admin-lang-btn:hover {
    color: rgba(255,255,255,0.7);
}
body.dark-mode .admin-lang-btn.active {
    background: #F5A623;
    color: #111;
}

/* ============================================================
   DARK MODE - DASHBOARD WIDGETS
   ============================================================ */
body.dark-mode .widget-card {
    background: #1e1f27;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
body.dark-mode .widget-header h3 {
    color: #e0e0e0;
}
body.dark-mode .widget-link {
    color: #F5A623;
}
body.dark-mode .recent-item {
    border-bottom-color: #2a2b33;
}
body.dark-mode .recent-email {
    color: #ddd;
}
body.dark-mode .recent-date {
    color: #777;
}
body.dark-mode .trend-count {
    color: #aaa;
}
body.dark-mode .trend-label {
    color: #777;
}
body.dark-mode .trend-bar {
    background: linear-gradient(180deg, #F5A623 0%, #d48a15 100%);
}
body.dark-mode .quick-action-btn {
    background: rgba(255,255,255,0.04);
    color: #ccc;
}
body.dark-mode .quick-action-btn:hover {
    background: rgba(245,166,35,0.1);
    color: #F5A623;
}
body.dark-mode .sys-row {
    border-bottom-color: rgba(255,255,255,0.06);
}
body.dark-mode .sys-label { color: #888; }
body.dark-mode .sys-value { color: #ccc; }

/* ============================================================
   LEGAL MODAL (ToS / Privacy)
   ============================================================ */
.legal-modal-dialog {
    max-width: 680px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.legal-modal-body {
    overflow-y: auto;
    padding: 24px 28px;
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}
.legal-modal-body h1,
.legal-modal-body h2,
.legal-modal-body h3,
.legal-modal-body h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #222;
}
.legal-modal-body h1 { font-size: 18px; }
.legal-modal-body h2 { font-size: 16px; }
.legal-modal-body h3,
.legal-modal-body h4 { font-size: 14px; }
.legal-modal-body ul,
.legal-modal-body ol {
    padding-left: 20px;
    margin: 8px 0;
}
.legal-modal-body a {
    color: #F5A623;
    text-decoration: underline;
}
body.dark-mode .legal-modal-body {
    color: #bbb;
}
body.dark-mode .legal-modal-body h1,
body.dark-mode .legal-modal-body h2,
body.dark-mode .legal-modal-body h3,
body.dark-mode .legal-modal-body h4 {
    color: #ddd;
}
.admin-legal-link {
    cursor: pointer;
}

/* ============================================================
   ANALYTICS SECTION
   ============================================================ */
.stats-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.stat-card--mini {
    padding: 16px;
}
.stat-card--mini .stat-value {
    font-size: 22px;
}

.chart-container {
    min-height: 160px;
    padding: 16px 0;
}
.daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 140px;
    padding: 0 4px;
}
.daily-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.daily-bar {
    width: 100%;
    max-width: 18px;
    background: linear-gradient(180deg, #F5A623 0%, #d48a15 100%);
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
    min-height: 2px;
}
.daily-bar-label {
    font-size: 9px;
    color: #888;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.daily-bar-count {
    font-size: 9px;
    color: #666;
    margin-bottom: 2px;
}

.widget-card--wide {
    grid-column: 1 / -1;
}

.data-table-container {
    min-height: 60px;
}
.data-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    font-weight: 600;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td:last-child {
    text-align: right;
    font-weight: 600;
}
.data-table .bar-cell {
    position: relative;
}
.data-table .bar-fill {
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 3px;
    z-index: 0;
}
.data-table td .bar-cell-text {
    position: relative;
    z-index: 1;
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px 20px;
    transition: box-shadow 0.2s;
}
.contact-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.contact-card--new {
    border-left: 3px solid #F5A623;
}
.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}
.contact-sender {
    font-weight: 600;
    color: #222;
}
.contact-email {
    color: #666;
    font-size: 13px;
}
.contact-subject {
    font-weight: 500;
    margin-bottom: 4px;
    color: #444;
}
.contact-message {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 100px;
    overflow: hidden;
}
.contact-meta {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
    align-items: center;
}
.contact-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.contact-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.contact-badge--new { background: #fff3cd; color: #856404; }
.contact-badge--read { background: #d1ecf1; color: #0c5460; }
.contact-badge--replied { background: #d4edda; color: #155724; }
.contact-badge--archived { background: #e2e3e5; color: #383d41; }

/* ============================================================
   NOTES SECTION
   ============================================================ */
.note-editor {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.note-editor textarea {
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
}
.note-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.note-colors {
    display: flex;
    gap: 6px;
}
.note-color-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.note-color-btn:hover { transform: scale(1.15); }
.note-color-btn.active { border-color: #333; }
.note-color-btn[data-color="default"] { background: #f8f9fa; border-color: #ddd; }
.note-color-btn[data-color="default"].active { border-color: #333; }
.note-color-btn[data-color="blue"] { background: #dbeafe; }
.note-color-btn[data-color="green"] { background: #d1fae5; }
.note-color-btn[data-color="yellow"] { background: #fef3c7; }
.note-color-btn[data-color="red"] { background: #fee2e2; }

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.note-card {
    border-radius: 8px;
    padding: 14px 16px;
    position: relative;
    min-height: 80px;
    border: 1px solid #e8eaed;
    transition: box-shadow 0.2s;
}
.note-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.note-card--default { background: #f8f9fa; }
.note-card--blue { background: #dbeafe; }
.note-card--green { background: #d1fae5; }
.note-card--yellow { background: #fef3c7; }
.note-card--red { background: #fee2e2; }
.note-card-content {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}
.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: #888;
}
.note-card-actions {
    display: flex;
    gap: 6px;
}
.note-card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.note-card-actions button:hover {
    color: #333;
    background: rgba(0,0,0,0.05);
}
.note-pin { color: #F5A623 !important; }

/* ============================================================
   HEALTH SECTION
   ============================================================ */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.health-item {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.health-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.health-icon--ok { background: #d4edda; color: #155724; }
.health-icon--warn { background: #fff3cd; color: #856404; }
.health-icon--error { background: #f8d7da; color: #721c24; }
.health-icon--info { background: #d1ecf1; color: #0c5460; }
.health-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}
.health-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* ============================================================
   SETTINGS EXPANSION
   ============================================================ */
.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}
.toggle-input {
    display: none;
}
.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-input:checked + .toggle-switch {
    background: #F5A623;
}
.toggle-input:checked + .toggle-switch::after {
    transform: translateX(18px);
}

.import-export-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ie-block h4 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #333;
}
.ie-block .text-muted {
    font-size: 12px;
    margin: 0 0 10px;
}

/* ============================================================
   DARK MODE - NEW SECTIONS
   ============================================================ */
body.dark-mode .contact-card {
    background: #1e1f27;
    border-color: #2a2b33;
}
body.dark-mode .contact-card--new {
    border-left-color: #F5A623;
}
body.dark-mode .contact-sender { color: #e0e0e0; }
body.dark-mode .contact-email { color: #888; }
body.dark-mode .contact-subject { color: #ccc; }
body.dark-mode .contact-message { color: #aaa; }
body.dark-mode .contact-meta { color: #666; }
body.dark-mode .contact-badge--new { background: #3d3520; color: #f5c842; }
body.dark-mode .contact-badge--read { background: #1a3040; color: #6ecff6; }
body.dark-mode .contact-badge--replied { background: #1a3020; color: #6ef680; }
body.dark-mode .contact-badge--archived { background: #2a2b33; color: #888; }

body.dark-mode .note-editor {
    background: #1e1f27;
    border-color: #2a2b33;
}
body.dark-mode .note-editor textarea {
    background: #16171e;
    color: #ddd;
    border-color: #333;
}
body.dark-mode .note-card { border-color: #2a2b33; }
body.dark-mode .note-card--default { background: #1e1f27; }
body.dark-mode .note-card--blue { background: #1a2740; }
body.dark-mode .note-card--green { background: #1a3020; }
body.dark-mode .note-card--yellow { background: #3d3520; }
body.dark-mode .note-card--red { background: #3d1a1a; }
body.dark-mode .note-card-content { color: #ccc; }
body.dark-mode .note-card-footer { color: #666; }
body.dark-mode .note-card-actions button { color: #666; }
body.dark-mode .note-card-actions button:hover { color: #ccc; background: rgba(255,255,255,0.05); }
body.dark-mode .note-color-btn[data-color="default"] { background: #2a2b33; border-color: #444; }
body.dark-mode .note-color-btn[data-color="default"].active { border-color: #F5A623; }
body.dark-mode .note-color-btn.active { border-color: #F5A623; }

body.dark-mode .health-item {
    background: #1e1f27;
    border-color: #2a2b33;
}
body.dark-mode .health-label { color: #666; }
body.dark-mode .health-value { color: #e0e0e0; }
body.dark-mode .health-icon--ok { background: #1a3020; color: #6ef680; }
body.dark-mode .health-icon--warn { background: #3d3520; color: #f5c842; }
body.dark-mode .health-icon--error { background: #3d1a1a; color: #ff6b6b; }
body.dark-mode .health-icon--info { background: #1a3040; color: #6ecff6; }

body.dark-mode .data-table th { color: #888; }
body.dark-mode .data-table td { color: #ccc; border-bottom-color: #2a2b33; }
body.dark-mode .data-table th { border-bottom-color: #333; }
body.dark-mode .data-table .bar-fill { background: rgba(245, 166, 35, 0.15); }

body.dark-mode .daily-bar {
    background: linear-gradient(180deg, #F5A623 0%, #d48a15 100%);
}
body.dark-mode .daily-bar-label { color: #666; }
body.dark-mode .daily-bar-count { color: #888; }

body.dark-mode .toggle-row { color: #ccc; }
body.dark-mode .toggle-switch { background: #444; }
body.dark-mode .ie-block h4 { color: #ccc; }

body.dark-mode #settings-feedback.alert-success { background: #1a3020; color: #6ef680; border-color: #2a4030; }
body.dark-mode #settings-feedback.alert-danger { background: #3d1a1a; color: #ff6b6b; border-color: #4d2a2a; }
body.dark-mode #import-result.alert-success { background: #1a3020; color: #6ef680; border-color: #2a4030; }
body.dark-mode #import-result.alert-info { background: #1a3040; color: #6ecff6; border-color: #2a4050; }

/* ============================================================
   RESPONSIVE - NEW SECTIONS
   ============================================================ */
@media (max-width: 768px) {
    .health-grid { grid-template-columns: 1fr; }
    .notes-grid { grid-template-columns: 1fr; }
    .import-export-section { grid-template-columns: 1fr; }
    .daily-chart { gap: 1px; }
    .daily-bar { max-width: 12px; }
    .daily-bar-label { font-size: 7px; }
}
