/* ===================================================================
   NUMORA AI - CENTRAL STYLESHEET
   Common styles shared across all pages
   =================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

/* CSS Variables - Global Theme */
:root {
    /* Core Colors */
    --primary-color: #FFFFFF;
    --secondary-color: #0A0A0A;
    --text-color: #A7AABB;
    --bg-color: #060606;
    --accent-color: #A93E17;
    --accent-secondary-color: #15399A;
    --divider-color: #FFFFFF0F;
    --dark-divider-color: #FFFFFF33;
    --error-color: rgb(230, 87, 87);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --default-font: "Manrope", sans-serif;
    
    /* Layout Variables */
    --sidebar-width: 80px;
    --header-height: 70px;
    --border-radius: 0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Widget Colors */
    --receivable-color: #10b981;
    --receivable-bg: rgba(16, 185, 129, 0.1);
    --payable-color: #ef4444;
    --payable-bg: rgba(239, 68, 68, 0.1);
    --cashflow-color: #3b82f6;
    --cashflow-bg: rgba(59, 130, 246, 0.1);
    --income-color: #10b981;
    --expense-color: #ef4444;
    --neutral-color: #6b7280;
    --neutral-bg: rgba(107, 114, 128, 0.1);
}

/* Base Body Styles */
body {
    font-family: var(--default-font);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--secondary-color);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
}

/* ===================================================================
   LAYOUT COMPONENTS - Shared across all pages
   =================================================================== */

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

/* Sidebar Header */
.sidebar-header {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-favicon {
    height: 24px;
    width: 24px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sidebar Navigation Scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    margin: 10px 0;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(169, 62, 23, 0.3);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(169, 62, 23, 0.5);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 60px;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link.active,
.nav-item.active .nav-link {
    color: var(--accent-color);
    background: rgba(169, 62, 23, 0.05);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    stroke-width: 1.5;
}

.nav-text {
    font-weight: inherit;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.logout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 60px;
    background: none;
    border: none;
    cursor: pointer;
}

.logout-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.logout-btn:hover {
    color: var(--error-color);
    transform: translateY(-2px);
}

/* Sidebar User Profile */
.sidebar-user-profile {
    display: none;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(169, 62, 23, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-avatar svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
}

.sidebar-user-role {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 300;
}

/* Mobile sidebar user profile compact version */
@media (max-width: 768px) {
    .sidebar-user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .sidebar-user-avatar svg {
        width: 16px;
        height: 16px;
    }
    
    .sidebar-user-name {
        font-size: 13px;
        font-weight: 500;
    }
    
    .sidebar-user-role {
        font-size: 11px;
    }
    
    .sidebar-user-info {
        gap: 1px;
    }
}

/* Header Styles */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    color: var(--secondary-color);
    transition: var(--transition);
    font-weight: 300;
}

.search-bar input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.25);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.menu-toggle:hover {
    color: var(--accent-color);
    background: rgba(169, 62, 23, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.search-toggle:hover {
    color: var(--accent-color);
    background: rgba(169, 62, 23, 0.1);
}

.document-btn {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.document-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.document-text {
    font-weight: inherit;
    text-transform: none;
    display: inline;
}

.document-btn:hover {
    color: var(--accent-color);
    background: rgba(169, 62, 23, 0.1);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.notification-btn:hover {
    background: var(--divider-color);
    color: var(--accent-color);
}

.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--error-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    cursor: pointer;
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    color: rgba(0, 0, 0, 0.6);
}

.user-avatar:hover {
    background: rgba(169, 62, 23, 0.1);
}

.user-name {
    font-size: 14px;
    font-weight: 300;
    color: var(--secondary-color);
}

.welcome-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.welcome-text {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 300;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    background: transparent;
    min-height: 100vh;
    transition: var(--transition);
    width: calc(100vw - var(--sidebar-width));
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

.dashboard-content {
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================================================================
   COMMON UI COMPONENTS
   =================================================================== */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
}

.page-header p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
}

/* Financial Overview Cards */
.financial-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.3);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-label {
    font-size: 11px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 24px;
    font-weight: 300;
    color: var(--secondary-color);
}

.metric-value.receivable {
    color: var(--receivable-color);
}

.metric-value.payable {
    color: var(--payable-color);
}

.metric-value.neutral {
    color: var(--neutral-color);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 300;
    color: var(--secondary-color);
    margin: 0;
}

/* Filter Buttons */
.time-filter {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 300;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(169, 62, 23, 0.1);
    color: var(--accent-color);
    border-color: rgba(169, 62, 23, 0.3);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary-color) 100%);
    border: none;
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error-color);
    border: none;
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label.required::after {
    content: ' *';
    color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--primary-color);
    color: var(--secondary-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(169, 62, 23, 0.1);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--divider-color);
    cursor: pointer;
    transition: var(--transition);
}

