/* ========== LIGHT GLASS SIDEBAR (EzBooking Polish) ========== */

:root {
    --sb-bg: rgba(240, 246, 255, 0.82);
    --sb-border: rgba(30, 64, 185, 0.10);
    --sb-text: #1e3a8a;
    --sb-muted: #64748b;
    --sb-hover: rgba(59, 130, 246, 0.08);
    --sb-active: rgba(59, 130, 246, 0.12);
    --sb-accent: #3b82f6;
}

/* Sidebar container */
.sidebar,
.side-bar,
.nav-side,
.aside,
#sidebar {
    background: var(--sb-bg) !important;
    border-right: 1px solid var(--sb-border) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(120%) !important;
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08) !important;
    padding: 24px 0 !important;
    /* standardize */
}

/* Profile section */
.sidebar .profile,
#sidebar .profile {
    padding: 0 20px 24px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid var(--sb-border) !important;
    text-align: center;
}

/* User Name styling */
.sidebar .user-name,
#sidebar .user-name,
.sidebar .name,
#sidebar .name {
    color: var(--sb-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    margin-top: 12px !important;
}

/* Profile image */
.sidebar img,
#sidebar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 16px !important;
    border: 2px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.10) !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar img:hover {
    transform: scale(1.03);
}

/* Menu container spacing */
.sidebar .menu,
.sidebar .nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 0 !important;
}

/* Individual Links */
.sidebar a,
#sidebar a,
.sidebar .nav-link,
#sidebar .nav-link {
    color: var(--sb-text) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 11px 16px !important;
    margin: 4px 14px !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
}

/* Hover effect */
.sidebar a:hover,
.sidebar .nav-link:hover {
    background: var(--sb-hover) !important;
    transform: translateX(4px);
    color: #0284c7 !important;
    /* switch to blue on hover */
}

/* Active item indicator */
.sidebar a.active,
.sidebar .nav-link.active {
    background: var(--sb-active) !important;
    color: var(--sb-accent) !important;
    border-color: rgba(16, 185, 129, 0.1) !important;
}

/* The indicator bar (left vertical line) */
.sidebar a.active::before,
.sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: var(--sb-accent);
    border-radius: 4px;
}

/* Shimmer effect on hover */
.sidebar a::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.sidebar a:hover::after {
    transform: translateX(110%);
}

/* Icon opacity */
.sidebar a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.85;
}

/* ENTRY ANIMATIONS (STAGGERED) */
@keyframes sbIn {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.sidebar a {
    animation: sbIn 0.5s ease both;
}

.sidebar a:nth-child(1) {
    animation-delay: 0.05s;
}

.sidebar a:nth-child(2) {
    animation-delay: 0.10s;
}

.sidebar a:nth-child(3) {
    animation-delay: 0.15s;
}

.sidebar a:nth-child(4) {
    animation-delay: 0.20s;
}

.sidebar a:nth-child(5) {
    animation-delay: 0.25s;
}

.sidebar a:nth-child(6) {
    animation-delay: 0.30s;
}

/* Respect User Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .sidebar a {
        animation: none !important;
        transition: none !important;
    }
}