/* Sidebar Navigation Styles */

.wf-sidebar {
    width: 256px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    transition: var(--transition, all 0.3s ease);
    z-index: 100;
}

.wf-sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wf-sidebar-logo-container {
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wf-sidebar-logo {
    width: 90px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
}

[data-theme="light"] #wf-sidebar-logo {
    filter: invert(1) brightness(0.2); /* Invert white to dark */
}

.wf-logo-icon {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.wf-brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.wf-brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0;
}

.wf-sidebar-nav {
    flex: 1;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wf-sidebar-context-shortcuts {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wf-sidebar-context-title {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.wf-sidebar-context-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    transition: var(--transition, all 0.2s ease);
}

.wf-sidebar-context-link:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.wf-sidebar-context-link .material-symbols-outlined {
    font-size: 1.05rem;
}


.wf-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition, all 0.2s ease);
    border-left: 4px solid transparent;
}

.wf-nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.wf-nav-item.active {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Sidebar Footer */
.wf-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.wf-btn-support {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    padding: 0.625rem;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.2);
    transition: var(--transition, all 0.2s ease);
}

.wf-btn-support:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.wf-btn-support .material-symbols-outlined {
    font-size: 1.125rem;
}

.wf-btn-logout {
    width: 100%;
    background-color: transparent;
    color: var(--text-secondary);
    padding: 0.625rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease);
}

.wf-btn-logout:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
    transform: translateY(-1px);
}

.wf-btn-logout .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Sidebar Overlay */
.wf-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.wf-sidebar-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .wf-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 9999;
        transform: translateX(-100%);
        padding: 0;
        box-shadow: none;
    }

    .wf-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    }
}