/**
 * Dark Mode Theme for MyDreamHouse Application
 * Comprehensive dark theme styling with professional appearance
 * Automatically applied when dark mode is enabled
 */

/* Dark mode root variables and CSS custom properties */
html.dark-mode {
    color-scheme: dark;

    /* Override CSS variables for dark mode */
    --primary-color: #4cc9f0;
    --primary-light: #1a3a4a;
    --secondary-color: #3db5e8;
    --accent-color: #f72585;
    --text-color: #e4e4e7;
    --text-light: #a0a0b8;
    --bg-color: #1a1a2e;
    --card-bg: #27273a;
    --border-color: #3a3a4f;
    --success-color: #4cc9f0;
    --warning-color: #7c8db0;
    --danger-color: #ef233c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

html.dark-mode body {
    background-color: #1a1a2e;
    color: #e4e4e7;
}

/* Navigation bar in dark mode */
html.dark-mode .main-nav {
    background-color: #0f0f1e;
    box-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

html.dark-mode .nav-brand {
    color: #f0f0f0;
}

html.dark-mode .nav-subtitle {
    color: rgba(240, 240, 240, 0.7);
}

html.dark-mode .nav-subtitle::before {
    background-color: rgba(240, 240, 240, 0.3);
}

html.dark-mode .nav-link {
    color: #e4e4e7;
}

html.dark-mode .nav-link:hover {
    background-color: #27273a;
}

html.dark-mode .nav-link.active {
    background-color: #27273a;
}

html.dark-mode .nav-link.active::after {
    background-color: #4cc9f0;
}

html.dark-mode .nav-link.compact:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Page transition overlay in dark mode */
html.dark-mode .page-transition-overlay {
    background: linear-gradient(90deg, #1a1a2e, #4cc9f0, #1a1a2e);
}

/* Main content background */
html.dark-mode .main-content {
    background-color: #1a1a2e;
}

/* Password modal in dark mode */
html.dark-mode .password-modal {
    background-color: #27273a;
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.7);
}

html.dark-mode .password-modal h2 {
    color: #f0f0f0;
}

html.dark-mode .password-modal p {
    color: #b4b4c8;
}

html.dark-mode .password-input {
    background-color: #1a1a2e;
    color: #e4e4e7;
    border-color: #3a3a4f;
}

html.dark-mode .password-input:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.1);
}

html.dark-mode .password-submit {
    background-color: #4cc9f0;
    color: #0f0f1e;
    border-color: #4cc9f0;
}

html.dark-mode .password-submit:hover {
    background-color: #3db5e8;
}

/* Alert styling in dark mode */
html.dark-mode .alert {
    background-color: #27273a;
    color: #e4e4e7;
    border-left-color: #4cc9f0;
}

html.dark-mode .alert-success {
    background-color: rgba(76, 201, 240, 0.1);
    border-left-color: #4cc9f0;
}

html.dark-mode .alert-error {
    background-color: rgba(239, 35, 60, 0.1);
    border-left-color: #ef233c;
}

html.dark-mode .alert-warning {
    background-color: rgba(124, 141, 176, 0.1);
    border-left-color: #7c8db0;
}

html.dark-mode .alert-info {
    background-color: rgba(67, 97, 238, 0.1);
    border-left-color: #4361ee;
}

html.dark-mode .alert-close {
    color: #8d99ae;
}

html.dark-mode .alert-close:hover {
    color: #e4e4e7;
}

/* Footer in dark mode */
html.dark-mode .main-footer {
    background-color: #0f0f1e;
    color: #8d99ae;
    border-top-color: #27273a;
}

html.dark-mode .copyright-text {
    color: #8d99ae;
}

html.dark-mode .version {
    color: #6a6b7e;
}

/* Tables in dark mode */
html.dark-mode table {
    background-color: #27273a;
    color: #e4e4e7;
}

html.dark-mode thead {
    background-color: #1a1a2e;
}

html.dark-mode thead th {
    color: #f0f0f0;
    border-color: #3a3a4f;
}

html.dark-mode tbody tr {
    border-color: #3a3a4f;
}

html.dark-mode tbody tr:hover {
    background-color: #2d2d40;
}

html.dark-mode tbody td {
    border-color: #3a3a4f;
}

/* Links in dark mode */
html.dark-mode a {
    color: #4cc9f0;
}

html.dark-mode a:hover {
    color: #3db5e8;
}

