/* ══════════════════════════════════════════════════════
   CODINTECH CRM — Premium Design System 2026
   ══════════════════════════════════════════════════════ */

:root {
    --accent: #0d9488;
    --accent-hover: #0a7c72;
    --accent-light: #14b8a6;
    --accent-soft: rgba(13,148,136,0.08);
    --accent-glow: rgba(13,148,136,0.18);
    --accent-gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --bg-app: #f0f4f8;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f7f9fc;
    --bg-surface-hover: #edf1f7;
    --bg-elevated: #ffffff;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --border-focus: var(--accent);
    --text: #1a202c;
    --text-soft: #4a5568;
    --text-muted: #a0aec0;
    --text-on-accent: #ffffff;
    --success: #10b981;
    --success-soft: rgba(16,185,129,0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245,158,11,0.1);
    --danger: #ef4444;
    --danger-soft: rgba(239,68,68,0.1);
    --info: #0d9488;
    --info-soft: rgba(13,148,136,0.1);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --accent: #2dd4bf;
    --accent-hover: #14b8a6;
    --accent-light: #5eead4;
    --accent-soft: rgba(45,212,191,0.1);
    --accent-glow: rgba(45,212,191,0.2);
    --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    --bg-app: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-alt: #111111;
    --bg-surface-hover: #1a1a1a;
    --bg-elevated: #141414;
    --border: #1f1f1f;
    --border-light: #181818;
    --text: #f0f0f0;
    --text-soft: #a0a0a0;
    --text-muted: #555555;
    --text-on-accent: #000000;
    --success: #34d399;
    --success-soft: rgba(52,211,153,0.1);
    --warning: #fbbf24;
    --warning-soft: rgba(251,191,36,0.1);
    --danger: #f87171;
    --danger-soft: rgba(248,113,113,0.1);
    --info: #2dd4bf;
    --info-soft: rgba(45,212,191,0.1);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.35);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-app) !important;
    color: var(--text) !important;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6; font-size: 14px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
h1,h2,h3,h4,h5,h6 { color: var(--text); font-weight: 600; line-height: 1.3; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width) !important;
    background: var(--bg-surface) !important;
    border-right: 1px solid var(--border) !important;
    z-index: 1000;
    display: flex; flex-direction: column;
    transition: transform var(--transition-base);
    overflow-y: auto; overflow-x: hidden;
}
.sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border-light); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.logo-text { font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.3px; }

.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-section-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); padding: 16px 14px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 14px; border-radius: var(--radius-sm);
    color: var(--text-soft); font-size: 13.5px; font-weight: 500;
    text-decoration: none !important; transition: all var(--transition-fast);
    position: relative;
}
.nav-item i { font-size: 17px; width: 22px; text-align: center; opacity: 0.7; transition: all var(--transition-fast); }
.nav-item:hover { background: var(--bg-surface-hover) !important; color: var(--text) !important; }
.nav-item:hover i { opacity: 1; }
.nav-item.active { background: var(--accent-soft) !important; color: var(--accent) !important; font-weight: 600; }
.nav-item.active i { opacity: 1; color: var(--accent) !important; }
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.sidebar-divider { height: 1px; background: var(--border-light); margin: 8px 14px; }
.sidebar-footer { padding: 12px 14px 16px; border-top: 1px solid var(--border-light); }
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.sidebar-user:hover { background: var(--bg-surface-hover); }
.sidebar-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-gradient); color: var(--text-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; }
.sidebar-user-name { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }

