﻿
.sidebar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.top-row {
    background: white; /* gradient look */
    justify-content: center; /* center logo */
    align-items: center;
    height: 3.4rem; /* consistent header height */
    padding: 0.5rem 1rem;
    margin-top: 1rem; /* added top spacing */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    z-index: 90;
}

.content {
    flex: 1;
    padding: 1.5rem;
    background-image: url("/Images/Final%20SoulSukh%20logo_14th%20Sep'25.jpg");
    background-size: 70%;
    background-position: 195% 190%; /* pushes image right & slightly down */
    background-repeat: no-repeat;
    background-attachment: fixed; /* ✅ keeps image constant */
    background-color: #fff;
    margin-left: 280px;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
            text-decoration: underline;
        }

        .top-row ::deep a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 50;
    border: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center;
    background-size: 1.5rem;
    background-color: gray;
}

    .navbar-toggler:checked ~ .nav-scrollable {
        display: block;
    }


.nav-scrollable {
    display: none;
 height: calc(100vh - 3.5rem);
    overflow-y: auto;
    overflow-x:hidden;
    color:gray;
/*    background: linear-gradient(to bottom, #374961, #324876);*/
}

@media (min-width: 640px) {
    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block !important;
    }
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    width: 250px;
}

    .nav-item:first-of-type {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item .nav-link {
        height: 2.6rem;
        display: flex;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
        padding-left: 0.5rem;
        color: gray;
        border: none;
        background: none;
        transition: background 0.3s, color 0.3s, border-left 0.3s;
        border-left: 4px solid transparent; /* default (invisible) left border */
    }

        /* Hover effect */
        .nav-item .nav-link:hover {
            background-color: #f9fafb;
            color: #111827;
            border-left: 4px solid #FEC107; /* yellow left border on hover */
        }

        /* Active (selected) link */
        .nav-item .nav-link.active {
            background-color: #eef2ff;
            color: #378663;
            width: 220px;
            border-left: 4px solid #FEC107; /* permanent yellow border when active */
        }




.user-button {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    border-radius: 9999px; /* rounded-full */
    outline: none;
    cursor: pointer;
}

    .user-button:focus {
        outline: 2px solid #378663; /* ring-indigo-500 */
        outline-offset: 2px; /* ring-offset-2 */
        box-shadow: 0 0 0 1px #378663; /* focus:ring-2 ring-offset-2 */
    }

.user-avatar {
    height: 1.5rem; /* h-6 = 24px */
    width: 1.5rem;
    border-radius: 9999px; /* rounded-full */
    object-fit: cover;
}

.dropdown-icon {
    margin-left: 0.5rem; /* ml-2 */
    height: 1.25rem; /* h-5 */
    width: 1.25rem; /* w-5 */
    color: #9ca3af; /* text-gray-400 */
}

.dropdown-menu {
    position: absolute;
    margin-top: 0.5rem; /* mt-2 */
    width: 9rem; /* w-48 = 192px */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); /* shadow-lg */
    background-color: white;
    border: 1px solid rgba(0,0,0,0.05); /* ring-1 ring-black ring-opacity-5 */
    z-index: 999;
}



.dropdown-header {
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    color: #374151; /* text-gray-700 */
    border-bottom: 1px solid #e5e7eb; /* border-b */
}

.dropdown-role {
    color: #6b7280; /* text-gray-500 */
}

.dropdown-link {
    display: block;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    color: #374151; /* text-gray-700 */
    text-decoration: none;
    cursor: pointer;
}

    .dropdown-link:hover {
        background-color: #f3f4f6; /* hover:bg-gray-100 */
    }

.logout-btn {
    width: 100%;
    text-align: left;
}
/* Make sure SVG icons inside nav-link have the same color and transition */
.nav-item .nav-link svg {
    color: gray; /* same as default text color */
    transition: color 0.3s;
}

/* On hover, make icons the same color as the link text */
.nav-item .nav-link:hover svg {
    color: #111827; /* same as hover text color */
}

/* When active, icons should have the active color */
.nav-item .nav-link.active svg {
    color: #378663; /* same as active text color (indigo-600) */
}
