body {
    background-color: #f5f6fa;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f1f2f;
}

.sidebar {
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: #1e1e2d;
    color: #ffffff;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.12);
    z-index: 1030;
}

.sidebar-header .logo-icon {
    font-size: 1.75rem;
    color: #4f8cff;
}

.sidebar-header .logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
}

.sidebar .nav-section-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background-color: rgba(79, 140, 255, 0.18);
    transform: translateX(4px);
}

.sidebar .nav-link.active,
.sidebar .nav-link.is-active {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.28), rgba(79, 140, 255, 0.12));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.35);
}

.sidebar .nav-link i {
    font-size: 1.1rem;
}

.sidebar .logout-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.sidebar .logout-link:hover {
    color: #ffffff;
    background-color: rgba(220, 53, 69, 0.2);
}

.topbar {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.main-content {
    margin-left: 240px;
    min-height: 100vh;
    background-color: #f5f6fa;
    transition: margin-left 0.3s ease;
}

.topbar .user-info span {
    color: #1f2937;
}

.card {
    border: none;
    border-radius: 1rem;
}

.card-shadow {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.quick-action-card .icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(79, 140, 255, 0.12);
    color: #4f8cff;
    font-size: 1.35rem;
}

.quick-action-card .btn {
    border-radius: 999px;
}

.section-block {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(79, 140, 255, 0.1);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    padding: 1.75rem;
}

.section-block h5 {
    font-weight: 600;
}

.section-block .icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    background-color: rgba(79, 140, 255, 0.12);
    color: #4f8cff;
    font-size: 1.25rem;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(30, 30, 45, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #4f8cff;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1025;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1040;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}