/* ── NAVBAR ──────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 900;
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
    height: var(--navbar-height); backdrop-filter: blur(12px);
}
.navbar-content {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; padding: 0 24px; gap: 16px;
}
.navbar-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.sidebar-toggle {
    display: none; background: none; border: 1px solid var(--border);
    color: var(--text-soft); width: 36px; height: 36px;
    border-radius: var(--radius-sm); align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; transition: all var(--transition-fast);
}
.sidebar-toggle:hover { background: var(--bg-surface-hover); color: var(--text); }
.navbar-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--text); letter-spacing: -0.3px; }
.navbar-center { flex: 1; max-width: 480px; margin: 0 auto; }

.global-search { position: relative; display: flex; align-items: center; width: 100%; }
.global-search > i { position: absolute; left: 14px; color: var(--text-muted); font-size: 14px; pointer-events: none; }
.global-search-input {
    width: 100%; padding: 9px 70px 9px 38px;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg-surface-alt); color: var(--text);
    font-size: 13px; font-family: inherit; transition: all var(--transition-fast); outline: none;
}
.global-search-input::placeholder { color: var(--text-muted); }
.global-search-input:focus { border-color: var(--accent); background: var(--bg-surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-shortcut {
    position: absolute; right: 12px; font-size: 11px; padding: 2px 7px;
    border-radius: 5px; background: var(--bg-surface-hover);
    border: 1px solid var(--border); color: var(--text-muted); font-family: inherit; pointer-events: none;
}

.navbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navbar-icon-btn, .theme-toggle {
    background: none; border: 1px solid var(--border); color: var(--text-soft);
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: all var(--transition-fast);
    font-size: 16px; padding: 0;
}
.navbar-icon-btn:hover, .theme-toggle:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--danger); color: #fff; font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.user-dropdown {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px 5px 5px; border-radius: var(--radius-md);
    cursor: pointer; transition: background var(--transition-fast); border: 1px solid transparent;
}
.user-dropdown:hover { background: var(--bg-surface-hover); border-color: var(--border); }
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-gradient); color: var(--text-on-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 13px; color: var(--text); line-height: 1.2; }
.user-role { font-size: 11px; color: var(--text-muted); line-height: 1.2; }

/* ── MAIN CONTENT ────────────────────────────────── */
.main-content { margin-left: var(--sidebar-width) !important; min-height: 100vh; }
.content-wrapper { padding: 28px 32px 48px; max-width: 1400px; }

/* ── CARDS ───────────────────────────────────────── */
.card {
    background: var(--bg-surface) !important; border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-sm) !important;
    transition: box-shadow var(--transition-base); overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md) !important; }
