/* assets/css/dark-mode.css - Dark mode theme styles */

/* ============================================ */
/* DARK MODE VARIABLES */
/* ============================================ */

body.dark-mode {
    /* Dark background gradient */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

/* ============================================ */
/* DARK MODE THEME TOGGLE */
/* ============================================ */

body.dark-mode .theme-toggle {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    top: auto !important;
    left: auto !important;
    z-index: 999 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
}

body.dark-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .theme-slider {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .theme-slider:before {
    background-color: #e0e0e0 !important;
}

/* ============================================ */
/* DARK MODE SETTINGS ICON */
/* ============================================ */

body.dark-mode .settings-icon {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    color: #e0e0e0 !important;
    bottom: 4.5rem !important; /* Updated to match components.css */
    right: 1.5rem !important; /* Aligned with theme toggle */
}

body.dark-mode .settings-icon:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    transform: translateY(-2px) rotate(30deg);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================ */
/* DARK MODE CONTAINERS */
/* ============================================ */

body.dark-mode .container {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .auth-container {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .digital-clock {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .analog-clock {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* DARK MODE FORMS */
/* ============================================ */

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(254, 202, 87, 0.7);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .form-group select option {
    background: #1a1a2e;
    color: #e0e0e0;
}

/* ============================================ */
/* DARK MODE BUTTONS */
/* ============================================ */

body.dark-mode .btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-primary {
    background: rgba(254, 202, 87, 0.2);
    border-color: rgba(254, 202, 87, 0.4);
}

body.dark-mode .btn-primary:hover:not(:disabled) {
    background: rgba(254, 202, 87, 0.3);
}

/* ============================================ */
/* DARK MODE CARDS */
/* ============================================ */

body.dark-mode .service-card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-card:hover {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .bookmark-shortcut:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .bookmark-icon-container {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .bookmark-menu {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .bookmark-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .add-shortcut-icon {
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .add-shortcut-btn:hover .add-shortcut-icon {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================ */
/* DARK MODE WEATHER */
/* ============================================ */

body.dark-mode .weather-widget {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .weather-widget:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* ============================================ */
/* DARK MODE SEARCH */
/* ============================================ */

body.dark-mode .search-box {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-box:hover,
body.dark-mode .search-box:focus-within {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .search-box input {
    color: #e0e0e0;
}

body.dark-mode .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .search-box button {
    background: rgba(254, 202, 87, 0.15);
    border-left-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .search-box button:hover {
    background: rgba(254, 202, 87, 0.25);
}

/* ============================================ */
/* DARK MODE MESSAGES */
/* ============================================ */

body.dark-mode .error-message {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

body.dark-mode .success-message {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

/* ============================================ */
/* DARK MODE ADMIN */
/* ============================================ */

body.dark-mode .admin-table {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .admin-table th {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .stat-card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .admin-login-card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .users-section {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .table-container {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* DARK MODE MODALS */
/* ============================================ */

body.dark-mode .modal {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .modal-content {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Rename Modal (existing) */
body.dark-mode .rename-modal {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .rename-modal-content {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .rename-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .rename-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(254, 202, 87, 0.7);
}

body.dark-mode .rename-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* New Bookmark Modals */
body.dark-mode .bookmark-modal {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .bookmark-modal-content {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* New Admin Modals */
body.dark-mode .admin-modal {
    background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .admin-modal-content {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* DARK MODE SETTINGS */
/* ============================================ */

body.dark-mode .settings-modal {
    background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .settings-modal-content {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .settings-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .settings-tabs {
    background: rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .settings-tab {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .settings-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .settings-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #feca57;
}

body.dark-mode .settings-description {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .help-info {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .help-info li {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================ */
/* DARK MODE HELP MODAL */
/* ============================================ */

body.dark-mode .help-modal {
    background: rgba(0, 0, 0, 0.85);
}

body.dark-mode .help-modal-content {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .help-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* DARK MODE MISCELLANEOUS */
/* ============================================ */

body.dark-mode .bookmarks-empty {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer {
    opacity: 0.6;
}

body.dark-mode .copyright {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ============================================ */
/* RESPONSIVE DARK MODE */
/* ============================================ */

@media (max-width: 768px) {
    body.dark-mode .theme-toggle {
        bottom: 1rem !important;
        right: 1rem !important;
        top: auto !important;
        left: auto !important;
    }

    body.dark-mode .settings-icon {
        bottom: 3.5rem !important; /* Updated to match components.css */
        right: 1rem !important; /* Aligned with mobile theme toggle */
        top: auto !important;
        left: auto !important;
    }

    body.dark-mode .settings-tabs {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .settings-tab {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        border-right-color: transparent;
    }

    body.dark-mode .settings-tab.active {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        border-right-color: #feca57;
    }
}

@media (max-width: 480px) {
    body.dark-mode .theme-toggle {
        bottom: 0.75rem !important;
        right: 0.75rem !important;
        top: auto !important;
        left: auto !important;
    }

    body.dark-mode .settings-icon {
        bottom: 3.25rem !important; /* Updated to match components.css */
        right: 0.75rem !important; /* Aligned with smaller screen theme toggle */
        top: auto !important;
        left: auto !important;
    }
}

@media (max-width: 320px) {
    body.dark-mode .theme-toggle {
        bottom: 0.5rem !important;
        right: 0.5rem !important;
        top: auto !important;
        left: auto !important;
    }

    body.dark-mode .settings-icon {
        bottom: 3rem !important; /* Updated to match components.css */
        right: 0.5rem !important; /* Aligned with very small screen theme toggle */
        top: auto !important;
        left: auto !important;
    }

    body.dark-mode .theme-toggle:hover {
        transform: scale(0.9) translateY(-2px);
    }
}
