.sidebar {
        display: flex;
        flex-direction: column;
        height: 100%;
        background: var(--app-surface);
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    /* Brand */
    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--app-border);
        min-width: 0;
    }

    .brand-logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: #c92a2a;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .brand-logo-img {
        height: 32px;
        width: 32px;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }

    .brand-text {
        font-weight: 700;
        font-size: 1rem;
        color: var(--app-text);
        letter-spacing: -0.4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Navigation */
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        flex: 1;
    }

    /* Organization Selector - Dropdown Item */
    .org-selector-item {
        position: relative;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--app-border);
    }

    .org-selector-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem;
        background-color: var(--app-bg);
        border: 1px solid var(--app-border);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .org-selector-header:hover {
        background-color: var(--app-bg);
        border-color: #c92a2a;
    }

    .org-selector-content {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 0;
        flex: 1;
    }

    .org-label {
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--app-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .org-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--app-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .org-chevron {
        font-size: 0.75rem;
        color: #c92a2a;
        transition: transform 0.3s ease;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    .org-selector-header.active .org-chevron {
        transform: rotate(180deg);
    }

    /* Organization Dropdown */
    .org-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--app-surface);
        border: 1px solid var(--app-border);
        border-top: none;
        border-radius: 0 0 8px 8px;
        box-shadow: var(--app-shadow);
        z-index: 1000;
        margin-top: -1px;
    }

    .org-dropdown.active {
        display: block;
    }

    .org-dropdown-form {
        margin: 0;
    }

    .org-options {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .org-option {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        background: none;
        border: none;
        color: var(--app-muted);
        cursor: pointer;
        text-align: left;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s ease;
        width: 100%;
    }

    .org-option:first-child {
        border-radius: 0;
    }

    .org-option:last-child {
        border-radius: 0 0 8px 8px;
    }

    .org-option:hover {
        background-color: var(--app-bg);
        color: #c92a2a;
    }

    .org-option i {
        font-size: 0.9rem;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    /* Nav Links */
    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.75rem;
        color: var(--app-muted);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        font-weight: 500;
        border-left: 3px solid transparent;
        min-width: 0;
    }

    .nav-link i {
        width: 20px;
        text-align: center;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .nav-label {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .nav-link:hover {
        background-color: #f5f5f5;
        color: #c92a2a;
    }

    .nav-link.active {
        color: #c92a2a;
        background-color: #ffe6e6;
        border-left-color: #c92a2a;
    }

    [data-theme="dark"] .nav-link.active {
        background-color: rgba(201, 42, 42, 0.16);
    }

    .nav-link.logout-link:hover {
        background-color: #fff5f5;
        color: #dc3545;
    }

    /* Bottom Section */
    .sidebar-bottom {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--app-border);
    }

    .nav-link-button {
        width: 100%;
        border: none;
        background: transparent;
        text-align: left;
        font: inherit;
    }

    /* Mobile: Collapsed View */
    @media (max-width: 768px) {
        .sidebar {
            padding: 1rem 0.5rem;
            gap: 1rem;
        }

        .sidebar-brand {
            padding-bottom: 0.75rem;
        }

        .brand-text {
            display: none;
        }

        .brand-logo-container {
            margin: 0 auto;
        }

        .org-selector-item {
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
        }

        .org-selector-content {
            flex-direction: row;
            gap: 0;
        }

        .org-label {
            display: none;
        }

        .nav-label {
            display: none;
        }

        .nav-link {
            justify-content: center;
            padding: 0.75rem;
        }

        .sidebar-bottom {
            padding-top: 0.75rem;
        }
    }

    @media (max-width: 480px) {
        .sidebar {
            padding: 0.75rem 0.25rem;
        }

        .brand-logo-container {
            width: 40px;
            height: 40px;
        }

        .brand-logo-img {
            height: 28px;
        }

        .nav-link {
            padding: 0.6rem;
        }
    }