.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--neutral-100);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--neutral-100);
    flex-shrink: 0;
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-nav {
    flex: 1 1 0%;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-400);
    padding: 12px 12px 6px;
    flex-shrink: 0;
}

.nav-link-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 14px;
    border-radius: var(--border-radius-lg);
    color: var(--neutral-600);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-link-pill i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--neutral-400);
    transition: color 0.15s ease;
}

.nav-link-pill:hover {
    background: var(--neutral-50);
    color: var(--neutral-900);
}

.nav-link-pill:hover i {
    color: var(--neutral-600);
}

.nav-link-pill.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(16, 53, 149, 0.2);
}

.nav-link-pill.active i {
    color: white;
}

.nav-link-pill .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-footer {
    border-top: 1px solid var(--neutral-100);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 4px;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-900);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 12px;
    color: var(--neutral-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-version {
    padding: 8px 14px;
    font-size: 11px;
    color: var(--neutral-400);
    text-align: center;
}

.sidebar-logout {
    justify-content: center;
}

/* Separator inside sidebar */
.sidebar .separador {
    border: 0;
    border-top: 1px solid var(--neutral-100);
    margin: 8px 14px;
    opacity: 1;
}

/* Main nav list */
.main-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.main-nav > li {
    list-style: none;
}

/* Mobile header */
#cabecera {
    background: var(--bg-card);
    border-bottom: 1px solid var(--neutral-100);
    height: 56px;
    padding: 0 16px;
    z-index: 99;
}

#cabecera img {
    height: 32px;
}

#cabecera .dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--neutral-600);
    font-size: 20px;
    padding: 8px;
}

#cabecera .dropdown-toggle::after {
    display: none;
}

#cabecera .dropdown-menu {
    margin-top: 8px;
}

.floating-event-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 84vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--neutral-100);
    box-shadow: var(--shadow-elevated);
    z-index: 999;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    padding: 8px;
}

.floating-event-menu .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-event-menu .submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--neutral-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    transition: background 0.15s ease;
}

.floating-event-menu .submenu li a:hover {
    background: var(--neutral-50);
}
