:root {
    --navy: #0b1e3d;
    --navy-deep: #081530;
    --electric: #2f6fed;
    --electric-light: #5b8def;
    --cyan: #17c3d6;
    --bg: #f4f6fb;
    --text: #1c2733;
    --muted: #6b7a90;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, .card-title, .brand-font {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #dbe4f5;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 22px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand i { color: var(--cyan); }

.sidebar-nav { padding: 12px 10px; flex: 1; }
.nav-section {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #7f93b8;
    margin: 18px 12px 6px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #cddbf4;
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 2px;
    transition: background 0.15s ease;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active { background: var(--electric); color: #fff; }

.main-col { flex: 1; min-width: 0; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #e7ebf3;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-company { font-weight: 600; color: var(--navy); }

.content { padding: 28px; }

.card { border: 1px solid #e7ebf3; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }

.stat-card {
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e7ebf3;
}
.stat-card .label { color: var(--muted); font-size: 0.82rem; }
.stat-card .value { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); }

.btn-primary { background: var(--electric); border-color: var(--electric); }
.btn-primary:hover { background: #2559c9; border-color: #2559c9; }

.badge-stage-qualification { background: #e7ebf3; color: #445; }
.badge-stage-proposal { background: #dbe8ff; color: var(--electric); }
.badge-stage-negotiation { background: #fff1cf; color: #8a6d00; }
.badge-stage-won { background: #d7f5e3; color: #147a4c; }
.badge-stage-lost { background: #fbdcdc; color: #a12727; }

.kanban-col { background: #fff; border: 1px solid #e7ebf3; border-radius: 12px; min-height: 200px; }
.kanban-col-header { padding: 12px 14px; font-weight: 600; border-bottom: 1px solid #eef1f7; }
.kanban-card { border: 1px solid #e7ebf3; border-radius: 10px; padding: 10px 12px; margin: 10px; background: #fbfcfe; }

.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #12295a, var(--navy-deep));
}
.auth-card { background: #fff; border-radius: 16px; padding: 36px; width: 100%; max-width: 420px; }
