/* Root Variables - Tokyo Night Dark Theme (VSCode) */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Condensed&display=swap');

:root {
    /* Tokyo Night Storm Colors */
    --bg-primary: #24283b;
    --bg-secondary: #1a1b26;
    --bg-tertiary: #414868;
    --bg-sidebar: #1a1b26;
    --glass: rgba(122, 162, 247, 0.05);
    --glass-hover: rgba(122, 162, 247, 0.08);
    --glass-border: rgba(65, 72, 104, 0.4);
    --glass-border-hover: rgba(122, 162, 247, 0.3);
    --glass-blur: 20px;
    --glass-saturation: 150%;
    
    /* Tokyo Night Colors */
    --accent: #7aa2f7;
    --accent-hover: #7dcfff;
    --accent-light: #2ac3de;
    --text-primary: #c0caf5;
    --text-secondary: #a9b1d6;
    --text-tertiary: #9aa5ce;
    --text-muted: #565f89;
    
    /* Semantic Colors */
    --success: #9ece6a;
    --error: #f7768e;
    --warning: #e0af68;
    --info: #7dcfff;
    --purple: #bb9af7;
    --orange: #ff9e64;
    
    /* Shadows */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(122, 162, 247, 0.2);
    
    /* Font */
    --font-family: 'Ubuntu Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Sidebar */
    --sidebar-width: 240px;
    --header-height: 60px;
}

/* Light Theme - Tokyo Light */
:root[data-theme="light"] {
    --bg-primary: #e1e2e7;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #d5d6db;
    --bg-sidebar: #f7f7f8;
    --glass: rgba(0, 0, 0, 0.02);
    --glass-hover: rgba(0, 0, 0, 0.04);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 122, 255, 0.2);
    
    /* Light Theme Colors */
    --accent: #0969da;
    --accent-hover: #0860ca;
    --accent-light: #0080ff;
    --text-primary: #343b58;
    --text-secondary: #565a6e;
    --text-tertiary: #6b7089;
    --text-muted: #8c8fa1;
    
    /* Semantic Colors */
    --success: #56d364;
    --error: #f85149;
    --warning: #e3b341;
    --info: #58a6ff;
    --purple: #8b5cf6;
    --orange: #fb8500;
    
    /* Shadows */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(9, 105, 218, 0.15);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Force Ubuntu Condensed on all elements */
input, select, textarea, button, table, th, td, .date-input, .filter-select {
    font-family: 'Ubuntu Condensed', monospace !important;
}

/* Background Gradient - Apple Style */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(10, 132, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(255, 55, 95, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(10, 132, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.1); }
    66% { transform: translate(20px, -10px) scale(0.95); }
}

/* Glassmorphism Base - Apple Liquid Glass */
.glass-panel {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    opacity: 0.5;
}

.glass-panel:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px) scale(1.005);
    box-shadow: 
        var(--shadow-lg),
        var(--shadow-glow),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Professional Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    font-size: 15px;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--glass);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow);
}

.nav-item.active:hover {
    background: var(--accent-hover);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-separator {
    height: 1px;
    background: var(--glass-border);
    margin: 12px 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--glass-border);
}

/* Main Content Area */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Header Bar */
.header-bar {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Sub navigation items */
.nav-item.sub-item {
    padding-left: 48px;
    font-size: 14px;
}

.nav-item.sub-item::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 1px;
    background: var(--glass-border);
}

/* Header Title */
.header-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Content Area */
.content-area {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Date separator */
.date-separator {
    color: var(--text-tertiary);
    font-size: 14px;
    margin: 0 8px;
}

/* Theme Toggle Icon States */
.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: block;
}

:root[data-theme="light"] .theme-icon-light {
    display: block;
}