.card-header {
    background: transparent !important; border-bottom: 1px solid var(--border-light) !important;
    padding: 16px 20px !important; display: flex; align-items: center; justify-content: space-between;
}
.card-header h5 {
    margin: 0; font-size: 14px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.card-header h5 i { color: var(--accent); font-size: 16px; }
.card-body { padding: 20px !important; color: var(--text); }

/* ── STAT CARDS ──────────────────────────────────── */
.stat-card {
    border-radius: var(--radius-lg) !important; padding: 20px;
    display: flex; align-items: center; gap: 16px;
    color: #fff !important; position: relative; overflow: hidden;
    border: none; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::after {
    content: ''; position: absolute; top: -30%; right: -15%;
    width: 100px; height: 100px; background: rgba(255,255,255,0.08); border-radius: 50%;
}
.stat-card.bg-primary { background: linear-gradient(135deg, #0d9488, #0f766e) !important; }
.stat-card.bg-success { background: linear-gradient(135deg, #10b981, #059669) !important; }
.stat-card.bg-warning { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.stat-card.bg-info { background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; }
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: rgba(255,255,255,0.2) !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0; z-index: 1;
}
.stat-content { z-index: 1; }
.stat-content h3 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.1; color: #fff; letter-spacing: -0.5px; }
.stat-content p { font-size: 12px; margin: 2px 0 0; opacity: 0.85; font-weight: 500; }

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.page-header h1 { font-size: 22px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; letter-spacing: -0.4px; }
.page-header h1 i { color: var(--accent); font-size: 22px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
    font-family: inherit; font-weight: 600; border-radius: var(--radius-sm) !important;
    padding: 8px 18px; font-size: 13px; transition: all var(--transition-fast);
    display: inline-flex; align-items: center; gap: 6px; border: none;
}
.btn-primary {
    background: var(--accent-gradient) !important; color: var(--text-on-accent) !important;
    border: none !important; box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,148,136,0.4) !important; filter: brightness(1.08); background: var(--accent-gradient) !important; }
.btn-outline-primary { background: transparent !important; border: 1.5px solid var(--accent) !important; color: var(--accent) !important; }
.btn-outline-primary:hover { background: var(--accent-soft) !important; color: var(--accent) !important; }
.btn-outline-secondary { background: transparent !important; border: 1.5px solid var(--border) !important; color: var(--text-soft) !important; }
.btn-outline-secondary:hover { background: var(--bg-surface-hover) !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: var(--danger) !important; color: #fff !important; }
.btn-success { background: var(--success) !important; color: #fff !important; }
.btn-warning { background: var(--warning) !important; color: #000 !important; }
.btn-link { color: var(--accent) !important; text-decoration: none !important; }

/* ── FORMS ───────────────────────────────────────── */
.form-control, .form-select {
    border: 1.5px solid var(--border) !important; border-radius: var(--radius-sm) !important;
    padding: 9px 14px; font-size: 13.5px; font-family: inherit;
    background: var(--bg-surface) !important; color: var(--text) !important;
    transition: all var(--transition-fast);
}
.form-control:focus, .form-select:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; outline: none; }
.form-control::placeholder { color: var(--text-muted) !important; }
.form-label { font-weight: 600; font-size: 12.5px; color: var(--text-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
textarea.form-control { min-height: 100px; resize: vertical; }

/* ── TABLES ──────────────────────────────────────── */
.table { color: var(--text) !important; margin: 0; font-size: 13.5px; }
.table > thead > tr > th {
    background: var(--bg-surface-alt) !important; color: var(--text-muted) !important;
    font-weight: 700; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 10px 16px !important;
    border-bottom: 1px solid var(--border) !important; white-space: nowrap;
}
.table > tbody > tr > td {
    padding: 12px 16px !important; border-bottom: 1px solid var(--border-light) !important;
    vertical-align: middle; color: var(--text);
}
.table > tbody > tr:last-child > td { border-bottom: none !important; }
.table-hover > tbody > tr:hover > td { background: var(--bg-surface-hover) !important; }
.table-sm > tbody > tr > td { padding: 8px 12px !important; }
.table-sm > thead > tr > th { padding: 8px 12px !important; }

/* ── BADGES ──────────────────────────────────────── */
.badge { font-weight: 600; font-size: 11px; padding: 4px 10px; border-radius: 6px; }
.badge.bg-primary { background: var(--accent) !important; color: var(--text-on-accent) !important; }
.badge.bg-success { background: var(--success) !important; color: #fff !important; }
.badge.bg-warning { background: var(--warning) !important; color: #000 !important; }
.badge.bg-danger { background: var(--danger) !important; color: #fff !important; }
.badge.bg-info { background: var(--info) !important; color: var(--text-on-accent) !important; }
.badge.bg-secondary { background: var(--bg-surface-hover) !important; color: var(--text-soft) !important; }

/* ── EMPTY STATES ────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.3; }
.empty-state p { font-size: 15px; font-weight: 500; margin: 0 0 8px; }

/* ── KANBAN ──────────────────────────────────────── */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; }
.kanban-column { flex: 0 0 220px; min-width: 220px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.kanban-header { padding: 12px 14px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid; }
.kanban-body { padding: 8px; min-height: 120px; }
.kanban-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 6px; transition: all var(--transition-fast); cursor: pointer; }
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--accent); }
.kanban-card-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--text); }
.kanban-card-meta { font-size: 11.5px; color: var(--text-muted); }
.kanban-card-amount { font-weight: 700; color: var(--accent); font-size: 14px; margin-top: 6px; }
.kanban-column:nth-child(1) .kanban-header { border-color: var(--info); background: var(--info-soft); color: var(--info); }
.kanban-column:nth-child(2) .kanban-header { border-color: #6366f1; background: rgba(99,102,241,0.08); color: #6366f1; }
.kanban-column:nth-child(3) .kanban-header { border-color: var(--warning); background: var(--warning-soft); color: var(--warning); }
.kanban-column:nth-child(4) .kanban-header { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.kanban-column:nth-child(5) .kanban-header { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.kanban-empty { text-align: center; padding: 20px 8px; color: var(--text-muted); font-size: 12px; }
.kanban-empty i { font-size: 24px; display: block; margin-bottom: 6px; opacity: 0.3; }

/* ── DROPDOWN ────────────────────────────────────── */
.dropdown-menu { background: var(--bg-surface) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-lg) !important; padding: 6px !important; }
.dropdown-item { border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; color: var(--text) !important; display: flex; align-items: center; gap: 8px; transition: all var(--transition-fast); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--accent-soft) !important; color: var(--accent) !important; }
.dropdown-item i { font-size: 14px; width: 18px; text-align: center; }
.dropdown-divider { border-color: var(--border-light) !important; margin: 4px 0 !important; }

/* ── ALERTS ──────────────────────────────────────── */
.alert { border-radius: var(--radius-md) !important; border: none !important; font-size: 13.5px; font-weight: 500; padding: 12px 20px !important; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: var(--success-soft) !important; color: var(--success) !important; }
.alert-danger { background: var(--danger-soft) !important; color: var(--danger) !important; }
.alert-warning { background: var(--warning-soft) !important; color: #92400e !important; }
.alert-info { background: var(--info-soft) !important; color: var(--accent) !important; }

/* ── PIPELINE BARS ───────────────────────────────── */
.pipeline-visual { display: flex; flex-direction: column; gap: 14px; }
.pipeline-bar-row { display: flex; flex-direction: column; gap: 6px; }
.pipeline-bar-label { display: flex; justify-content: space-between; align-items: baseline; }
.pipeline-stage-name { font-weight: 700; font-size: 13px; color: var(--text); }
.pipeline-stage-info { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.pipeline-bar-track { height: 10px; background: var(--bg-surface-alt); border-radius: 5px; overflow: hidden; border: 1px solid var(--border-light); }
.pipeline-bar-fill { height: 100%; border-radius: 5px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); background: var(--accent-gradient); }

/* ── QUICK ACTIONS ───────────────────────────────── */
.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-action-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px 8px; border-radius: var(--radius-md);
    background: var(--bg-surface-alt); border: 1.5px solid var(--border-light);
    color: var(--text); text-decoration: none !important; font-size: 12px; font-weight: 600;
    transition: all var(--transition-fast); gap: 6px;
}
.quick-action-btn i { font-size: 20px; color: var(--accent); transition: transform var(--transition-fast); }
.quick-action-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-action-btn:hover i { transform: scale(1.15); }

/* ── ACTIVITY FEED ───────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; }
.activity-feed-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.activity-feed-item:last-child { border-bottom: none; }
.activity-feed-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-surface-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; border: 1px solid var(--border-light); }
.activity-feed-content { flex: 1; min-width: 0; }

/* ── SEARCH RESULTS ──────────────────────────────── */
.search-results-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xl); z-index: 9999; max-height: 400px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text); transition: background var(--transition-fast); border-bottom: 1px solid var(--border-light); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-soft); color: var(--text); }
.search-result-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.search-result-text { flex: 1; min-width: 0; }
.search-result-text .title { font-weight: 600; font-size: 13px; }
.search-result-text .subtitle { font-size: 11.5px; color: var(--text-muted); }
.search-no-results { padding: 24px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ── CALENDAR ────────────────────────────────────── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-md); overflow: hidden; }
.calendar-header-cell { background: var(--bg-surface-alt); padding: 10px; text-align: center; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.calendar-cell { background: var(--bg-surface); min-height: 96px; padding: 6px; vertical-align: top; }
.calendar-cell-empty { background: var(--bg-surface-alt); opacity: 0.4; }
.calendar-today { background: var(--accent-soft) !important; }
.calendar-day-number { font-size: 12px; font-weight: 700; color: var(--text-soft); margin-bottom: 4px; padding: 0 2px; }
.today-marker { background: var(--accent); color: var(--text-on-accent); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.calendar-events { display: flex; flex-direction: column; gap: 2px; }
.calendar-event-pill { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-weight: 500; }
.calendar-event-pill:hover { background: var(--accent-glow); color: var(--text); }

/* ── NOTIFICATIONS ───────────────────────────────── */
.notifications-dropdown { width: 340px; max-height: 400px; overflow-y: auto; }

/* ── LOGIN ───────────────────────────────────────── */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-app); padding: 24px; }
.login-card { width: 100%; max-width: 420px; background: var(--bg-surface); border-radius: var(--radius-xl); padding: 40px 36px; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-mark { width: 52px; height: 52px; font-size: 22px; margin: 0 auto 12px; }
.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-logo p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.login-btn { width: 100%; padding: 12px; font-size: 14px; font-weight: 700; border-radius: var(--radius-md) !important; background: var(--accent-gradient) !important; color: var(--text-on-accent) !important; border: none !important; box-shadow: 0 4px 14px rgba(13,148,136,0.35); }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,0.45) !important; }

/* ── TIMELINE ────────────────────────────────────── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; padding-left: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-surface); }

/* ── UTILITIES ───────────────────────────────────── */
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--accent) !important; }
hr { border-color: var(--border-light); }
.modal-content { background: var(--bg-surface) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-lg) !important; }
.modal-header { border-bottom-color: var(--border-light) !important; }
.modal-footer { border-top-color: var(--border-light) !important; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0 !important; }
    .sidebar-toggle { display: flex !important; }
    .content-wrapper { padding: 20px 16px 40px; }
    .navbar-center { display: none; }
    .user-info { display: none; }
}
@media (max-width: 768px) {
    .stat-content h3 { font-size: 20px; }
    .calendar-cell { min-height: 64px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .quick-actions-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.card, .stat-card { animation: fadeIn 0.4s ease forwards; }
.row > [class*="col-"]:nth-child(2) .card { animation-delay: 0.05s; }
.row > [class*="col-"]:nth-child(3) .card { animation-delay: 0.1s; }
.row > [class*="col-"]:nth-child(4) .card { animation-delay: 0.15s; }
