:root {
    --primary-color: #00204a;
    --accent-color: #00bbf0;
    --bg-color: #f8fafc;
    --text-color: #334155;
    --sidebar-width: 260px;
}

body.sidebar-layout {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    overflow-x: hidden;
    color: var(--text-color);
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #00122e 0%, #00204a 100%);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 24px 20px;
    background-color: rgba(0, 0, 0, 0.25);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    padding: 12px 14px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.sidebar-menu a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sidebar-menu a.active {
    color: #ffffff;
    background: #00bbf0;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 187, 240, 0.35);
}

.sidebar-menu i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.topbar {
    background-color: #ffffff;
    padding: 14px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar .toggle-btn {
    display: none;
    background: #f1f5f9 !important;
    color: #00204a !important;
    border: 1px solid #e2e8f0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin: 0 12px 0 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.topbar .toggle-btn i {
    color: #00204a !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.topbar .toggle-btn:hover {
    background: #e2e8f0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-left: 10px;
    object-fit: cover;
    border: 2px solid #00bbf0;
    box-shadow: 0 2px 8px rgba(0, 187, 240, 0.25);
}

.dashboard_section {
    padding: 28px 24px;
    flex: 1;
}

.dashboard-hero-card {
    background: linear-gradient(135deg, #001738 0%, #002b66 60%, #00122e 100%);
    border-radius: 16px;
    padding: 32px 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 23, 56, 0.15);
    margin-bottom: 28px;
}

.dashboard-hero-card h2 {
    font-weight: 800;
    font-size: 1.85rem;
    margin-bottom: 10px;
}

.dashboard-hero-card p {
    color: #cbd5e1;
    font-size: 0.96rem;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 32, 74, 0.03);
}

.dashboard-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 32, 74, 0.08);
    border-color: #00bbf0;
}

.dashboard-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 187, 240, 0.12), rgba(0, 32, 74, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00204a;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.dashboard-action-card:hover .dashboard-icon-wrap {
    background: #00bbf0;
    color: #ffffff;
    transform: scale(1.08);
}

.dashboard-action-card h5 {
    font-weight: 700;
    color: #00204a;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.dashboard-action-card p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-dash-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    color: #00204a;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.btn-dash-action:hover {
    background: #00bbf0;
    border-color: #00bbf0;
    color: #ffffff;
    gap: 12px;
}

@media (max-width: 991px) {
    .sidebar {
        margin-left: calc(var(--sidebar-width) * -1);
    }

    .sidebar.active {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 10px 16px;
    }

    .topbar .toggle-btn {
        display: flex !important;
    }

    .topbar h4 {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
        white-space: nowrap;
    }

    .user-profile img {
        width: 36px;
        height: 36px;
        margin-left: 6px;
    }

    .notification-bell {
        margin-right: 12px;
        font-size: 1.25rem;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .dashboard_section {
        padding: 16px 12px;
    }

    .dashboard-hero-card {
        padding: 20px 16px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .dashboard-hero-card h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .dashboard-hero-card p {
        font-size: 0.86rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .hero-actions-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-actions-row .btn-primary-action {
        grid-column: span 2;
    }

    .hero-actions-row a {
        margin: 0 !important;
        text-align: center;
        justify-content: center;
        padding: 9px 12px !important;
        font-size: 0.84rem !important;
    }

    .dashboard-action-card {
        padding: 20px 16px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .dashboard-icon-wrap {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .dashboard-action-card h5 {
        font-size: 1rem;
    }

    .dashboard-action-card p {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }
}
