/* ===== AURORA BACKGROUND ===== */
        body.dark-theme {
            background: #1A1A2E !important;
            position: relative;
        }
        body.dark-theme::after {
            content: '';
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 0;
            pointer-events: none;
            background:
                radial-gradient(ellipse at 15% 5%, rgba(0, 229, 204, 0.2) 0%, transparent 45%),
                radial-gradient(ellipse at 85% 15%, rgba(183, 148, 246, 0.18) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 85%, rgba(255, 121, 198, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 70% 50%, rgba(0, 229, 204, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 40%, rgba(183, 148, 246, 0.06) 0%, transparent 40%);
            animation: auroraShift 10s ease-in-out infinite alternate;
        }
        @keyframes auroraShift {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.03); }
            100% { opacity: 1; transform: scale(1); }
        }

        /* Ensure content is above aurora */
        body.dark-theme > *:not(header):not(.bottom-nav):not(.welcome-modal):not(.modal):not(.modal-overlay):not([class*="modal"]) {
            position: relative;
            z-index: 1;
        }

        /* ===== HEADER • GLASS ===== */
        body.dark-theme header {
            position: fixed !important;
            background: rgba(26, 26, 46, 0.6) !important;
            backdrop-filter: blur(24px) saturate(1.5) !important;
            -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
            border: 1px solid rgba(183, 148, 246, 0.2) !important;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
        }

        /* Header logo gradient */
        body.dark-theme header .logo-text,
        body.dark-theme header .header-content > span {
            background: linear-gradient(135deg, #00E5CC, #B794F6) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
        }

        /* Header buttons glass */
        body.dark-theme .header-actions .btn,
        body.dark-theme .header-actions button,
        body.dark-theme .theme-toggle-btn {
            background: rgba(26, 26, 46, 0.6) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(183, 148, 246, 0.2) !important;
            box-shadow: none !important;
        }
        body.dark-theme .header-actions .btn:hover,
        body.dark-theme .header-actions button:hover {
            border-color: rgba(183, 148, 246, 0.35) !important;
            box-shadow: none !important;
        }

        /* ===== CARDS • GLASSMORPHISM ===== */
        body.dark-theme .card {
            background: rgba(26, 26, 46, 0.65) !important;
            backdrop-filter: blur(18px) saturate(1.4) !important;
            -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
            border: 1px solid rgba(183, 148, 246, 0.2) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(183, 148, 246, 0.1) !important;
        }
        body.dark-theme .card:hover {
            border-color: rgba(0, 229, 204, 0.28) !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 229, 204, 0.08), inset 0 1px 0 rgba(183, 148, 246, 0.15) !important;
        }

        /* Card titles gradient */
        body.dark-theme .card h2,
        body.dark-theme .card h3 {
            background: linear-gradient(135deg, #00E5CC, #B794F6) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
            text-shadow: none !important;
        }

        /* ===== INPUTS • GLASS BORDER ===== */
        body.dark-theme input,
        body.dark-theme select,
        body.dark-theme textarea {
            background: #1A1A2E !important;
            border: 1px solid rgba(183, 148, 246, 0.15) !important;
            color: #EDF0F5 !important;
            box-shadow: none !important;
        }
        body.dark-theme input:focus,
        body.dark-theme select:focus,
        body.dark-theme textarea:focus {
            border-color: rgba(0, 229, 204, 0.35) !important;
            box-shadow: none !important;
            outline: none !important;
        }

        /* (date navigator e time controls unificati sotto) */

        /* ===== BUTTONS • AURORA GRADIENT ===== */
        body.dark-theme .btn-primary,
        body.dark-theme button.btn-primary {
            background: linear-gradient(135deg, rgba(0, 229, 204, 0.2), rgba(183, 148, 246, 0.2)) !important;
            border: 1px solid rgba(0, 229, 204, 0.3) !important;
            color: #00E5CC !important;
            box-shadow: none !important;
        }
        body.dark-theme .btn-primary:hover,
        body.dark-theme button.btn-primary:hover {
            box-shadow: none !important;
            border-color: rgba(0, 229, 204, 0.5) !important;
            transform: translateY(-2px);
        }

        /* ===== ENTRY ITEMS • GLASS ===== */
        body.dark-theme .time-entry-item,
        body.dark-theme .entry-item {
            background: rgba(26, 26, 46, 0.5) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(183, 148, 246, 0.15) !important;
            box-shadow: none !important;
        }
        body.dark-theme .time-entry-item:hover,
        body.dark-theme .entry-item:hover {
            border-color: rgba(0, 229, 204, 0.25) !important;
            transform: translateX(4px);
            box-shadow: none !important;
        }

        /* ===== SETTINGS • GLASS ROWS ===== */
        body.dark-theme .setting-item {
            background: #1A1A2E !important;
            border: 1px solid rgba(183, 148, 246, 0.15) !important;
            box-shadow: none !important;
        }

        /* Toggle gradient aurora */
        body.dark-theme .switch input:checked + .slider {
            background: linear-gradient(135deg, #00E5CC, #B794F6) !important;
            box-shadow: 0 0 15px rgba(0, 229, 204, 0.3) !important;
        }

        /* ===== STATS • GLASS CARDS ===== */
        body.dark-theme .stat-item,
        body.dark-theme .monthly-stat-item {
            background: rgba(26, 26, 46, 0.5) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(183, 148, 246, 0.18) !important;
            box-shadow: none !important;
        }
        body.dark-theme .stat-item .stat-value,
        body.dark-theme .monthly-stat-item .stat-value {
            color: #B794F6 !important;
        }

        /* ===== CASH • AURORA STYLE ===== */
        body.dark-theme .cash-result-item {
            background: #1A1A2E !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
            box-shadow: none !important;
        }
        body.dark-theme .cash-result-item.total-row {
            border-left: 4px solid #B794F6 !important;
            background: linear-gradient(135deg, rgba(0, 229, 204, 0.06), rgba(183, 148, 246, 0.06)) !important;
            box-shadow: none !important;
        }
        body.dark-theme .cash-result-amount {
            color: #00E5CC !important;
        }
        body.dark-theme .cash-result-item.total-row .cash-result-amount {
            color: #B794F6 !important;
        }

        /* ===== CONTACT CARDS • GLASS ===== */
        body.dark-theme .contact-card {
            background: rgba(26, 26, 46, 0.5) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
            border: 1px solid rgba(183, 148, 246, 0.15) !important;
            box-shadow: none !important;
        }
        body.dark-theme .contact-card .contact-icon {
            color: #00E5CC !important;
        }

        /* ===== BOTTOM NAV • GLASS AURORA ===== */
        body.dark-theme .bottom-nav {
            background: rgba(26, 26, 46, 0.92) !important;
            backdrop-filter: blur(24px) saturate(1.5) !important;
            -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
            border: 1px solid rgba(183, 148, 246, 0.2) !important;
            box-shadow: none !important;
            border-radius: 28px !important;
            position: fixed !important;
            bottom: 14px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            z-index: 9999 !important;
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* Nav items • aurora dark */
        body.dark-theme .nav-item {
            color: rgba(237, 240, 245, 0.45) !important;
        }
        body.dark-theme .nav-item:hover {
            color: rgba(237, 240, 245, 0.7) !important;
        }

        /* Nav active • aurora glow */
        body.dark-theme .nav-item.active {
            color: #00E5CC !important;
            background: rgba(0, 229, 204, 0.06) !important;
            box-shadow: none !important;
        }
        body.dark-theme .nav-item.active .material-symbols-outlined {
            filter: drop-shadow(0 0 6px rgba(0, 229, 204, 0.4)) !important;
        }
        /* Removed dark-theme dot indicator for nav items */
        body.dark-theme .nav-item .material-symbols-outlined {
            color: inherit !important;
        }
        body.dark-theme .nav-item span:not(.material-symbols-outlined) {
            color: inherit !important;
        }

        /* ===== CALENDAR • GLASS ===== */
        body.dark-theme .calendar-header {
            background: rgba(26, 26, 46, 0.6) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(183, 148, 246, 0.18) !important;
        }
        body.dark-theme .calendar-day.today {
            border-color: #00E5CC !important;
            box-shadow: 0 0 10px rgba(0, 229, 204, 0.2) !important;
        }

        /* ===== SCROLLBAR • VIOLA ===== */
        body.dark-theme ::-webkit-scrollbar-thumb {
            background: rgba(183, 148, 246, 0.35) !important;
        }

        /* ===== MODAL/DIALOG • GLASS ===== */
        body.dark-theme .modal-content,
        body.dark-theme .dialog {
            background: rgba(26, 26, 46, 0.85) !important;
            backdrop-filter: blur(24px) !important;
            -webkit-backdrop-filter: blur(24px) !important;
            border: 1px solid rgba(183, 148, 246, 0.2) !important;
        }

        /* ===== GENERAL TEXTS ===== */
        body.dark-theme {
            color: #EDF0F5 !important;
        }
        body.dark-theme .section-title,
        body.dark-theme h2 {
            background: linear-gradient(135deg, #00E5CC, #B794F6) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
        }

        /* ===== TIME INPUT CONTAINER • AURORA (no glow) ===== */
        body.dark-theme .time-input-container {
            background: #1A1A2E !important;
            box-shadow: none !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
            border-radius: 20px !important;
            padding: 4px !important;
        }
        body.dark-theme .time-control-btn {
            background: #1A1A2E !important;
            color: #00E5CC !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
            border-radius: 14px !important;
            box-shadow: none !important;
            width: 38px !important;
            height: 38px !important;
        }
        body.dark-theme .time-control-btn:hover {
            box-shadow: none !important;
            border-color: rgba(0, 229, 204, 0.3) !important;
        }
        body.dark-theme .time-control-btn:active,
        body.dark-theme .time-control-btn.pressed {
            transform: scale(0.88) !important;
            background: #12121F !important;
            border-color: rgba(0, 229, 204, 0.45) !important;
        }
        body.dark-theme .time-input-container input {
            color: #EDF0F5 !important;
            font-weight: 800 !important;
        }

        /* ===== DATE NAVIGATOR • AURORA (no glow) ===== */
        body.dark-theme .date-navigator {
            background: #1A1A2E !important;
            box-shadow: none !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
            border-radius: 28px !important;
            padding: 0.5rem !important;
        }
        body.dark-theme .date-navigator .date-arrow-btn {
            width: 40px !important;
            height: 40px !important;
            border-radius: 50% !important;
            background: #1A1A2E !important;
            border: 1px solid rgba(183, 148, 246, 0.15) !important;
            color: #00E5CC !important;
            box-shadow: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
        }
        body.dark-theme .date-navigator .date-arrow-btn:hover {
            box-shadow: none !important;
            border-color: rgba(0, 229, 204, 0.3) !important;
            transform: scale(1.05) !important;
        }
        body.dark-theme .date-navigator .date-arrow-btn .material-symbols-outlined {
            font-size: 1.3rem !important;
        }
        body.dark-theme #dateIndicatorContent,
        body.dark-theme .date-navigator > span:not(.material-symbols-outlined) {
            background: linear-gradient(135deg, #00E5CC, #B794F6) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
            font-weight: 600 !important;
        }

        /* ===== FORM CONTROLS • AURORA ===== */
        body.dark-theme .form-control {
            background: #1A1A2E !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
            color: #EDF0F5 !important;
            box-shadow: inset 3px 3px 8px #0E0E1E, inset -3px -3px 8px #28284A !important;
        }
        body.dark-theme .form-control:focus {
            border-color: rgba(0, 229, 204, 0.35) !important;
            box-shadow: none !important;
            outline: none !important;
        }
        body.dark-theme label {
            color: rgba(237, 240, 245, 0.55) !important;
        }

        /* ===== TIME ROW • AURORA ===== */
        body.dark-theme .time-row {
            gap: 0.75rem !important;
        }

        /* ===== GENERAL ALL BUTTONS • AURORA BASE ===== */
        body.dark-theme button:not(.time-control-btn):not(.date-arrow-btn):not(.btn-primary):not(.theme-toggle-btn):not(.nav-item):not(.calendar-header button) {
            background: #1A1A2E !important;
            color: #00E5CC !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
        }

        /* ===== SELECT DROPDOWN • AURORA ===== */
        body.dark-theme select {
            background-color: #1A1A2E !important;
            color: #EDF0F5 !important;
            border: 1px solid rgba(183, 148, 246, 0.12) !important;
        }
        body.dark-theme select option {
            background: #1A1A2E !important;
            color: #EDF0F5 !important;
        }

        /* ===== MAIN CONTENT AREA ===== */
        body.dark-theme main {
            position: relative;
            z-index: 1;
        }

        body.dark-theme main {
            margin-top: var(--header-height, 70px);
        }

        /* ===== CALENDAR DAYS • DARK ===== */
        body.dark-theme .calendar-day {
            background: #1E1E35 !important;
            border: 1px solid rgba(183, 148, 246, 0.1) !important;
            box-shadow: none !important;
            color: #EDF0F5 !important;
        }
        body.dark-theme .calendar-day:hover {
            border-color: rgba(0, 229, 204, 0.25) !important;
            box-shadow: none !important;
        }
        body.dark-theme .calendar-day:active {
            box-shadow: none !important;
        }
        body.dark-theme .calendar-day.today {
            border-color: #00E5CC !important;
        }
        body.dark-theme .calendar-day.selected {
            background: rgba(0, 229, 204, 0.08) !important;
            box-shadow: none !important;
        }
        body.dark-theme .calendar-day.empty {
            background: transparent !important;
            border-color: rgba(183, 148, 246, 0.05) !important;
        }

        /* ===== KILL ALL NEOMORPHIC SHADOWS IN DARK ===== */
        body.dark-theme *,
        body.dark-theme *::before,
        body.dark-theme *::after {
            box-shadow: none !important;
        }
        /* Eccezioni • solo toggle attivo ha glow */
        body.dark-theme .switch input:checked + .slider {
            box-shadow: 0 0 12px rgba(0, 229, 204, 0.25) !important;
        }
        /* Removed dark-theme dot indicator override */

        /* ===== FIX • neo primary color ===== */
        body.dark-theme .neo-primary,
        body.dark-theme [style*="color: var(--neo-primary)"] {
            color: #00E5CC !important;
        }