:root[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* File Types Grid */
.file-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.file-type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.file-icon {
    font-size: 32px;
}

.file-type strong {
    display: block;
    color: var(--text-primary);
}

.file-type small {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Import Guidelines */
.import-guidelines {
    margin-top: 32px;
}

.import-guidelines h3 {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
}

.import-guidelines ul {
    list-style: none;
    padding: 0;
}

.import-guidelines li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.import-guidelines strong {
    color: var(--text-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
}

.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.icon-button:hover {
    background: var(--glass-hover);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
}

/* Date Filter Bar */
.date-filter-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.date-filter-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.date-range-selector,
.quick-filters {
    display: flex;
    gap: 16px;
    align-items: center;
}

.date-range-selector label,
.quick-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.filter-icon {
    font-size: 18px;
}

.date-input,
.filter-select,
.quick-filter,
select,
input[type="date"],
input[type="text"],
input[type="number"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: 'Ubuntu Condensed', sans-serif;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Calendar icon styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.date-input:focus,
.filter-select:focus,
.quick-filter:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 8px;
}

.btn-link:hover {
    color: var(--accent-hover);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
}

/* Import Status */
.import-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--glass);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.status-icon {
    font-size: 20px;
}

.status-text {
    color: var(--text-secondary);
    flex: 1;
}

/* Reports Dashboard */
.reports-dashboard {
    padding: 24px 0;
}

.reports-header {
    text-align: center;
    margin-bottom: 40px;
}

.reports-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.reports-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.report-card {
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.report-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--glass-hover);
}

.report-icon-large {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.report-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.report-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.account-type {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        height: 100vh;
        box-shadow: var(--shadow-xl);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-container {
        margin-left: 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-container {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h1 {
    font-size: 24px;
    margin: 0;
}

.modal-close {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--glass-hover);
    transform: scale(1.1);
}

.import-info-section {
    margin-bottom: 24px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.info-icon {
    font-size: 48px;
}

.info-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    margin: 0;
    color: var(--text-secondary);
}

.import-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(122, 162, 247, 0.1);
    border: 1px solid rgba(122, 162, 247, 0.3);
    border-radius: 8px;
    color: var(--accent);
}

/* Import Progress in Modal */
.import-progress {
    padding: 32px;
}

.import-progress h2 {
    margin-bottom: 24px;
    text-align: center;
}

.import-log-container {
    margin-top: 24px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
}

/* Import Wizard */
.import-wizard {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Import Dropzone */
.import-dropzone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.import-dropzone:hover {
    border-color: var(--accent);
    background: var(--glass);
}

.import-dropzone.drag-over {
    border-color: var(--accent);
    background: rgba(0, 122, 255, 0.1);
}

.dropzone-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.dropzone-content h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.dropzone-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Progress Bar */
.import-progress {
    margin-top: 40px;
}

.progress-bar {
    height: 8px;
    background: var(--glass);
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.import-log {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
}

.import-log li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.import-log li {
    font-family: 'Courier New', monospace;
}

.import-log li.success {
    color: var(--success);
}

.import-log li.error {
    color: var(--error);
}

.import-log li.info {
    color: var(--text-secondary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glass-border-hover);
}

/* Info Messages */
.info-message {
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 8px;
    color: var(--accent);
}

.info-message p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.info-message .btn-primary {
    margin: 0;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-container .loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container p {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Error Messages */
.error {
    padding: 20px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    color: var(--error);
    text-align: center;
}

/* Double-click hint for reports */
.drill-down-row {
    cursor: pointer;
    position: relative;
}

.drill-down-row:hover {
    background: var(--glass-hover) !important;
}

.drill-down-row[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Add title attribute via CSS for all drill-down rows */
.report-table .drill-down-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Export button styling */
.report-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.report-actions .btn-primary {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
}

.report-actions .btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 24px;
    font-size: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.theme-toggle:hover {
    background: var(--glass-hover);
    transform: scale(1.1);
}

.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: block;
}

:root[data-theme="light"] .theme-icon-light {
    display: block;
}

:root[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-nav {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .nav-brand {
        width: 100%;
        margin-bottom: 12px;
    }

    .nav-items {
        flex-wrap: wrap;
    }

    .date-filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }
}

/* Trial Balance Multi-row Header */
.report-table thead tr th[colspan] {
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    font-weight: 600;
}

/* View Header Styles */
.view-header {
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title-section h2 {
    margin: 0;
    font-size: 24px;
}

.header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.format-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.format-selector label {
    color: var(--text-secondary);
    font-weight: 500;
}

.format-buttons {
    display: flex;
    gap: 8px;
}

.format-btn {
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Ubuntu Condensed', monospace;
}

.format-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.format-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Daybook Table Styles */
.daybook-table {
    table-layout: fixed;
    width: 100%;
}

.daybook-table th,
.daybook-table td {
    vertical-align: top;
    font-family: 'Ubuntu Condensed', monospace;
}

/* Four Column Layout Fix */
.daybook-four-column table {
    table-layout: fixed;
}

.daybook-four-column thead th {
    text-align: center;
    padding: 10px;
}

.daybook-four-column tbody td {
    padding: 8px 12px;
}

/* Ensure proper column widths for 4-column */
.daybook-four-column td:nth-child(1),
.daybook-four-column th:nth-child(1) {
    width: 25%;
}

.daybook-four-column td:nth-child(2),
.daybook-four-column th:nth-child(2) {
    width: 25%;
    border-right: 2px solid var(--glass-border) !important;
}

.daybook-four-column td:nth-child(3),
.daybook-four-column th:nth-child(3) {
    width: 25%;
}

.daybook-four-column td:nth-child(4),
.daybook-four-column th:nth-child(4) {
    width: 25%;
}

/* Export Modal Styles */
#exportModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
}

#exportModal.show {
    opacity: 1;
    visibility: visible;
}

.export-btn:hover {
    background: var(--glass-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}