/* Corporate Soft Admin Panel CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Soft Corporate Color Palette */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #151F32;
    --bg-card: #1E293B;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: rgba(255, 255, 255, 0.06);
    
    /* Single Soft Accent Color */
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --primary-hover: rgba(99, 102, 241, 0.1);
    
    --success: #10B981;
    --success-light: #34D399;
    --danger: #EF4444;
    --danger-light: #F87171;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --info: #3B82F6;
    --info-light: #60A5FA;
    
    /* Soft Shadows - No Glow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f6f8;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #0a0e27;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: rgba(229, 231, 235, 0.8);
}

/* Light Theme Overrides */
[data-theme="light"] body.command-center {
    background: 
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom center, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #fafbfc 0%, #f4f6f8 100%);
    background-attachment: fixed;
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 
        4px 0 24px rgba(0, 0, 0, 0.08),
        inset -1px 0 0 rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .sidebar:hover {
    box-shadow: 
        8px 0 48px rgba(0, 0, 0, 0.12),
        inset -1px 0 0 rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .sidebar-header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .nav-item {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

[data-theme="light"] .nav-item.active {
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .nav-item i {
    filter: none;
}


[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .page-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}

[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .stat-card::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

[data-theme="light"] .stat-value {
    color: var(--primary);
    filter: none;
}

[data-theme="light"] .dashboard-welcome {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .dashboard-welcome:hover {
    box-shadow: 
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .dashboard-welcome::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .card,
[data-theme="light"] .dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .dashboard-card:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .card-header {
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

[data-theme="light"] .card-header h3 {
    text-shadow: none;
}

[data-theme="light"] .card-header h3 i {
    filter: none;
}

[data-theme="light"] .btn-primary {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .btn-secondary {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .search-box input {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="light"] .search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .notification-btn,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .user-btn {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-theme="light"] .notification-btn:hover,
[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .user-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .user-avatar {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .notifications-menu,
[data-theme="light"] .user-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .notification-item:hover,
[data-theme="light"] .user-dropdown a:hover {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .alert-success {
    background: var(--bg-card);
    color: #059669;
    border-color: #10B981;
    box-shadow: 
        var(--shadow-lg),
        0 0 20px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .alert-error {
    background: var(--bg-card);
    color: #dc2626;
    border-color: #EF4444;
    box-shadow: 
        var(--shadow-lg),
        0 0 20px rgba(239, 68, 68, 0.15);
}

[data-theme="light"] .quick-action-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .quick-action-item:hover {
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .quick-action-item::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

[data-theme="light"] .empty-state {
    background: rgba(248, 250, 252, 0.6);
    border: 1px dashed rgba(226, 232, 240, 0.8);
}

[data-theme="light"] .empty-state i {
    filter: none;
}

[data-theme="light"] .empty-state-small i {
    filter: none;
}

[data-theme="light"] body.command-center::before {
    opacity: 0.1;
}

[data-theme="light"] body.command-center::after {
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%);
}

* {
    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;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
}

body.command-center {
    background: var(--bg-primary);
    background-attachment: fixed;
}

/* Remove all neon animations and effects */
body.command-center::before,
body.command-center::after {
    display: none;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Minimal Corporate Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 70px;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 1.5rem 0.5rem;
}

.sidebar.collapsed .sidebar-header h2 {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-dropdown span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .nav-dropdown {
    margin: 0.25rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed .nav-dropdown-toggle {
    justify-content: center;
    padding: 0.75rem;
    width: 100%;
    min-height: 40px;
    border-radius: var(--radius);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.sidebar.collapsed .nav-dropdown-icon {
    display: none;
}

.sidebar.collapsed .nav-dropdown-menu {
    display: none;
}

/* Collapsed sidebar - dropdown should look exactly like regular nav-item */
.sidebar.collapsed .nav-dropdown .nav-dropdown-toggle {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .nav-dropdown .nav-dropdown-toggle i:first-of-type {
    width: 20px;
    font-size: 1.125rem;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar.collapsed .nav-dropdown .nav-dropdown-toggle:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
}

.sidebar.collapsed .nav-dropdown .nav-dropdown-toggle:hover i:first-of-type {
    color: var(--text-primary);
}

.sidebar.collapsed .nav-dropdown.active .nav-dropdown-toggle {
    background: var(--primary-hover);
    color: var(--primary);
    font-weight: 500;
    border-left: 2px solid var(--primary);
    padding-left: calc(0.75rem - 2px);
    padding-right: 0.75rem;
}

.sidebar.collapsed .nav-dropdown.active .nav-dropdown-toggle i:first-of-type {
    color: var(--primary);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 1rem;
    width: 100%;
}

.sidebar-header h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar-header h2 i {
    font-size: 1.25rem;
    color: var(--primary);
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.sidebar-toggle:hover {
    background: var(--primary-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.sidebar-nav {
    padding: 1rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar:hover .sidebar-nav {
    align-items: stretch;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
    margin: 0.25rem 0;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    min-height: 40px;
    width: 100%;
    box-sizing: border-box;
}

.nav-item span {
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.nav-item::before {
    display: none;
}

.nav-item::after {
    display: none;
}

.nav-item:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-hover);
    color: var(--primary);
    font-weight: 500;
    border-left: 2px solid var(--primary);
    padding-left: calc(1rem - 2px);
}

.nav-item span {
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.nav-item i {
    width: 20px;
    font-size: 1.125rem;
    text-align: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.nav-item:hover i {
    transform: none;
    color: var(--text-primary);
}

.nav-item.active i {
    color: var(--primary);
}

/* Nav Dropdown */
.nav-dropdown {
    margin: 0.25rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.nav-item.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.nav-dropdown-toggle:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
}

.nav-dropdown-toggle span {
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.nav-dropdown-icon {
    margin-left: auto;
    transition: transform 0.2s ease;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dropdown.active .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease, opacity 0.2s ease;
    padding: 0;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    opacity: 0;
    width: calc(100% - 0.5rem);
    display: flex;
    flex-direction: column;
}

.nav-dropdown.active .nav-dropdown-menu {
    max-height: 500px;
    padding: 0.5rem 0;
    opacity: 1;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    margin: 0.125rem 0;
}

.nav-dropdown-item span {
    white-space: nowrap;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-dropdown-item.active {
    background: var(--primary-hover);
    color: var(--primary);
    font-weight: 600;
}

.nav-dropdown-item.active::before {
    height: 60%;
}

.nav-dropdown-item i {
    width: 18px;
    font-size: 1rem;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 1;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* Corporate Topbar */
.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    flex: 1;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    z-index: 1;
}

.search-box input {
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(20, 20, 32, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    width: 280px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.currency-widget {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.currency-value {
    color: var(--text-secondary);
}

.notifications-dropdown {
    position: relative;
}

.notification-btn {
    position: relative;
    background: rgba(20, 20, 32, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
}

.notification-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.notification-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(20, 20, 32, 0.9);
    box-shadow: 
        0 0 10px rgba(239, 68, 68, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulseBadge 2s ease-in-out infinite;
    padding: 0 4px;
    line-height: 1;
    z-index: 1;
}

@keyframes pulseBadge {
    0%, 100% { 
        box-shadow: 
            0 0 10px rgba(239, 68, 68, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 20px rgba(239, 68, 68, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
}

.notifications-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(20, 20, 32, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        0 0 40px rgba(139, 92, 246, 0.2);
    width: 360px;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notifications-menu.active {
    display: block;
}

.notifications-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.notifications-list {
    padding: 0.5rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
}

.notification-item i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-weight: 500;
}

.user-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(20, 20, 32, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        0 0 40px rgba(139, 92, 246, 0.2);
    min-width: 220px;
    display: none;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
}

.user-dropdown a i {
    width: 20px;
    color: var(--text-secondary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* Content Area */
.content-area {
    padding: 2rem;
    flex: 1;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cinematicReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--primary);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Premium Cards */
.card, .dashboard-card, .form-card, .table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
    position: relative;
}


.card::before,
.dashboard-card::before {
    display: none;
}

.card:hover, .dashboard-card:hover {
    box-shadow: var(--shadow-md);
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: var(--primary);
}

/* Premium Stats Grid - Modern Glassmorphism */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.stat-card::before,
.stat-card::after {
    display: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover::before,
.stat-card:hover::after {
    opacity: 1;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    position: relative;
}

.stat-icon::before,
.stat-icon::after {
    display: none;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
}

.stat-icon.income { 
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.stat-icon.expense { 
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.stat-icon.tasks { 
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}
.stat-icon.projects { 
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}
.stat-icon.habits { 
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.stat-icon.net { 
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}


/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.dashboard-grid > * {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.dashboard-grid > *:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid > *:nth-child(2) { animation-delay: 0.15s; }
.dashboard-grid > *:nth-child(3) { animation-delay: 0.2s; }
.dashboard-grid > *:nth-child(4) { animation-delay: 0.25s; }
.dashboard-grid > *:nth-child(5) { animation-delay: 0.3s; }
.dashboard-grid > *:nth-child(6) { animation-delay: 0.35s; }

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header h1 i {
    -webkit-text-fill-color: var(--primary);
}

/* Premium Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    background: var(--bg-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

/* Premium Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

/* Premium Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: var(--primary-gradient); color: white; }
.badge-success { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: white; }
.badge-danger { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); color: white; }
.badge-warning { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); color: white; }
.badge-info { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); color: white; }

/* Premium Alerts */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
    max-width: 500px;
    border: 2px solid;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: var(--bg-card);
    color: var(--success);
    border-color: var(--success);
    box-shadow: 
        var(--shadow-lg),
        0 0 20px rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: var(--bg-card);
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: 
        var(--shadow-lg),
        0 0 20px rgba(239, 68, 68, 0.2);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.note-card.pinned {
    border-left: 4px solid var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 100%);
}

.pin-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--warning);
    font-size: 1.125rem;
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    align-items: center;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: rgba(20, 20, 32, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    color: var(--text-muted);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    overflow: auto;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin: 0.75rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Finance Specific */
.finance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-filters {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.filter-form {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-form input,
.filter-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-form input:focus,
.filter-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
    background: var(--bg-secondary);
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.finance-card .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.finance-card .card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.finance-card .card-header h3 i {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.note-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.note-item a {
    flex: 1;
    text-decoration: none;
    color: var(--text-primary);
}

.note-item strong {
    display: block;
    margin-bottom: 0.125rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.note-item small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Journal Preview */
.journal-preview {
    text-align: center;
}

.journal-mood {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.journal-preview h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.journal-preview p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Reading Preview */
.reading-preview h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.event-item:hover {
    background: var(--bg-tertiary);
}

.event-item i {
    color: var(--primary);
    font-size: 0.75rem;
}

.event-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.event-item small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Reminders List */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.reminder-item:hover {
    background: var(--bg-tertiary);
}

.reminder-item i {
    color: var(--warning);
}

.reminder-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.reminder-item small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Calendar */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    table-layout: fixed;
}

.calendar-table th {
    font-weight: 600;
    text-align: center;
    padding: 1rem 0.5rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-table td {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    vertical-align: top;
    min-height: 120px;
    height: 120px;
    background: var(--bg-card);
    transition: all 0.2s ease;
    position: relative;
    width: calc(100% / 7);
}

.calendar-table td:hover {
    background: var(--bg-secondary);
    transform: scale(1.02);
    z-index: 1;
}

.calendar-table tbody tr:first-child td {
    border-top: 1px solid var(--border-color);
}

.calendar-table tbody tr:last-child td {
    border-bottom: 1px solid var(--border-color);
}

.calendar-table td.today {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.calendar-table td.today .calendar-day-num {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.calendar-day-num {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    display: inline-block;
    min-width: 24px;
    text-align: center;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.calendar-event {
    font-size: 0.6875rem;
    padding: 0.375rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1.2;
}

.calendar-event:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow);
}

/* Habit Calendar */
.habit-calendar {
    margin: 1.5rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--bg-secondary);
}

.calendar-day:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.calendar-day.completed {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border-color: var(--success);
    box-shadow: var(--shadow);
}

.calendar-day.today {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

/* Task Items */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.task-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.task-item.completed {
    opacity: 0.7;
    background: var(--bg-secondary);
}

.task-item.completed .task-content h3 {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
}

.task-content {
    flex: 1;
}

.task-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.task-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

/* Habit Cards */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.habit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.habit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.habit-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.habit-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.calendar-header {
    margin-bottom: 1rem;
}

.calendar-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.habit-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.habit-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.habit-stats .stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.habit-stats .stat-item small {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Goal Cards */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.goal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.goal-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.goal-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-card h3 a:hover {
    color: var(--primary);
}

.goal-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.goal-progress {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.goal-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Banks */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.bank-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.bank-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.bank-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.bank-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.bank-info {
    flex: 1;
}

.bank-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bank-account {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-balance {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.balance-item {
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 2rem;
    font-weight: 900;
    display: block;
}

.bank-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    flex-direction: column;
}

.stat-mini i {
    font-size: 1.5rem;
}

.stat-mini strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-mini small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bank-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.bank-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.bank-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Passwords */
.passwords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.password-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.password-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.password-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.password-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.password-info {
    flex: 1;
}

.password-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.password-username,
.password-url {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-url a {
    color: var(--primary);
    text-decoration: none;
}

.password-url a:hover {
    text-decoration: underline;
}

.password-category {
    margin-bottom: 1rem;
}

.password-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.password-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.password-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.password-detail-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.password-detail-section:last-child {
    border-bottom: none;
}

.password-detail-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.detail-value span {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.password-display-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.btn-copy,
.btn-toggle {
    background: var(--bg-tertiary);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover,
.btn-toggle:hover {
    background: var(--primary);
    color: white;
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
}

.password-input-group input {
    flex: 1;
}

.password-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    margin-top: 2rem;
}

.password-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-actions-footer {
    display: flex;
    gap: 0.5rem;
}

/* Debts */
.debts-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Investments */
.investments-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.investments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.investment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.investment-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.investment-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.investment-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.investment-info {
    flex: 1;
}

.investment-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.investment-symbol {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.investment-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.investment-profit {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

.profit-value {
    font-size: 1.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profit-value.positive {
    color: var(--success);
}

.profit-value.negative {
    color: var(--danger);
}

.profit-value small {
    font-size: 1rem;
    font-weight: 600;
}

.investment-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Health */
.health-filters {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.health-records-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.health-record-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.health-record-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.health-record-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.health-type-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.health-record-info {
    flex: 1;
}

.health-record-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.health-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.health-value strong {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.health-value .unit {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.health-notes {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.health-record-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Workouts */
.workout-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.workout-date-selector-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.workouts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.workout-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.workout-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workout-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.workout-meta small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.workout-exercises {
    margin: 1.5rem 0;
}

.workout-exercises h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exercise-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.exercise-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.exercise-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.exercise-details span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.exercise-form-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.exercise-form-item input[type="text"] {
    width: 100%;
    margin-bottom: 0.75rem;
}

.exercise-form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.workout-notes {
    color: var(--text-secondary);
    margin: 1rem 0;
    line-height: 1.7;
}

.workout-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Meals */
.meals-daily-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.total-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.total-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.total-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
}

.meals-date-selector-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.meals-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meal-section {
    margin-bottom: 2rem;
}

.meal-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.meal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.meal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.meal-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.meal-macros {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.macro-item i {
    color: var(--primary);
}

.meal-notes {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.meal-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Travels */
.travels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.travel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.travel-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.travel-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.travel-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.travel-info {
    flex: 1;
}

.travel-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.travel-destination {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.travel-dates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.date-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.date-item p {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.travel-budget {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.budget-item:last-child {
    border-bottom: none;
}

.budget-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.travel-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.travel-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.travel-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Vehicles */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.vehicle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.vehicle-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.vehicle-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.vehicle-info {
    flex: 1;
}

.vehicle-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.vehicle-year,
.vehicle-plate {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.vehicle-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.vehicle-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.vehicle-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vehicle-detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--danger);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.stat-mini i {
    font-size: 1.5rem;
}

.stat-mini strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
}

.stat-mini small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.settings-card .card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow);
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.theme-btn {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.theme-btn:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.theme-btn i {
    font-size: 2rem;
}

/* Theme Color Grids */
.theme-colors-grid, .admin-theme-colors-grid, .background-styles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .background-styles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .background-styles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme-color-item, .admin-theme-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-color-item:hover, .admin-theme-color-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-color-item.active, .admin-theme-color-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.theme-color-item.active::after, .admin-theme-color-item.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.theme-color-preview, .admin-theme-color-preview {
    width: 100%;
    height: 60px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.theme-color-item:hover .theme-color-preview,
.admin-theme-color-item:hover .admin-theme-color-preview {
    transform: scale(1.05);
}

.theme-color-name, .admin-theme-color-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Background Style Items */
.background-style-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.background-style-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.background-style-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.background-style-item.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.background-style-preview {
    width: 100%;
    height: 80px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.background-style-item:hover .background-style-preview {
    transform: scale(1.05);
}

.background-style-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.license-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.license-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.license-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* Goal Cards */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.goal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.goal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.goal-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.goal-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.goal-card h3 a:hover {
    color: var(--primary);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.project-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card h3 a:hover {
    color: var(--primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-progress {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-header strong {
    color: var(--primary);
    font-size: 1.125rem;
}

.progress-stats {
    margin-top: 0.75rem;
    text-align: center;
}

.progress-stats small {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

.task-due {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Idea Cards */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.idea-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.idea-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.idea-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    color: var(--text-primary);
}

.idea-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.idea-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Journal */
.journal-date-selector-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.journal-entries {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journal-entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.journal-entry-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.journal-entry-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.journal-mood-large {
    font-size: 3rem;
    line-height: 1;
}

.journal-entry-info {
    flex: 1;
}

.journal-entry-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.journal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.journal-entry-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1.5rem;
}

.journal-entry-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Calendar */
.calendar-controls-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.calendar-view {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.calendar-table th {
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-secondary);
}

.calendar-event-birthday {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.calendar-event-reminder {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.calendar-event-more {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    text-align: center;
    font-weight: 600;
}

/* Step Items */
.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.step-item:hover {
    background: var(--bg-tertiary);
}

.step-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.step-item span {
    flex: 1;
    font-weight: 500;
}

/* Auth Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move 20s linear infinite;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth-header h1 i {
    -webkit-text-fill-color: var(--primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.auth-form {
    margin-top: 2rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* License Error */
.license-error-content {
    text-align: center;
    padding: 2rem 0;
}

.license-error-content i {
    font-size: 5rem;
    color: var(--danger);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dashboard Welcome */
/* Modern Dashboard Welcome Section */
.dashboard-welcome {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.dashboard-welcome::before,
.dashboard-welcome::after {
    display: none;
}

.dashboard-welcome:hover {
    box-shadow: var(--shadow-md);
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-content h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 0.375rem;
    letter-spacing: -0.03em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.welcome-actions {
    position: relative;
    z-index: 1;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.stat-change i {
    font-size: 0.75rem;
}

/* Page Subtitle */
.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

.note-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

/* Note Detail */
.note-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.note-reminder-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 2px solid var(--warning);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.note-reminder-banner i {
    font-size: 1.5rem;
    color: var(--warning);
}

.note-reminder-banner strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.note-reminder-banner p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.note-content-wrapper {
    margin-bottom: 2rem;
}

.note-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.note-tags h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    margin-top: 2rem;
}

.note-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form Enhancements */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Progress Wrapper */
.progress-wrapper {
    margin: 1rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-percent {
    font-weight: 700;
    color: var(--primary);
}

/* Empty State Small */
.empty-state-small {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    position: relative;
}

.empty-state-small i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    color: var(--text-muted);
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.3));
}

.empty-state-small p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(20, 20, 32, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.quick-action-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-action-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-action-item:hover {
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3),
        0 0 80px rgba(59, 130, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
}

.quick-action-item:hover::before {
    opacity: 0.6;
}

.quick-action-item:hover::after {
    opacity: 1;
}

.quick-action-item:hover::before {
    opacity: 1;
}

.quick-action-item > * {
    position: relative;
    z-index: 1;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: white;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.quick-action-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-action-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius);
    background: var(--primary-gradient);
    opacity: 0;
    z-index: -1;
    filter: blur(12px);
    transition: opacity 0.4s ease;
}

.quick-action-item:hover .quick-action-icon {
    transform: scale(1.1) rotateY(5deg) rotateX(-5deg);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.quick-action-item:hover .quick-action-icon::before {
    opacity: 1;
}

.quick-action-item:hover .quick-action-icon::after {
    opacity: 0.8;
}

.quick-action-icon.tasks { 
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.quick-action-icon.projects { 
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.quick-action-icon.income { 
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}
.quick-action-icon.habits { 
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.quick-action-icon.net { 
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.quick-action-icon.info { 
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.quick-action-item span {
    font-weight: 600;
    font-size: 0.8125rem;
}

/* Journal Meta */
.journal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.reading-status {
    margin-top: 1rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 1rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .currency-widget {
        display: none;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}
