/* ⬡ NEXUS COMMAND CENTER — Dark Ops v3 */
/* Master Stylesheet - All Pages */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
    /* Backgrounds - Depth Layers */
    --bg-abyss: #06090D;
    --bg-void: #080B10;
    --bg-surface: #0A0E14;
    --bg-elevated: #0E1318;
    --bg-active: #151B24;
    
    /* Core Colors - Muted & Tactical */
    --steel-blue: #2A3F5C;
    --deep-navy: #1E2D40;
    --slate: #8A9BB5;
    --gunmetal: #5A6A7E;
    --iron: #2A3444;
    --silver: #C0CCDC;
    
    /* Status - Subdued Indicators */
    --operational: #5A9E6A;
    --caution: #9E8A4A;
    --critical: #C45C6A;
    --intel: #5B8ABF;
    --offline: #3A4455;
    
    /* Semantic Aliases */
    --bg-primary: var(--bg-abyss);
    --bg-secondary: var(--bg-void);
    --bg-tertiary: var(--bg-surface);
    --bg-hover: var(--bg-elevated);
    --text-primary: var(--silver);
    --text-secondary: var(--slate);
    --text-muted: var(--gunmetal);
    --accent-primary: var(--steel-blue);
    --accent-secondary: var(--deep-navy);
    --border-color: var(--deep-navy);
    --accent-green: var(--operational);
    --accent-orange: var(--caution);
    --accent-red: var(--critical);
    --accent-blue: var(--intel);
    --accent-offline: var(--offline);
    
    --sidebar-width: 260px;
}

.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-shield {
    width: 68px;
    height: 68px;
    color: var(--text-secondary);
    margin-top: -8px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 6px;
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
    font-weight: 600;
    line-height: 1;
}

/* Navigation */
.nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 20px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 600;
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-icon img {
    filter: brightness(0) saturate(100%) invert(80%) sepia(10%) saturate(300%) hue-rotate(180deg);
    transition: filter 0.2s;
}

.nav-item:hover .nav-icon img,
.nav-item.active .nav-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.light-mode .nav-icon img {
    filter: invert(0%) brightness(30%) !important;
}

.light-mode .nav-item:hover .nav-icon img {
    filter: invert(0%) brightness(10%) !important;
}

.light-mode .nav-item.active .nav-icon img {
    filter: invert(100%) brightness(200%) !important;
}

.light-mode .logo-shield {
    color: #3a4a5c;
}

/* Theme Toggle */
.theme-toggle {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 30px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    font-size: 24px;
    opacity: 0.7;
}

