/* _content/ELDNET/Views/Shared/_Layout.cshtml.rz.scp.css */
:root[b-t61bbj5uy5] {
    /* Refined girly palette: softer gradients, more luminous highlights */
    --sidebar-bg: #fdf7fe;
    --sidebar-border: #f2e9f5;
    --sidebar-hover: #fef2f9;
    --sidebar-active-start: #fbc2eb;
    --sidebar-active-end: #a6c1ee;
    --sidebar-text: #6a5a7a;
    --sidebar-icon: #d46296;
    --sidebar-header-gradient: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    --main-bg-start: #fff9fc;
    --main-bg-end: #f7f9fe;
    --card-bg: #ffffff;
    --card-border: #f0e9f5;
    --btn-primary-start: #fbc2eb;
    --btn-primary-end: #a6c1ee;
    --btn-primary-hover-start: #f8abe5;
    --btn-primary-hover-end: #92b5e8;
}

/* ✨ Body — clean, luminous gradient with no scroll artifacts */
body[b-t61bbj5uy5] {
    background: linear-gradient(135deg, var(--main-bg-start), var(--main-bg-end)) !important;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: #333;
    min-height: 100vh;
}

/* ===== Sidebar (Full-height, refined) ===== */
.sidebar[b-t61bbj5uy5] {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 2px 0 16px rgba(212, 98, 150, 0.06);
    overflow: hidden;
}

    .sidebar.collapsed[b-t61bbj5uy5] {
        width: 80px;
    }

/* Header: slightly taller, luminous gradient, subtle inner shadow */
.sidebar-header[b-t61bbj5uy5] {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
    background: var(--sidebar-header-gradient);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

.sidebar-brand[b-t61bbj5uy5] {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: #ffffff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    transition: opacity 0.25s, transform 0.25s;
}

    .sidebar-brand i[b-t61bbj5uy5] {
        color: rgba(255, 255, 255, 0.95);
        margin-right: 0.6rem;
        font-size: 1.4rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

.sidebar.collapsed .sidebar-brand[b-t61bbj5uy5] {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

/* Navigation Links — refined spacing & interaction */
.nav-links[b-t61bbj5uy5] {
    flex-grow: 1;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    overflow-y: auto;
}

.nav-item[b-t61bbj5uy5] {
    margin-bottom: 0.4rem;
}

.nav-link[b-t61bbj5uy5] {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 500;
    border-radius: 0 16px 16px 0;
    transition: all 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    gap: 0.8rem;
}

.sidebar.collapsed .nav-link[b-t61bbj5uy5] {
    justify-content: center;
    padding: 0.9rem;
    gap: 0;
}

.nav-link:hover[b-t61bbj5uy5] {
    background-color: var(--sidebar-hover);
    color: #d46296;
    transform: translateX(4px);
}

/* Active state: smooth gradient + soft glow */
.nav-link.active[b-t61bbj5uy5] {
    background: linear-gradient(90deg, var(--sidebar-active-start), var(--sidebar-active-end));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(166, 193, 238, 0.25);
    transform: translateX(4px);
}

    .nav-link.active[b-t61bbj5uy5]::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 4px;
        border-radius: 2px;
        background: linear-gradient(to bottom, #ffffff, #e0b0dd);
        opacity: 0.6;
    }

.nav-icon[b-t61bbj5uy5] {
    font-size: 1.3rem;
    min-width: 24px;
    color: var(--sidebar-icon);
    transition: all 0.25s ease;
}

.nav-link:hover .nav-icon[b-t61bbj5uy5],
.nav-link.active .nav-icon[b-t61bbj5uy5] {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-text[b-t61bbj5uy5] {
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.25s, transform 0.25s;
}

.sidebar.collapsed .nav-text[b-t61bbj5uy5] {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

/* ✨ Tooltip on hover (collapsed mode) — frosted glass effect */
.sidebar.collapsed .nav-link:hover .nav-text[b-t61bbj5uy5],
.sidebar.collapsed .logout-btn:hover .nav-text[b-t61bbj5uy5] {
    position: absolute;
    left: 84px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: #5a4a6a;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 1;
    z-index: 1050;
    box-shadow: 0 6px 20px rgba(166, 193, 238, 0.3);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 98, 150, 0.1);
    pointer-events: none;
    animation: fadeIn-b-t61bbj5uy5 0.2s ease forwards;
}

@keyframes fadeIn-b-t61bbj5uy5 {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Logout button — matching girly styling */
.logout-btn[b-t61bbj5uy5] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--sidebar-text);
    background: none;
    border: none;
    border-radius: 0 14px 14px 0;
    cursor: pointer;
    transition: all 0.28s ease;
    text-align: left;
    gap: 0.8rem;
}

.sidebar.collapsed .logout-btn[b-t61bbj5uy5] {
    justify-content: center;
    padding: 0.65rem;
    gap: 0;
}

.logout-btn:hover[b-t61bbj5uy5] {
    background-color: #fef0fa;
    color: #d46296;
    transform: translateX(4px);
}

.logout-btn i[b-t61bbj5uy5] {
    font-size: 1.25rem;
    color: var(--sidebar-icon);
}

.logout-btn:hover i[b-t61bbj5uy5] {
    color: #d46296;
    transform: translateX(2px);
}

/* ===== Main Content Area ===== */
.main-content-wrapper[b-t61bbj5uy5] {
    margin-left: 260px;
    transition: margin-left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 20px; /* Avoid content under top bar if needed */
}

.sidebar.collapsed ~ .main-content-wrapper[b-t61bbj5uy5] {
    margin-left: 80px;
}

.main-content-body[b-t61bbj5uy5] {
    flex: 1;
    padding: 1.5rem;
}

/* Card styling for content blocks — clean & elevated */
.card[b-t61bbj5uy5] {
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: 0 4px 16px rgba(166, 193, 238, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

    .card:hover[b-t61bbj5uy5] {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(166, 193, 238, 0.15);
    }

.card-header[b-t61bbj5uy5] {
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #4a4a6a;
}

/* Primary button — soft girly gradient */
.btn-primary[b-t61bbj5uy5] {
    background: linear-gradient(to right, var(--btn-primary-start), var(--btn-primary-end));
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(212, 98, 150, 0.2);
    transition: all 0.25s ease;
}

    .btn-primary:hover[b-t61bbj5uy5] {
        background: linear-gradient(to right, var(--btn-primary-hover-start), var(--btn-primary-hover-end));
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(212, 98, 150, 0.3);
    }

/* Footer — softer pink tint */
footer[b-t61bbj5uy5] {
    background-color: #fef8fd;
    border-top: 1px solid #f2e9f5;
    color: #7a5a7a;
    font-size: 0.85rem;
    padding: 1rem 0;
}

/* ===== Responsive (Mobile) — improved touch target & overlay ===== */
@media (max-width: 768px) {
    .sidebar[b-t61bbj5uy5] {
        width: 260px;
        left: -260px;
        transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: none;
    }

        .sidebar.open[b-t61bbj5uy5] {
            left: 0;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        }

        .sidebar.collapsed[b-t61bbj5uy5] {
            left: -80px;
            width: 80px;
        }

    .main-content-wrapper[b-t61bbj5uy5] {
        margin-left: 0;
    }

    /* Overlay for mobile sidebar open */
    .sidebar.open ~ .main-content-wrapper[b-t61bbj5uy5]::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1035;
        cursor: pointer;
    }
}
