/* ===================================
   Theme CSS - Dark Mode Definitions
   =================================== */

/* Dark Theme Overrides */
[data-bs-theme="dark"] body {
    background-color: #1a1a2e;
    color: #ecf0f1;
}

[data-bs-theme="dark"] .card {
    background-color: #16213e;
    border-color: #0f3460;
    color: #ecf0f1;
}

[data-bs-theme="dark"] .card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
}

[data-bs-theme="dark"] .card-header {
    background-color: #0f3460 !important;
    border-bottom-color: #1a1a2e;
    color: #ecf0f1;
}

[data-bs-theme="dark"] .card-header.bg-light {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1 !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #16213e;
    border-color: #0f3460;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #ecf0f1;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #ecf0f1;
}

[data-bs-theme="dark"] .table {
    border-color: #0f3460;
    color: #ecf0f1;
}

[data-bs-theme="dark"] .table tbody tr {
    background-color: #16213e;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.15) 100%);
}

/* Dark mode for table headers - override light gradients */
[data-bs-theme="dark"] .table thead:not(.table-header-fixed):not(.table-header-investment) {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

[data-bs-theme="dark"] .table thead:not(.table-header-fixed):not(.table-header-investment) th {
    color: #ecf0f1 !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

/* Dark mode for fixed assets table header */
[data-bs-theme="dark"] .table-header-fixed {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
}

[data-bs-theme="dark"] .table-header-fixed th {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    color: #ecf0f1 !important;
}

/* Dark mode for investment assets table header */
[data-bs-theme="dark"] .table-header-investment {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%) !important;
}

[data-bs-theme="dark"] .table-header-investment th {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%) !important;
    color: #ecf0f1 !important;
}

[data-bs-theme="dark"] .text-positive {
    color: #2ecc71;
}

[data-bs-theme="dark"] .text-negative {
    color: #e74c3c;
}

[data-bs-theme="dark"] footer {
    background-color: #0f3460 !important;
    color: #ecf0f1;
}

/* Theme toggle styling */
.theme-toggle {
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.theme-toggle:hover {
    opacity: 0.8;
}