.data-table th:hover {
    background: var(--dark-divider-color);
}

.data-table th i {
    margin-left: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.data-table th:hover i {
    opacity: 1;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--divider-color);
    vertical-align: middle;
    color: var(--secondary-color);
}

.data-table tr:hover {
    background: var(--glass-bg);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.active {
    background: var(--receivable-bg);
    color: var(--receivable-color);
}

.badge.inactive {
    background: var(--neutral-bg);
    color: var(--neutral-color);
}

.badge i {
    font-size: 8px;
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 16px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(169, 62, 23, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    text-align: center;
    gap: 16px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: rgba(0, 0, 0, 0.3);
}

.empty-icon i {
    font-size: 64px;
}

.empty-state h3 {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 300;
}

.empty-state p {
    margin: 0;
    color: var(--text-color);
}

/* ===================================================================
   MOBILE MENU COMPONENTS
   =================================================================== */

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-close svg {
    width: 18px;
    height: 18px;
    color: rgba(0, 0, 0, 0.8);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-search-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--divider-color);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    color: var(--secondary-color);
    padding: 12px 0;
    outline: none;
    font-weight: 300;
}

.mobile-search-input::placeholder {
    color: var(--text-color);
    font-weight: 300;
}

.mobile-search-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 16px;
}

.mobile-search-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.mobile-search-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Mobile First Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        z-index: 1000;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .mobile-menu-close {
        display: flex;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    /* Mobile sidebar shows full nav with text */
    .nav-link {
        width: 100%;
        display: flex;
        padding: 14px 20px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        font-size: 15px;
        gap: 14px;
        min-height: auto;
        border-radius: 8px;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    
    .nav-item {
        justify-content: stretch;
        margin-bottom: 4px;
        padding: 0 12px;
    }
    
    .nav-text {
        display: block;
        font-weight: 400;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .nav-link:hover {
        background: rgba(169, 62, 23, 0.08);
        transform: none;
    }
    
    .nav-link.active,
    .nav-item.active .nav-link {
        background: rgba(169, 62, 23, 0.12);
        color: var(--accent-color);
    }
    
    .logout-btn {
        width: 100%;
        display: flex;
        padding: 12px 20px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        font-size: 14px;
        gap: 12px;
        min-height: auto;
        border-radius: 8px;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    
    .logout-btn:hover {
        background: rgba(239, 68, 68, 0.08);
        transform: none;
    }
    
    .logout-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-nav {
        align-items: stretch;
        padding: 10px 0;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Show full logo text on mobile */
    .logo {
        justify-content: flex-start;
        padding-left: 20px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-image {
        display: block;
        height: 32px;
    }
    
    .logo-favicon {
        display: none;
    }
    
    .sidebar-header {
        padding: 20px 0;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
    }
    
    .sidebar-user-profile {
        display: flex;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .sidebar-footer {
        padding: 16px 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
        display: flex;
        justify-content: stretch;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .dashboard-content {
        padding: 12px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header {
        padding: 0 16px;
    }
    
    .header-center {
        display: none;
    }
    
    .search-toggle {
        display: flex !important;
    }
    
    .user-name {
        display: none;
    }
    
    .user-profile {
        display: none;
    }
    
    .header-right {
        gap: 12px;
    }
    
    .document-text {
        display: none;
    }
    
    .document-btn {
        padding: 8px;
    }
    
    .financial-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .time-filter {
        align-self: stretch;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }
    
    .dashboard-content {
        padding: 8px;
    }
    
    .financial-overview {
        gap: 8px;
    }
    
    .overview-card {
        padding: 16px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .sidebar {
        width: 100vw;
        max-width: 100vw;
    }
    
    .nav-item {
        padding: 0 8px;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .logout-btn {
        padding: 12px 16px;
    }
    
    .sidebar-footer {
        padding: 16px 8px;
    }
    
    .sidebar-user-profile {
        padding: 10px 16px;
    }
    
    .logo {
        padding-left: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .overview-card,
    .ie-card,
    .expenses-list {
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link,
    .logout-btn {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .nav-link:hover,
    .logout-btn:hover {
        color: var(--accent-color);
    }
    
    .nav-link.active,
    .nav-item.active .nav-link {
        color: var(--accent-color);
        background: rgba(169, 62, 23, 0.1);
    }
}