.stat-trend {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.trend-up {
    background: rgba(90, 158, 106, 0.1);
    color: var(--accent-green);
}

.trend-down {
    background: rgba(196, 92, 106, 0.1);
    color: var(--accent-red);
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
}

/* Panels */
.panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.panel-action {
    color: var(--accent-primary);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.panel-action:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 63, 92, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

/* Mobile */
/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    width: 45px;
    height: 45px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide sidebar by default */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-overlay {
        display: block;
    }

    /* Adjust main content */
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        padding-top: 70px;
    }

    /* Smaller logo on mobile */
    .logo-shield {
        width: 50px !important;
        height: 60px !important;
    }

    .logo-text {
        font-size: 1.2em !important;
    }

    .logo-subtitle {
        font-size: 0.65em !important;
    }

    /* Navigation improvements */
    .nav-item {
        padding: 12px 16px;
        font-size: 0.95em;
    }

    .nav-section-title {
        font-size: 0.7em;
        padding: 12px 16px 8px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Page header */
    .page-header h1, .page-title {
        font-size: 1.5em !important;
    }

    .page-header .subtitle, .page-subtitle {
        font-size: 0.9em;
    }

    /* Content sections */
    .content-section {
        margin-bottom: 20px;
    }

    .content-section h3 {
        font-size: 1.1em !important;
    }

    /* Tables - horizontal scroll */
    .content-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .content-table {
        min-width: 600px;
        font-size: 0.85em;
    }

    .content-table thead th,
    .content-table tbody td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    /* Buttons and inputs */
    .add-bar {
        flex-direction: column;
        gap: 12px;
    }

    .add-bar input[type="text"],
    .add-bar select,
    .add-bar button {
        width: 100%;
        min-width: unset;
    }

    .add-bar button {
        padding: 14px 20px;
        font-size: 1em;
    }

    /* Touch-friendly targets */
    button, .nav-item, .filter-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Dividers */
    .content-divider {
        margin: 20px 0;
    }

    /* Theme toggle */
    .theme-toggle {
        padding: 15px 20px;
    }

    .theme-toggle-btn {
        width: 44px;
        height: 44px;
    }
}

/* Tablet adjustments (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }

    .logo-shield {
        width: 55px !important;
    }

    .nav-item {
        font-size: 0.9em;
        padding: 10px 14px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-hover);
}

/* Light Mode Overrides for Notes Page */
.light-mode .page-header .subtitle { color: #64748b; }
.light-mode .add-note textarea {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.light-mode .add-note textarea::placeholder { color: #94a3b8; }
.light-mode .add-note select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.light-mode .filter-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
}
.light-mode .filter-btn:hover,
.light-mode .filter-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}
.light-mode .note-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
.light-mode .note-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.light-mode .note-date { color: #64748b; }
.light-mode .note-text { color: #1e293b; }
.light-mode .note-actions button { color: #64748b; }
.light-mode .note-actions button:hover {
    background: #f1f5f9;
    color: #334155;
}
.light-mode .empty-state { color: #64748b; }

/* ===== NOTES PAGE STYLES ===== */
/* Dark Mode (Default) */
.main-content .page-header h1 {
    font-size: 2em;
    background: linear-gradient(135deg, #4a90e2, #667eea);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.main-content .page-header .subtitle { color: #8892b0; margin-top: 5px; }

.add-note {
    display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap;
}
.add-note textarea {
    flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 10px;
    border: 1px solid #2a3f5f; background: rgba(255,255,255,0.03);
    color: #ccd6f6; font-size: 0.95em; outline: none; transition: border-color 0.2s;
    font-family: inherit; resize: vertical; min-height: 60px;
}
.add-note textarea:focus { border-color: #4a90e2; }
.add-note textarea::placeholder { color: #5a6785; }
.add-note select {
    padding: 12px 16px; border-radius: 10px; border: 1px solid #2a3f5f;
    background: #0d1117; color: #ccd6f6; font-size: 0.9em; cursor: pointer;
}
.add-note button {
    padding: 12px 24px; border-radius: 10px; border: none;
    background: linear-gradient(135deg, #4a90e2, #667eea);
    color: #fff; font-weight: 600; cursor: pointer; font-size: 0.95em; transition: all 0.2s;
}
.add-note button:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(74,144,226,0.3); }

.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 16px; border-radius: 8px; border: 1px solid #2a3f5f;
    background: rgba(255,255,255,0.03); color: #ccd6f6; cursor: pointer;
    font-size: 0.9em; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: rgba(74, 144, 226, 0.2); border-color: #4a90e2; color: #fff; }

.notes-list { display: flex; flex-direction: column; gap: 12px; }
.note-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 18px 20px; transition: all 0.2s;
}
.note-card:hover { border-color: rgba(74,144,226,0.3); background: rgba(74,144,226,0.05); }
.note-card.pinned { border-left: 3px solid #ffd700; }

.note-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.note-meta { display: flex; gap: 10px; align-items: center; }
.note-date { font-size: 0.8em; color: #5a6785; }
.note-tag {
    font-size: 0.75em; padding: 3px 10px; border-radius: 20px;
    background: rgba(102,126,234,0.15); color: #667eea; border: 1px solid rgba(102,126,234,0.3);
}
.note-tag.travel { background: rgba(0,206,209,0.1); color: #00ced1; border-color: rgba(0,206,209,0.3); }
.note-tag.business { background: rgba(135,206,250,0.1); color: #87cefa; border-color: rgba(135,206,250,0.3); }
.note-tag.personal { background: rgba(80,250,123,0.1); color: #50fa7b; border-color: rgba(80,250,123,0.3); }
.note-tag.idea { background: rgba(189,147,249,0.1); color: #bd93f9; border-color: rgba(189,147,249,0.3); }
.note-tag.strategy { background: rgba(255,184,77,0.1); color: #ffb84d; border-color: rgba(255,184,77,0.3); }

.note-actions { display: flex; gap: 6px; }
.note-actions button {
    width: 28px; height: 28px; border-radius: 6px; border: none;
    background: transparent; color: #5a6785; cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.note-actions button:hover { background: rgba(255,255,255,0.08); color: #ccd6f6; }
.note-actions button.pin-btn.pinned { color: #ffd700; }
.note-actions .delete-btn:hover { background: rgba(255,85,85,0.15); color: #ff5555; }

.note-text { color: #ccd6f6; font-size: 0.95em; line-height: 1.6; white-space: pre-wrap; }
.empty-state { text-align: center; padding: 60px 20px; color: #5a6785; }
.empty-state .icon { font-size: 3em; margin-bottom: 15px; }

/* Light Mode Overrides - Notes */
.light-mode .add-note textarea {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.light-mode .add-note textarea::placeholder { color: #94a3b8; }
.light-mode .add-note select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.light-mode .filter-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #334155;
}
.light-mode .filter-btn:hover,
.light-mode .filter-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}
.light-mode .note-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
.light-mode .note-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.light-mode .note-date { color: #64748b; }
.light-mode .note-text { color: #0f172a; }
.light-mode .note-actions button { color: #64748b; }
.light-mode .note-actions button:hover {
    background: #f1f5f9;
    color: #334155;
}
.light-mode .empty-state { color: #64748b; }

/* Force active icon visibility in light mode */
.light-mode .nav-item.active .nav-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}
.light-mode .nav-item.active .nav-icon img {
    filter: invert(100%) brightness(100%) contrast(100%) !important;
    opacity: 1 !important;
}

/* ===== MODAL STYLES (GLOBAL) ===== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.modal-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.modal-btn:hover { background: var(--bg-hover); }
.modal-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
}
.close-btn, .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.close-btn:hover, .close-modal:hover { color: var(--text-primary); }

/* ===== KANBAN BOARD STYLES ===== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.kanban-column {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 500px;
}
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}
.column-title {
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.column-badge {
    background: rgba(74, 144, 226, 0.2);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

/* ===== TASK CARD STYLES ===== */
.task-card {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}
.task-card.priority-high { border-left: 4px solid var(--accent-red); }
.task-card.priority-medium { border-left: 4px solid var(--accent-orange); }
.task-card.priority-low { border-left: 4px solid var(--accent-green); }
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.task-title {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
    flex: 1;
    padding-right: 10px;
}
.task-description {
    color: var(--text-secondary);
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 12px;
}
.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.task-priority {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.task-priority.high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}
.task-priority.medium {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-orange);
}
.task-priority.low {
    background: rgba(74, 222, 128, 0.2);
    color: var(--accent-green);
}

/* ===== ACTIVITY & TREND ITEMS ===== */
.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.activity-item:hover { background: var(--bg-tertiary); }
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.activity-content { flex: 1; }
.activity-title {
    font-weight: 600;
    margin-bottom: 3px;
}
.activity-meta {
    font-size: 13px;
    color: var(--text-muted);
}
.trend-item {
    padding: 15px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
}
.trend-item:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
}

/* ===== CALENDAR STYLES ===== */
.calendar-wrapper {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}
.day-header {
    background: var(--bg-tertiary);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}
.day-cell {
    background: var(--bg-secondary);
    min-height: 120px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.day-cell:hover { background: var(--bg-hover); }
.day-cell.other-month { opacity: 0.3; }
.day-cell.today {
    background: var(--bg-active);
    border: 2px solid var(--accent-primary);
}
.day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 14px;
}

/* ===== FILE LIST & MEMORY BROWSER ===== */
.file-list {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px;
}
.file-item {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.file-item:hover {
    transform: translateX(4px);
    border-color: var(--accent-primary);
    background: rgba(74, 144, 226, 0.1);
}
.file-item.active {
    background: rgba(74, 144, 226, 0.2);
    border-color: var(--accent-primary);
}
.file-name {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-date {
    color: var(--text-secondary);
    font-size: 0.85em;
}

/* ===== MARKDOWN CONTENT RENDERING ===== */
.markdown-content {
    line-height: 1.8;
    max-width: 900px;
}
.markdown-content h1 {
    font-size: 2em;
    margin: 30px 0 20px;
    color: var(--accent-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.markdown-content h2 {
    font-size: 1.5em;
    margin: 25px 0 15px;
    color: var(--accent-secondary);
}
.markdown-content h3 {
    font-size: 1.2em;
    margin: 20px 0 12px;
    color: var(--text-secondary);
}
.markdown-content p {
    margin: 12px 0;
    color: var(--text-primary);
}
.markdown-content code {
    background: rgba(74, 144, 226, 0.15);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}
.markdown-content pre {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}
.markdown-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .kanban-board { grid-template-columns: 1fr; }
    .calendar-grid { font-size: 0.85em; }
    .modal-content { max-width: 95%; padding: 20px; }
}
        .workspace-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
            margin-bottom: 30px;
        }
        @media (max-width: 968px) {
            .workspace-grid { grid-template-columns: 1fr; }
        }

        .file-browser {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 20px;
            max-height: 600px;
            overflow-y: auto;
        }
        .file-browser h3 {
            color: #4a90e2;
            margin-bottom: 15px;
            font-size: 1.1em;
        }
        .file-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .file-item {
            padding: 10px 12px;
            background: rgba(74, 144, 226, 0.05);
            border: 1px solid rgba(74, 144, 226, 0.1);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .file-item:hover {
            background: rgba(74, 144, 226, 0.1);
            border-color: rgba(74, 144, 226, 0.3);
        }
        .file-icon {
            font-size: 1.2em;
            flex-shrink: 0;
        }
        .file-name {
            color: #ccd6f6;
            font-size: 0.9em;
            flex: 1;
        }
        .file-date {
            color: #8892b0;
            font-size: 0.75em;
        }

        .file-viewer {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 20px;
            max-height: 600px;
            overflow-y: auto;
        }
        .file-viewer h3 {
            color: #4a90e2;
            margin-bottom: 15px;
            font-size: 1.1em;
        }
        .file-content {
            background: rgba(0,0,0,0.2);
            padding: 15px;
            border-radius: 8px;
            color: #ccd6f6;
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 0.85em;
            line-height: 1.6;
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        .placeholder-text {
            color: #8892b0;
            font-style: italic;
            text-align: center;
            padding: 40px;
        }

        .quick-access {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin-bottom: 25px;
        }
        .quick-btn {
            padding: 12px;
            background: rgba(74, 144, 226, 0.08);
            border: 1px solid rgba(74, 144, 226, 0.2);
            border-radius: 8px;
            color: #4a90e2;
            text-decoration: none;
            text-align: center;
            font-weight: 600;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .quick-btn:hover {
            background: rgba(74, 144, 226, 0.15);
            border-color: rgba(74, 144, 226, 0.4);
            transform: translateY(-2px);
        }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }
        .stat-card {
            background: rgba(74, 144, 226, 0.08);
            border: 1px solid rgba(74, 144, 226, 0.2);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
        }
        .stat-value {
            font-size: 1.8em;
            font-weight: 700;
            color: #4a90e2;
        }
        .stat-label {
            color: #8892b0;
            font-size: 0.8em;
            margin-top: 5px;
        }
