/* Global Theme CSS - Dark and Light Mode Support */

/* Default Dark Mode Variables */
:root {
    /* Primary brand colors - purple gradient */
    --primary-color: #667eea;
    --secondary-color: #764ba2;

    /* Complementary accent colors */
    --accent-warm: #f093fb;
    --accent-cool: #4facfe;
    --accent-highlight: #a8edea;

    /* Dark mode backgrounds */
    --bg-primary: #0a0e27;
    --bg-secondary: #141b3a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    /* Text colors for dark mode */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Border colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);

    /* Shadow colors */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Input backgrounds - improved contrast */
    --input-bg: rgba(255, 255, 255, 0.15);
    --input-border: rgba(255, 255, 255, 0.25);
    --input-focus-bg: rgba(255, 255, 255, 0.22);

    /* Status colors (work in both modes) */
    --color-success: #28a745;
    --color-info: #17a2b8;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
}

/* Light Mode Variables - World-Class Design with Proper Contrast */
[data-theme="light"] {
    /* Light mode backgrounds - warmer, softer tones for reduced eye strain */
    --bg-primary: #f5f6fa;  /* Soft blue-grey, easier on eyes than pure white */
    --bg-secondary: #ffffff;  /* Pure white for cards */
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;  /* Slightly cooler on hover */

    /* Text colors for light mode - WCAG AA compliant (4.5:1+ contrast) */
    --text-primary: #1a202c;  /* Near black, high contrast */
    --text-secondary: #2d3748;  /* Dark grey, excellent readability */
    --text-muted: #4a5568;  /* Medium grey, clearly visible but secondary */

    /* Border colors for light mode - clearly visible */
    --border-color: rgba(45, 55, 72, 0.2);  /* Stronger borders */
    --border-color-hover: rgba(45, 55, 72, 0.35);

    /* Shadow colors for light mode - subtle but defined */
    --shadow-sm: 0 2px 8px rgba(26, 32, 44, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 32, 44, 0.12);
    --shadow-lg: 0 8px 32px rgba(26, 32, 44, 0.16);

    /* Input backgrounds for light mode - clear and visible */
    --input-bg: #ffffff;  /* White background */
    --input-border: rgba(45, 55, 72, 0.3);  /* Strong border */
    --input-focus-bg: #ffffff;
}

/* Global body styling */
body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
    padding-top: 76px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button - Prominent and Visible */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-toggle-slider i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-toggle-slider i {
    transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle-slider {
    transform: translateX(28px);
}

[data-theme="light"] .theme-toggle-slider i {
    color: #f59e0b;
}

/* Modern glassmorphism cards */
.content-card {
    background: linear-gradient(135deg,
        var(--bg-card) 0%,
        var(--bg-card-hover) 100%) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

/* Light mode content cards - white background, clear borders */
[data-theme="light"] .content-card {
    background: #ffffff !important;
    border: 1px solid rgba(45, 55, 72, 0.2) !important;
    box-shadow: 0 8px 32px rgba(26, 32, 44, 0.16) !important;
    color: #1a202c !important;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.1) 50%,
        rgba(79, 172, 254, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15) !important;
}

.content-card-header {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.1) 100%) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem;
}

/* Light mode card headers - subtle but visible */
[data-theme="light"] .content-card-header {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(118, 75, 162, 0.05) 100%) !important;
    border-bottom: 1px solid rgba(45, 55, 72, 0.15) !important;
}

.content-card-header h5 {
    color: var(--text-primary) !important;
    font-weight: 700;
    margin: 0;
}

/* Light mode card header text */
[data-theme="light"] .content-card-header h5 {
    color: #1a202c !important;
}

.content-card-body {
    padding: 1.25rem;
}

/* Enhanced stats cards */
.stats-card {
    background: linear-gradient(135deg,
        var(--bg-card) 0%,
        var(--bg-card-hover) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(79, 172, 254, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-card.success {
    background: linear-gradient(135deg,
        rgba(40, 167, 69, 0.15) 0%,
        rgba(32, 201, 151, 0.1) 100%);
    border-color: rgba(40, 167, 69, 0.2);
}

.stats-card.info {
    background: linear-gradient(135deg,
        rgba(23, 162, 184, 0.15) 0%,
        rgba(79, 172, 254, 0.1) 100%);
    border-color: rgba(79, 172, 254, 0.2);
}

.stats-card.warning {
    background: linear-gradient(135deg,
        rgba(255, 193, 7, 0.15) 0%,
        rgba(253, 126, 20, 0.1) 100%);
    border-color: rgba(255, 193, 7, 0.2);
}

.stats-card.danger {
    background: linear-gradient(135deg,
        rgba(220, 53, 69, 0.15) 0%,
        rgba(232, 62, 140, 0.1) 100%);
    border-color: rgba(220, 53, 69, 0.2);
}

.stats-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    color: var(--text-secondary);
}

.stats-card-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
}

.stats-card-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Quick action cards */
.quick-action-card {
    display: block;
    background: linear-gradient(135deg,
        var(--bg-card) 0%,
        var(--bg-card-hover) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(79, 172, 254, 0.2) 0%,
        rgba(168, 237, 234, 0.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quick-action-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
    text-decoration: none;
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-text h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-action-text small {
    color: var(--text-secondary);
}

/* Modern table styling */
.table-modern {
    margin: 0;
    color: var(--text-primary) !important;
}

.table-modern thead th {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.1) 100%) !important;
    border: none;
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Light mode table headers - better contrast */
[data-theme="light"] .table-modern thead th {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.12) 0%,
        rgba(118, 75, 162, 0.08) 100%) !important;
    color: #1a202c !important;  /* Very dark for clarity */
    border-bottom: 2px solid rgba(45, 55, 72, 0.2);
}

.table-modern tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

/* Light mode table rows - clearer separation */
[data-theme="light"] .table-modern tbody tr {
    border-bottom: 1px solid rgba(45, 55, 72, 0.12);
    background-color: #ffffff;
}

.table-modern tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.15) !important;
}

