/* =========================================================
   NAVY THEME
========================================================= */

body {
    background:
        radial-gradient(ellipse at 80% 0%, rgba(36, 75, 128, 0.18), transparent 38%),
        var(--bg);
    color: var(--text);
}

    .login-page {
        background:
            radial-gradient(ellipse at 18% 12%, rgba(51, 105, 190, 0.24), transparent 38%),
            radial-gradient(ellipse at 85% 88%, rgba(52, 87, 155, 0.2), transparent 38%),
            #081426;
    }

    .login-grid {
        background-image:
            linear-gradient(rgba(177, 193, 216, 0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(177, 193, 216, 0.045) 1px, transparent 1px);
    }

    .login-brand,
    .login-header h1 {
        color: #f3f7ff;
    }

    .brand-subtitle,
    .login-header p,
    .login-footer {
        color: #a5b7d0;
    }

    .login-card {
        background: rgba(17, 34, 57, 0.94);
        border-color: rgba(148, 173, 207, 0.18);
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
    }

    .login-icon,
    .password-toggle:hover {
        background: #1c3557;
        color: #dbeafe;
    }

    .form-group label {
        color: #d8e4f5;
    }

    .input-wrapper input,
    .form-card input,
    .form-card select,
    .form-card textarea,
    .modal input,
    .modal select,
    .modal textarea {
        background: #0c1b30;
        border-color: #2a405f;
        color: #edf4ff;
    }

    .form-card input[type="datetime-local"],
    .modal input[type="datetime-local"] {
        color-scheme: dark;
    }

    .input-wrapper input::placeholder,
    .form-card input::placeholder,
    .form-card textarea::placeholder,
    .modal input::placeholder,
    .modal textarea::placeholder {
        color: #7186a4;
    }

    .input-wrapper input:focus,
    .form-card input:focus,
    .form-card select:focus,
    .form-card textarea:focus,
    .modal input:focus,
    .modal select:focus,
    .modal textarea:focus {
        border-color: #5a96f5;
        box-shadow: 0 0 0 4px rgba(57, 121, 232, 0.17);
    }

    .app-page {
        background: var(--bg);
    }

    .sidebar {
        background: #0b192d;
        border-right-color: #203552;
    }

    .sidebar-header,
    .sidebar-bottom {
        border-color: #203552;
    }

    .sidebar-brand-text strong,
    .sidebar-user-info strong,
    .online-dot {
        color: #f1f6ff;
    }

    .sidebar-user,
    .local-mode {
        background: #12243d;
        border-color: #263b58;
    }

    .nav-section-title {
        color: #748ba9;
    }

    .nav-item {
        color: #a8bad2;
    }

    .nav-item:hover {
        color: #f1f6ff;
        background: #142944;
    }

    .nav-item.active {
        color: #ffffff;
        background: #18365e;
    }

    .nav-item.active::before {
        background: #68a2ff;
    }

    .nav-badge {
        background: #263d5d;
        color: #c7d7ed;
    }

    .sidebar-close,
    .hamburger-btn,
    .modal-close {
        background: #172b46;
        border-color: #2a405f;
        color: #bdcce0;
    }

    .sidebar-close:hover,
    .modal-close:hover {
        background: #203958;
        color: #ffffff;
    }

    .local-mode strong {
        color: #dbe7f8;
    }

    .logout-button {
        border-color: #2a405f;
        color: #b1c1d8;
    }

    .logout-button:hover {
        color: #fca5a5;
        border-color: rgba(248, 113, 113, 0.35);
        background: rgba(127, 29, 29, 0.22);
    }

    .main-area {
        background: transparent;
    }

    .topbar {
        background: rgba(9, 24, 43, 0.9);
        border-bottom-color: #203552;
    }

    .page-title,
    .topbar-user-info strong,
    .welcome-section h1,
    .page-heading-row h1,
    .form-page-header h1,
    .section-header h2,
    .content-cell-text strong,
    .modal-header h2,
    .modal-small h2,
    .toast-content strong {
        color: #f1f6ff;
    }

    .page-subtitle,
    .topbar-user-info span,
    .welcome-section p,
    .page-heading-row p,
    .form-page-header p,
    .section-header p,
    .sidebar-brand-text span,
    .sidebar-user-info span,
    .local-mode small {
        color: #9cb0ca;
    }

    .eyebrow,
    .stat-label,
    .stat-footer,
    .content-cell-text span {
        color: #8da2bf;
    }

    .welcome-date,
    .stat-card,
    .quick-action-card,
    .table-card,
    .form-card,
    .filter-button,
    .timeline-content,
    .modal,
    .toast {
        background: #12233b;
        border-color: #263b58;
        color: #edf4ff;
        box-shadow: var(--shadow-sm);
    }

    .stat-card:hover,
    .quick-action-card:hover {
        border-color: #3b5b83;
        box-shadow: var(--shadow);
    }

    .welcome-date {
        color: #c1d0e4;
    }

    .stat-icon.blue,
    .content-type-icon.carousel,
    .type-badge.carousel,
    .form-page-icon.carousel,
    .quick-action-icon.carousel {
        background: rgba(59, 130, 246, 0.16);
        color: #83b4ff;
    }

    .stat-icon.orange {
        background: rgba(245, 158, 11, 0.15);
        color: #fbbf24;
    }

    .stat-icon.green {
        background: rgba(34, 197, 94, 0.14);
        color: #4ade80;
    }

    .stat-icon.red {
        background: rgba(239, 68, 68, 0.15);
        color: #f87171;
    }

    .quick-action-card strong {
        color: #edf4ff;
    }

    .quick-action-card span,
    .text-button {
        color: #a9bdd7;
    }

    .quick-action-card > i,
    .text-button:hover {
        color: #82b3ff;
    }

    .btn-primary {
        background: var(--primary);
        color: #ffffff;
    }

    .btn-primary:hover {
        background: var(--primary-hover);
        box-shadow: 0 8px 22px rgba(26, 81, 171, 0.32);
    }

    .btn-secondary {
        background: #172b46;
        color: #d6e2f2;
        border-color: #314967;
    }

    .btn-secondary:hover {
        background: #203958;
    }

    .form-actions {
        border-top-color: #263b58;
    }

    .form-card small {
        color: #8da2bf;
    }

    .filter-button {
        color: #afc0d7;
    }

    .filter-button span {
        background: #203754;
        color: #c6d5e9;
    }

    .filter-button:hover {
        border-color: #54739b;
    }

    .filter-button.active {
        background: #3979e8;
        border-color: #3979e8;
        color: #ffffff;
    }

    thead {
        background: #172b46;
    }

    th {
        color: #9cb0ca;
    }

    td {
        border-top-color: #263b58;
        color: #d5e1f1;
    }

    tbody tr:hover {
        background: #172b46;
    }

    .content-type-icon.video,
    .type-badge.video,
    .form-page-icon.video,
    .quick-action-icon.video {
        background: rgba(139, 92, 246, 0.16);
        color: #c4a5ff;
    }

    .status-badge.pending {
        background: rgba(245, 158, 11, 0.15);
        color: #fbbf24;
    }

    .status-badge.processing {
        background: rgba(59, 130, 246, 0.16);
        color: #83b4ff;
    }

    .status-badge.published {
        background: rgba(34, 197, 94, 0.14);
        color: #4ade80;
    }

    .status-badge.failed {
        background: rgba(239, 68, 68, 0.15);
        color: #f87171;
    }

    .timeline-empty {
        color: #a9bdd7;
    }

    .timeline-empty i {
        color: #6f86a5;
    }

    .timeline-date strong,
    .timeline-content strong {
        color: #e8f0fc;
    }

    .timeline-date span,
    .timeline-content span {
        color: #93a9c5;
    }

    .timeline-date {
        background: #12233b;
        border-color: #263b58;
    }

    .timeline-content {
        background: #12233b;
    }

    .modal-backdrop {
        background: rgba(2, 9, 20, 0.76);
    }

    .modal-header,
    .modal-footer {
        border-color: #263b58;
    }

    .modal-icon {
        background: #1c3557;
        color: #b9d4ff;
    }

    .modal-header p,
    .modal-small p,
    .toast-content span {
        color: #9cb0ca;
    }

    .modal-small p strong {
        color: #f1f6ff;
    }

    .toast-close {
        color: #9cb0ca;
    }

    .sidebar-overlay {
        background: rgba(2, 9, 20, 0.72);
    }

    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid #68a2ff;
        outline-offset: 2px;
    }

    @media (max-width: 650px) {
        .stat-label {
            font-size: 8px;
        }

        .stat-footer {
            font-size: 9px;
        }
    }

    @media (min-width: 361px) {
        .stats-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 651px) {
        .stats-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 1101px) {
        .stats-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

@media (max-width: 400px) {
    .demo-buttons {
        grid-template-columns: 1fr;
    }

    .login-header h1 {
        font-size: 22px;
    }
}


