:root {
    --sidebar-width: 250px;
    --topbar-height: 60px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s;
}

.sidebar .nav-link {
    padding: 10px 16px;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

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

.sidebar .nav-link.active {
    background-color: rgba(13, 110, 253, 0.3);
    font-weight: 600;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 999;
}

.content-wrapper {
    padding-top: 0;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 8px;
}

.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

@media print {
    .sidebar, .topbar, .btn, form, .alert {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}
