/* --- SIDEBAR CONTAINER --- */
/* Sidebar Default State */
.sidebar {
    background-color: var(--bg-color); /* Dark professional theme */
    color: #ffffff;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #333;
    font-family: 'Segoe UI', sans-serif;
}

/* 100% Hidden State */
.sidebar.collapsed {
    width: 0;
    border-right: none;
}

/* Hide labels and dropdowns when collapsed */
.sidebar.collapsed .sidebar-collapsible-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

.sidebar-collapsible-content:first-of-type {
    padding: 15px;
    flex: 1; /* This pushes the footer to the bottom */
}

/* Styling the Collapse Button */
.collapse-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-sidebar-btn:hover {
    background-color: var(--sidebar-hover);
    color: #FFF;
}

/* Rotate icon when collapsed */
.collapse-sidebar-btn {
    transition: transform 0.3s ease;
}

.sidebar-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-left: 12px;
}

/* Hide the main UI until the 'authenticated' class is added to the body */
#sidebar-container {
    display: none;
}

body.authenticated #sidebar-container{
    display: flex; /* or your original display type */
}

.sidebar-footer {
flex-shrink: 0; /* Prevents buttons from getting squashed */
    border-top: 1px solid #333; /* Visual separator */
    background: inherit;
    margin-top: auto; /* Pushes footer to the bottom */
}

.sidebar-persistent-footer {
    margin-top: 2rem;
    border-top: 1px solid #333;
    flex-shrink: 0; /* Prevents buttons from getting squashed */
}

#sidebar-member-view {
    display: flex;
    flex-direction: column;
    flex: 1; /* This grows to fill the gap, pushing the footer down */
    min-height: 0;
    padding: 1rem;
}

/* 3. The part that actually contains your project list/items */
.sidebar-content {
    flex: 0; 
    overflow-y: auto; /* Only the project list scrolls if it gets long */
    margin-top: 10px;
}


/* Optional: Add a subtle separator above the bottom action group */
.sidebar-user-profile {
    flex-shrink: 0; /* Prevents buttons from getting squashed */
    margin-top: auto; /* Just in case the project list is empty */
    border-top: 1px solid #2a2a2a;
}


.sidebar.collapsed > * {
    display: none !important;
}

.sidebar-footer {
    padding: 20px 16px;
    font-size: 12px;
    color: #555;
    text-align: center;
}


    



@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add this class via JS when the panel is open */
.sidebar-action-btn.active .chevron {
    transform: rotate(180deg);
}



.sidebar-btn
{
    width: 100%;
    color: var(--sidebar-text);
    background: var(--sidebar-bg);
    border: none;
    padding: 6px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    margin-bottom: 5px;
    height: 3rem
}

.sidebar-btn:hover{

    color: #fff;
    background: var(--sidebar-hover);
}


#sidebar-guest-view .google-btn {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 12px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    color: #3c4043;
    transition: background-color .2s, box-shadow .2s;
}

#sidebar-guest-view .google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.30), 0 1px 3px 1px rgba(60,64,67,0.15);
}

#sidebar-guest-view .google-btn img {
    width: 18px;
    height: 18px;
}

.logo-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;

}

.app-logo {
    height: 32px; /* Adjust height based on your logo's shape */
    width: auto;
    object-fit: contain;
    /* Optional: if your logo is black and needs to be light for the dark theme */
    /* filter: brightness(0) invert(1); */
}
