:root {
    --accent-primary: #0d9488;
    --accent-secondary: #0284c7;
    --sidebar-width: 260px;
    --bg-app: #f4f7fb;
}

body.app-body {
    background: var(--bg-app);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.brand-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #fff;
    border-radius: 10px;
    margin-right: 8px;
}

.sidebar-link {
    color: #475569;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

.sidebar-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(13, 148, 136, 0.12));
    color: var(--accent-primary);
    font-weight: 600;
}

.stat-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    align-items: start;
}

.kanban-column {
    background: #fff;
    border-radius: 14px;
    min-height: 200px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.kanban-column-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
}

.kanban-cards {
    padding: 0.75rem;
    min-height: 120px;
}

.kanban-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: box-shadow 0.15s;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.content-panel {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    height: 100%;
}

.risk-low { color: #059669; }
.risk-medium { color: #d97706; }
.risk-high { color: #dc2626; }

@media (max-width: 991px) {
    .app-wrapper { flex-direction: column; }
    .app-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #e0f2fe 0%, #f0fdfa 50%, #f4f7fb 100%);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
}
