/* ═══════════════════════════════════════
   Mobile Bottom Navigation
   ═══════════════════════════════════════ */

/* Bottom nav bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #12121a;
    border-top: 1px solid #2a2a3a;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    /* Prevent content from being hidden behind nav */
    body {
        padding-bottom: 64px;
    }
    /* Hide top nav user area on mobile, keep logo */
    .top-nav .nav-links {
        display: none !important;
    }
    .top-nav .nav-user {
        display: none !important;
    }
}

.mobile-nav-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 56px;
    padding: 0 4px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 4px 2px;
    color: #a0a0b8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.mobile-nav-item .nav-icon {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 2px;
}

.mobile-nav-item.active {
    color: #6c5ce7;
}

.mobile-nav-item:hover {
    color: #a855f7;
}

/* Super admin only items */
.mobile-nav-item.super-only {
    display: none;
}

.mobile-bottom-nav.is-super .mobile-nav-item.super-only {
    display: flex;
}

/* ═══════════════════════════════════════
   Super Toggle Button
   ═══════════════════════════════════════ */

.super-toggle-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    min-width: 48px;
}

.mobile-bottom-nav.is-super .super-toggle-wrap {
    display: flex;
}

.super-toggle-label {
    font-size: 10px;
    color: #a0a0b8;
    margin-bottom: 2px;
    font-weight: 600;
}

.super-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    background: #2a2a3a;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.super-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #666;
    border-radius: 50%;
    transition: all 0.3s;
}

.super-toggle.active {
    background: #6c5ce7;
}

.super-toggle.active::after {
    left: 18px;
    background: #fff;
}

/* ═══════════════════════════════════════
   Super Admin Panel (slide-up)
   ═══════════════════════════════════════ */

.super-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.super-panel-overlay.visible {
    display: block;
    opacity: 1;
}

.super-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: #1a1a2e;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.super-panel.open {
    transform: translateY(0);
}

.super-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #2a2a3a;
    flex-shrink: 0;
}

.super-panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: #e8e8f0;
    font-weight: 700;
}

.super-panel-close {
    background: none;
    border: none;
    color: #a0a0b8;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.super-panel-body {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.super-panel-user {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e8e8f0;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.super-panel-user:hover,
.super-panel-user:active {
    background: rgba(108,92,231,0.15);
}

.super-panel-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.super-panel-user-name {
    font-weight: 600;
    color: #e8e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.super-panel-user-email {
    font-size: 12px;
    color: #a0a0b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.super-panel-user-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
    flex-shrink: 0;
}

.super-panel-user-badge.admin {
    background: rgba(108,92,231,0.2);
    color: #a855f7;
}

.super-panel-user-badge.user {
    background: rgba(255,255,255,0.08);
    color: #a0a0b8;
}

.super-panel-loading {
    text-align: center;
    padding: 32px 20px;
    color: #a0a0b8;
    font-size: 14px;
}