/* Light mode table hover - subtle but visible */
[data-theme="light"] .table-modern tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.08) !important;
}

.table-modern tbody tr:hover td {
    color: var(--text-primary) !important;
}

.table-modern tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Light mode table cells - dark, readable text */
[data-theme="light"] .table-modern tbody td {
    color: #2d3748 !important;  /* Dark grey, clearly readable */
}

.table-modern tbody td .badge {
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Form controls - enhanced contrast */
.form-control,
.form-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Light mode form controls - white background, clear borders */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: #ffffff !important;
    border: 1.5px solid rgba(45, 55, 72, 0.25) !important;
    color: #1a202c !important;  /* Very dark text */
}

.form-control:focus,
.form-select:focus {
    background: var(--input-focus-bg) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.35) !important;
}

/* Light mode form focus - clear indication */
[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: #ffffff !important;
    border-color: #667eea !important;
    color: #1a202c !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Light mode placeholder text - clearly visible */
[data-theme="light"] .form-control::placeholder {
    color: #718096 !important;  /* Medium grey, clearly readable */
    opacity: 1 !important;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Input group styling - enhanced */
.input-group-text {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

/* Light mode input group - clear and visible */
[data-theme="light"] .input-group-text {
    background: #f7fafc !important;  /* Light grey background */
    border: 1px solid rgba(45, 55, 72, 0.3) !important;
    color: #2d3748 !important;  /* Dark text */
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.btn-outline-primary {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
    background: transparent;
}

.btn-outline-primary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

/* Text utilities */
.text-muted {
    color: var(--text-muted) !important;
}

/* Light mode - ensure muted text is clearly readable */
[data-theme="light"] .text-muted {
    color: #4a5568 !important;  /* Medium-dark grey, clearly visible */
}

.text-white-50 {
    color: var(--text-secondary) !important;
}

/* Light mode - override white text */
[data-theme="light"] .text-white-50 {
    color: #4a5568 !important;
}

/* Modal styling - Consistent with dashboard */
.modal-content {
    background: linear-gradient(135deg,
        rgba(20, 25, 35, 0.98) 0%,
        rgba(15, 20, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .modal-content {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 249, 250, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

[data-theme="light"] .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
}

[data-theme="light"] .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

[data-theme="light"] .modal-title {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

[data-theme="light"] .btn-close {
    filter: invert(0);
}

.btn-close:hover {
    opacity: 1;
}

/* Data boxes for modal - Dashboard style */
.data-box {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .data-box {
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.02) 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.data-box:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.data-box-highlight {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.2) 0%,
        rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .data-box-highlight {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(118, 75, 162, 0.06) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.data-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.35rem;
}

[data-theme="light"] .data-label {
    color: #4a5568 !important;  /* Medium-dark grey, clearly visible */
}

.data-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.4;
}

[data-theme="light"] .data-value {
    color: #1a202c !important;  /* Very dark for maximum readability */
}

/* Receipt and actions sections - Dashboard style */
.receipt-section,
.actions-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .receipt-section,
[data-theme="light"] .actions-section {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .section-title {
    color: #2d3748 !important;  /* Dark grey for excellent readability */
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

/* Sortable headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.sortable-header:hover {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.25) 0%,
        rgba(118, 75, 162, 0.2) 100%) !important;
    color: var(--text-primary) !important;
}

.sortable-header i {
    transition: all 0.3s ease;
}

.sortable-header:hover i {
    color: var(--accent-highlight) !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

/* Light mode headings - ensure maximum readability */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #1a202c !important;  /* Very dark for headings */
}

/* Footer styling */
footer {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-color);
}

/* Light mode footer - ensure readability */
[data-theme="light"] footer {
    background: #ffffff !important;
    color: #4a5568 !important;
    border-top: 1px solid rgba(45, 55, 72, 0.15);
}

/* Alert styling */
.alert {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

/* Light mode alerts - ensure text is readable */
[data-theme="light"] .alert {
    border: 1px solid rgba(45, 55, 72, 0.2);
    color: #1a202c;
}

/* Badge styling */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

/* Light mode badges - ensure text is readable */
[data-theme="light"] .badge {
    /* Badges with colored backgrounds should maintain white text */
    /* Badges without backgrounds need dark text */
}

/* Small text elements - ensure readability in light mode */
[data-theme="light"] small,
[data-theme="light"] .small {
    color: #4a5568 !important;  /* Medium-dark grey, clearly visible */
}

/* "No receipt" and similar placeholder text */
[data-theme="light"] .text-muted.small,
[data-theme="light"] small.text-muted {
    color: #4a5568 !important;  /* Medium-dark grey for visibility */
    font-weight: 500;  /* Slightly bolder for readability */
}

/* Dropdown menu styling */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

/* Light mode dropdown - white background, clear borders */
[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(45, 55, 72, 0.2) !important;
    box-shadow: 0 8px 32px rgba(26, 32, 44, 0.16) !important;
}

.dropdown-item {
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Light mode dropdown items - dark, readable */
[data-theme="light"] .dropdown-item {
    color: #1a202c !important;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
}

/* Light mode dropdown hover - subtle but visible */
[data-theme="light"] .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #1a202c !important;
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* Navbar adjustments */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

/* Light mode navbar - ensure it works well */
[data-theme="light"] .navbar-dark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="light"] .navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .content-card {
        border-radius: 16px !important;
    }

    .stats-card {
        border-radius: 16px;
    }

    .quick-action-card {
        border-radius: 16px;
    }
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
