:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f8;
    --border: #d7e0ea;
    --text: #1c2b36;
    --muted: #6b7b8a;
    --primary: #0f4c81;
    --primary-dark: #0b3559;
    --success: #1f7a4d;
    --warning: #d48b11;
    --danger: #b43c34;
    --sidebar: #13212e;
    --sidebar-muted: #95a7ba;
}

body {
    background: linear-gradient(180deg, #eff4f8 0%, #f8fafc 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-card {
    width: min(100%, 460px);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(19, 33, 46, 0.12);
}

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

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, var(--sidebar) 0%, #0d1721 100%);
    color: #fff;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .brand {
    padding: 0.75rem 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: var(--sidebar-muted);
    border-radius: 0.75rem;
    margin-bottom: 0.35rem;
    padding: 0.75rem 0.9rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.content {
    flex: 1;
    padding: 1.5rem;
}

.topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(215, 224, 234, 0.7);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 76, 129, 0.06);
}

.stat-card {
    padding: 1.25rem;
    height: 100%;
}

.badge-soft {
    background: var(--surface-soft);
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.table thead th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-control,
.form-select {
    border-radius: 0.8rem;
    border-color: var(--border);
    padding: 0.7rem 0.9rem;
}

.btn {
    border-radius: 0.8rem;
    font-weight: 600;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--muted);
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(240px, 1fr));
    gap: 1rem;
    align-items: start;
}

.kanban-column {
    min-width: 0;
}

@media (max-width: 991px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }
}
