﻿/* Sidebar for desktop */
.admin-sidebar {
    background: linear-gradient(to bottom right, #4c8bf5, #326cd9);
    width: 240px; /* fixed width on desktop */
    min-height: 100vh; /* full height */
    padding: 1.5rem 1rem;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: transform 0.3s ease, width 0.3s ease;
    box-shadow: 2px 0 6px rgba(0,0,0,0.1);
}

    /* Collapsed sidebar (mobile toggle) */
    .admin-sidebar.collapsed {
        transform: translateX(-100%);
    }

/* Nav link styles */
.nav-link {
    font-weight: 500;
    color: #fff !important;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateX(4px);
    }

    .nav-link.active {
        background-color: #ffffff !important;
        color: #326cd9 !important;
        font-weight: 600;
    }

        .nav-link.active i {
            color: #326cd9 !important;
        }

    .nav-link i {
        margin-right: 0.6rem;
        font-size: 1.1rem;
    }

/* Content area */
.content-wrapper {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Responsive rules */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px; /* narrower for mobile */
        z-index: 1050;
    }

    .content-wrapper {
        margin-left: 0 !important;
    }
}