/* Buttons in dark mode */
html.dark-mode button {
    background-color: #4cc9f0;
    color: #0f0f1e;
}

html.dark-mode button:hover {
    background-color: #3db5e8;
}

html.dark-mode .btn-secondary {
    background-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .btn-secondary:hover {
    background-color: #4a4a5f;
}

html.dark-mode .btn-danger {
    background-color: #ef233c;
    color: white;
}

html.dark-mode .btn-danger:hover {
    background-color: #d91e2a;
}

html.dark-mode .btn-clear {
    background-color: #dc143c;
    color: white;
}

html.dark-mode .btn-clear:hover {
    background-color: #b00830;
}

html.dark-mode .btn-reset {
    background-color: #4a4a5f;
    color: white;
    text-decoration: none;
}

html.dark-mode .btn-reset:hover {
    background-color: #5a5a6f;
    color: white;
}

/* Primary button in dark mode - dark background with white text */
html.dark-mode .btn-primary {
    background-color: #3a3a4f;
    color: #ffffff;
}

html.dark-mode .btn-primary:hover {
    background-color: #4a4a5f;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

/* Form elements in dark mode */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
    background-color: #27273a;
    color: #e4e4e7;
    border-color: #3a3a4f;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.1);
    background-color: #27273a;
}

html.dark-mode input::placeholder {
    color: #8d99ae;
}

/* Filter group styling in dark mode */
html.dark-mode .filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

html.dark-mode .filter-select,
html.dark-mode .filter-input {
    background-color: #27273a;
    color: #e4e4e7;
    border-color: #3a3a4f;
    padding: 10px 11px;
    border-radius: 6px;
    font-size: 14px;
    min-height: 36px;
    height: 36px;
    max-height: 36px;
    line-height: 1;
    font-family: inherit;
}

html.dark-mode .custom-select-trigger {
    background-color: #27273a;
    color: #e4e4e7;
    border-color: #3a3a4f;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    line-height: 1;
}

html.dark-mode .custom-select-trigger:hover {
    border-color: #4cc9f0;
}

html.dark-mode .custom-select.open .custom-select-trigger {
    border-color: #4cc9f0;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

html.dark-mode .custom-select-options {
    background-color: #27273a;
    border-color: #3a3a4f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

html.dark-mode .custom-select-option {
    color: #e4e4e7;
}

html.dark-mode .custom-select-option:hover {
    background-color: #3a3a4f;
    color: #4cc9f0;
}

html.dark-mode .custom-select-option.selected {
    background-color: #4cc9f0;
    color: #0f0f1e;
}

html.dark-mode .custom-select-option.selected:hover {
    background-color: #3db5e8;
}

html.dark-mode .filter-select:hover,
html.dark-mode .filter-input:hover {
    border-color: #4cc9f0;
}

html.dark-mode .filter-select:focus,
html.dark-mode .filter-input:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
    background-color: #27273a;
}

html.dark-mode .range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    height: 36px;
    max-height: 36px;
}

html.dark-mode .range-inputs input {
    flex: 1;
    min-height: 36px;
    height: 36px;
    max-height: 36px;
    line-height: 1;
}

html.dark-mode .range-inputs span {
    color: #8d99ae;
    flex-shrink: 0;
}

/* Cards and containers in dark mode */
html.dark-mode .card {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

html.dark-mode .container {
    background-color: #1a1a2e;
}

/* Code elements in dark mode */
html.dark-mode code,
html.dark-mode pre {
    background-color: #0f0f1e;
    color: #e4e4e7;
    border-color: #3a3a4f;
}

/* Dropdowns in dark mode */
html.dark-mode .dropdown-menu {
    background-color: #27273a;
    border-color: #3a3a4f;
}

html.dark-mode .dropdown-menu a {
    color: #e4e4e7;
}

html.dark-mode .dropdown-menu a:hover {
    background-color: #3a3a4f;
    color: #4cc9f0;
}

/* Modals in dark mode */
html.dark-mode .modal-content {
    background-color: #27273a;
    color: #e4e4e7;
}

html.dark-mode .modal-header {
    border-bottom-color: #3a3a4f;
}

html.dark-mode .modal-footer {
    border-top-color: #3a3a4f;
}

/* Scrollbars in dark mode (Webkit browsers) */
html.dark-mode ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html.dark-mode ::-webkit-scrollbar-track {
    background-color: #1a1a2e;
}

html.dark-mode ::-webkit-scrollbar-thumb {
    background-color: #3a3a4f;
    border-radius: 6px;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
    background-color: #4a4a5f;
}

/* Selection highlight in dark mode */
html.dark-mode ::selection {
    background-color: #4cc9f0;
    color: #0f0f1e;
}

html.dark-mode ::-moz-selection {
    background-color: #4cc9f0;
    color: #0f0f1e;
}

/* Breadcrumbs in dark mode */
html.dark-mode .breadcrumb {
    background-color: #27273a;
    border-color: #3a3a4f;
}

html.dark-mode .breadcrumb-item.active {
    color: #e4e4e7;
}

html.dark-mode .breadcrumb-item > a {
    color: #4cc9f0;
}

/* Badges in dark mode */
html.dark-mode .badge {
    background-color: #4cc9f0;
    color: #0f0f1e;
}

html.dark-mode .badge-secondary {
    background-color: #3a3a4f;
    color: #e4e4e7;
}

/* Alerts container in dark mode */
html.dark-mode .alerts-container {
    background-color: transparent;
}

/* Custom messages in dark mode */
html.dark-mode .refresh-notification {
    background-color: #4361ee;
    color: white;
}

/* Border colors in dark mode */
html.dark-mode hr {
    border-color: #3a3a4f;
}

html.dark-mode .border {
    border-color: #3a3a4f;
}

/* Label styling in dark mode */
html.dark-mode label {
    color: #e4e4e7;
}

/* Panel and box shadows in dark mode */
html.dark-mode .panel {
    background-color: #27273a;
    border-color: #3a3a4f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Transition effects - removed universal selector for performance */
/* Individual elements will handle their own transitions in base.css */

/* Alert list specific styles in dark mode */
html.dark-mode .alerts-header {
    background: linear-gradient(135deg, #2b2d42 0%, #353850 100%);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
}

html.dark-mode .alerts-header h1 {
    color: #f0f0f0;
}

html.dark-mode .alerts-header p {
    color: #8d99ae;
}

/* Alert items styling in dark mode */
html.dark-mode .alert-item {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .alert-item:hover {
    background-color: #2d2d40;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.1);
}

html.dark-mode .alert-item-header {
    border-color: #3a3a4f;
}

html.dark-mode .alert-trigger {
    color: #4cc9f0;
}

html.dark-mode .alert-trigger:hover {
    color: #3db5e8;
}

/* Property list specific styles in dark mode */
html.dark-mode .property-card {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .property-card:hover {
    box-shadow: 0 10px 25px rgba(76, 201, 240, 0.1);
    border-color: #4cc9f0;
}

html.dark-mode .property-header {
    border-bottom-color: #3a3a4f;
}

html.dark-mode .property-title {
    color: #f0f0f0;
}

html.dark-mode .property-price {
    color: #4cc9f0;
}

html.dark-mode .property-meta {
    color: #8d99ae;
}

/* Filter toggle button styling in dark mode */
html.dark-mode .toggle-filters {
    background: none;
}

html.dark-mode .toggle-filters:hover {
    background-color: transparent;
}

/* Theme toggle button container styling in dark mode */
html.dark-mode .theme-toggle-label {
    color: #8d99ae;
}

/* Theme toggle button styling in dark mode */
html.dark-mode .theme-toggle-btn {
    background: none;
}

html.dark-mode .theme-toggle-btn:hover {
    background-color: transparent;
}

html.dark-mode .theme-toggle-btn:active {
    background-color: transparent;
}

/* Statistics page specific styles in dark mode */
html.dark-mode .stat-card {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .stat-item {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .stat-item:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

html.dark-mode .stat-value {
    color: #4cc9f0;
}

html.dark-mode .stat-label {
    color: #8d99ae;
}

/* Charts and data cards in dark mode */
html.dark-mode .stats-chart-card,
html.dark-mode .stats-data-card {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .stats-chart-card:hover,
html.dark-mode .stats-data-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

html.dark-mode .chart-header h3 {
    color: #f0f0f0;
}

html.dark-mode .chart-subtitle {
    color: #8d99ae;
}

html.dark-mode .chart-legend {
    border-top-color: #3a3a4f;
}

html.dark-mode .chart-legend p {
    color: #d0d8e8 !important;
}

html.dark-mode .data-card-header h3 {
    color: #f0f0f0;
}

html.dark-mode .data-card-badge {
    background-color: #1a1a2e;
    color: #8d99ae;
}

html.dark-mode .data-row {
    border-bottom-color: #3a3a4f;
}

html.dark-mode .data-label {
    color: #e4e4e7;
}

html.dark-mode .data-value {
    color: #4cc9f0;
}

html.dark-mode .data-change {
    color: #8d99ae;
}

/* History page specific styles in dark mode */
html.dark-mode .timeline {
    color: #e4e4e7;
}

html.dark-mode .timeline-item {
    border-color: #3a3a4f;
}

html.dark-mode .timeline-marker {
    background-color: #4cc9f0;
    border-color: #1a1a2e;
}

/* Configuration page specific styles in dark mode */
html.dark-mode .config-section {
    background-color: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
}

html.dark-mode .config-section-title {
    color: #f0f0f0;
}

html.dark-mode .config-item {
    border-color: #3a3a4f;
}

/* Tabs styling in dark mode */
html.dark-mode .tab-nav {
    border-bottom-color: #3a3a4f;
}

html.dark-mode .tab-link {
    color: #8d99ae;
    border-color: transparent;
}

html.dark-mode .tab-link:hover {
    color: #e4e4e7;
    border-color: #3a3a4f;
}

html.dark-mode .tab-link.active {
    color: #4cc9f0;
    border-color: #4cc9f0;
}

/* Pagination in dark mode */
html.dark-mode .pagination {
    background-color: transparent;
}

html.dark-mode .page-item {
    border-color: #3a3a4f;
}

html.dark-mode .page-link {
    color: white;
    background-color: transparent;
    border-color: transparent;
}

html.dark-mode .page-link:hover {
    background-color: #1a3a4a;
    border-color: transparent;
    color: white;
}

html.dark-mode .page-item.active .page-link {
    background-color: #4cc9f0;
    border-color: #4cc9f0;
    color: white;
}

html.dark-mode .pagination .page-btn.current,
html.dark-mode .pagination .page-link.current {
    background-color: #4cc9f0;
    border-color: #4cc9f0;
    color: white;
}

html.dark-mode .pagination-loading::after {
    background-color: var(--card-bg);
    opacity: 0.8;
}

/* Search/filter input in dark mode */
html.dark-mode .search-input {
    background-color: #27273a;
    color: #e4e4e7;
    border-color: #3a3a4f;
}

html.dark-mode .search-input:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.1);
}

html.dark-mode .search-input::placeholder {
    color: #8d99ae;
}

/* Property link styling in dark mode */
html.dark-mode .property-link {
    background-color: var(--primary-color);
    color: black;
}

html.dark-mode .property-link:hover {
    background-color: var(--secondary-color);
}

/* Tooltip styling in dark mode */
html.dark-mode .tooltip {
    background-color: #27273a;
    color: #e4e4e7;
    border-color: #3a3a4f;
}

html.dark-mode .tooltip::after {
    border-top-color: #27273a;
}

/* Alert Card Styles in Dark Mode */
html.dark-mode .alert-card {
    background: #27273a;
    border-color: #3a3a4f;
    color: #e4e4e7;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
}

html.dark-mode .alert-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
    border-color: #4cc9f0;
}

html.dark-mode .alert-title-section h3 {
    color: #f0f0f0;
}

html.dark-mode .alert-phone {
    color: #a0a0b8;
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .criterion-label {
    color: #a0a0b8;
}

html.dark-mode .criterion-value {
    color: #e4e4e7;
}

/* Icons maintain consistent color in dark mode */
html.dark-mode .criterion-icon {
    color: #4361ee;
}

/* Alert Action Buttons in Dark Mode */
html.dark-mode .btn-test {
    background: #4361ee;
    color: #ffffff;
}

html.dark-mode .btn-test:hover {
    background: #3451d6;
}

html.dark-mode .btn-edit {
    background: #0ea5e9;
    color: #ffffff;
}

html.dark-mode .btn-edit:hover {
    background: #0284c7;
}

html.dark-mode .btn-delete {
    background: #ef233c;
    color: #ffffff;
}

html.dark-mode .btn-delete:hover {
    background: #d62828;
}

/* Notifications in Dark Mode */
html.dark-mode .notifications-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

html.dark-mode .notification {
    background: linear-gradient(135deg, #27273a 0%, #2d2d40 100%);
    color: #e4e4e7;
    padding: 14px 20px;
    border-radius: 10px;
    border-left: 5px solid #4cc9f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(420px) scale(0.9);
    max-width: 340px;
    word-wrap: break-word;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 201, 240, 0.2);
}

html.dark-mode .notification.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

html.dark-mode .notification:hover {
    box-shadow: 0 12px 32px rgba(76, 201, 240, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    border-color: rgba(76, 201, 240, 0.4);
}

html.dark-mode .notification-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #86efac;
    border-color: rgba(16, 185, 129, 0.3);
}

html.dark-mode .notification-success:hover {
    border-left-color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.5);
}

html.dark-mode .notification-error {
    border-left-color: #f87171;
    background: linear-gradient(135deg, rgba(239, 35, 60, 0.2) 0%, rgba(239, 35, 60, 0.1) 100%);
    color: #fca5a5;
    border-color: rgba(239, 35, 60, 0.3);
}

html.dark-mode .notification-error:hover {
    border-left-color: #fca5a5;
    border-color: rgba(239, 35, 60, 0.5);
}

html.dark-mode .notification-info {
    border-left-color: #4361ee;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(67, 97, 238, 0.08) 100%);
    color: #93c5fd;
    border-color: rgba(67, 97, 238, 0.3);
}

html.dark-mode .notification-info:hover {
    border-left-color: #93c5fd;
    border-color: rgba(67, 97, 238, 0.5);
}

/* Statistics page icons in dark mode - maintain consistent colors across themes */
html.dark-mode .stat-icon {
    color: white;
}

html.dark-mode .stat-icon.primary {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

/* Alert list page stats icons in dark mode - match alert_list.css light theme colors */
html.dark-mode .alerts-stats-summary .stat-icon.success {
    background: linear-gradient(135deg, #ef233c 0%, #d62828 100%);
}

html.dark-mode .alerts-stats-summary .stat-icon.info {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
}

html.dark-mode .alerts-stats-summary .stat-icon.warning {
    background: linear-gradient(135deg, #7c8db0 0%, #6b7aa3 100%);
}

html.dark-mode .alerts-stats-summary .stat-icon.danger {
    background: linear-gradient(135deg, #ef233c 0%, #f72585 100%);
}

/* Statistics page stats icons in dark mode - use different color scheme */
html.dark-mode .stats-summary .stat-icon.success {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
}

html.dark-mode .stats-summary .stat-icon.warning {
    background: linear-gradient(135deg, #f8961e 0%, #f3722c 100%);
}

html.dark-mode .stats-summary .stat-icon.danger {
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
}

html.dark-mode .stats-summary .stat-icon.info {
    background: linear-gradient(135deg, #8d99ae 0%, #6c757d 100%);
}

html.dark-mode .stats-summary .stat-icon.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* History page stats icons in dark mode - match history_list.css light theme colors */
html.dark-mode .history-stats .stat-icon.primary {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

html.dark-mode .history-stats .stat-icon.warning {
    background: linear-gradient(135deg, #f8961e 0%, #f3722c 100%);
}

html.dark-mode .history-stats .stat-icon.info {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
}

/* ApexCharts legend in dark mode */
html.dark-mode .apexcharts-legend-series {
    color: #d0d8e8 !important;
}

html.dark-mode .apexcharts-legend-series span {
    color: #d0d8e8 !important;
}

html.dark-mode .apexcharts-legend-marker {
    background-color: inherit !important;
}

/* Dropdown and menu in dark mode */
html.dark-mode [class*="dropdown"],
html.dark-mode [class*="menu"] {
    background-color: #27273a !important;
    color: #e4e4e7 !important;
    border-color: #3a3a4f !important;
}

html.dark-mode [class*="dropdown"] a,
html.dark-mode [class*="menu"] a {
    color: #e4e4e7 !important;
    background-color: transparent !important;
}

html.dark-mode [class*="dropdown"] a:hover,
html.dark-mode [class*="menu"] a:hover,
html.dark-mode [class*="dropdown"] li:hover,
html.dark-mode [class*="menu"] li:hover {
    background-color: #3a3a4f !important;
    color: #4cc9f0 !important;
}

/* Responsive notifications in dark mode - mobile devices */
@media (max-width: 768px) {
    html.dark-mode .notifications-container {
        bottom: 70px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    html.dark-mode .notification {
        max-width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }
}


