:root {
    --sidebar-width: 260px;
    --color-bg: #f4f6fb;
    --color-surface: #ffffff;
    --color-primary: #099bbf;
    --color-primary-dark: #1344c1;
    --color-text: #1d2130;
    --color-muted: #6b7280;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    display: flex;
}

.dashboard {
    display: flex;
    width: 100%;
}

.sidebar {
    width: var(--sidebar-width);
    background: #0b1739;
    color: #f8fafc;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar .brand img {
    width: 45px;
    height: auto;
}

.sidebar .brand-text {
    font-weight: 600;
    line-height: 1.2;
    font-size: 1.2rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.content {
    flex: 1;
    margin-left: 0;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.sidebar-toggle {
    border: none;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sidebar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

.topbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.primary-btn {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 20px rgba(27, 89, 248, 0.25);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-muted);
}

.stat-completed {
    font-size: 1rem;
    font-weight: 700;
    color:#16a34a;
}

.stat-progress {
    font-size: 0.85rem;
    color:#ffa600;
    font-weight: 600;
}
.stat-awaiting {
    font-size: 0.85rem;
    color:#ff0000;
    font-weight: 600;
}
.stat-reject {
    font-size: 0.85rem;
    color:#000000;
    font-weight: 600;
}


.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.chart-card canvas {
    width: 100% !important;
    max-height: 220px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.cta-panel {
    background: linear-gradient(135deg, #099bbf, #6c63ff);
    border-radius: 20px;
    padding: 2rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    box-shadow: var(--shadow-soft);
}

.cta-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.cta-panel .cta-btn {
    margin-top: 0.5rem;
    background: #ffffff;
    color: var(--color-primary);
    border-radius: 999px;
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
}

@media (max-width: 992px) {
    .content {
        padding: 2rem 1.25rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 99;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-soft);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        z-index: 90;
        display: none;
    }

    .sidebar-backdrop.visible {
        display: block;
    }
}
