/* ============================================================
   AIDA11 — Shared Navbar
   Usado em: index.ejs, servers.ejs, dashboard-improved.ejs
   Shell visual idêntico, conteúdo diferente por página
   ============================================================ */

/* ── Shell ─────────────────────────────────────────────── */
.aida11-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    z-index: 1050;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.aida11-nav-accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #9D70EB 30%, #41148F 70%, transparent 100%);
    opacity: 0.8;
}

.aida11-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 60px;
    padding: 0 2rem;
    max-width: 100%;
}

/* Brand fica na coluna 1 (esquerda) */
.aida11-nav-brand {
    grid-column: 1;
}

/* Links ficam na coluna 2 (centro absoluto) */
.aida11-nav-links {
    grid-column: 2;
}

/* Right fica na coluna 3 (direita), alinhado à direita */
.aida11-nav-right {
    grid-column: 3;
    justify-self: end;
}

/* ── Brand ─────────────────────────────────────────────── */
.aida11-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.aida11-nav-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #9D70EB 0%, #41148F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(139,92,246,0.35), 0 2px 6px rgba(157,112,235,0.2);
    flex-shrink: 0;
    overflow: hidden;
}

/* Mascot variant — circular, no gradient bg */
.aida11-nav-brand-icon.aida11-mascot {
    background: transparent;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(157, 112, 235, 0.55), 0 0 0 1.5px rgba(157,112,235,0.3);
}

.aida11-nav-brand-icon.aida11-mascot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.aida11-nav-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
    line-height: 1;
}

.aida11-nav-brand-accent {
    color: #8f5cff !important;
    -webkit-text-fill-color: #8f5cff;
}

.aida11-nav-brand-suffix {
    background: linear-gradient(135deg, #5aa7ff 0%, #9d70eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.82em;
    font-weight: 900;
    letter-spacing: 0;
}

.aida11-nav-brand-sub {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #9D70EB 0%, #B998F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 400;
    opacity: 0.85;
}

/* ── Right section ─────────────────────────────────────── */
.aida11-nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: flex-end;
}

/* ── Status pill ────────────────────────────────────────── */
.aida11-nav-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 999px;
}

.aida11-status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16,185,129,0.7);
    animation: aida11-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes aida11-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(16,185,129,0.7); }
    50%       { opacity: 0.75; box-shadow: 0 0 12px rgba(16,185,129,0.5); }
}

.aida11-status-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 0.02em;
}

/* ── User trigger ───────────────────────────────────────── */
.aida11-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.75rem 0.3rem 0.35rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.aida11-user-trigger:hover {
    background: rgba(139,92,246,0.12);
    border-color: rgba(157,112,235,0.35);
    box-shadow: 0 2px 12px rgba(139,92,246,0.2);
}

.aida11-user-trigger::after { display: none; } /* remove bootstrap caret */

.aida11-user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(135deg, #9D70EB, #41148F) border-box;
    object-fit: cover;
    flex-shrink: 0;
}

.aida11-user-avatar-placeholder {
    background: linear-gradient(135deg, #9D70EB, #41148F);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.aida11-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aida11-chevron {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    transition: transform 0.2s ease;
}

.aida11-user-trigger[aria-expanded="true"] .aida11-chevron { transform: rotate(180deg); }

/* ── Dropdown panel ─────────────────────────────────────── */
.aida11-dropdown {
    background: rgba(12,12,14,0.97) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.12) !important;
    margin-top: 10px !important;
    min-width: 270px;
    padding: 6px !important;
    overflow: hidden;
}

.aida11-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    background: linear-gradient(135deg, rgba(157,112,235,0.06) 0%, rgba(65,20,143,0.06) 100%);
    border-radius: 10px;
    border: 1px solid rgba(139,92,246,0.12);
    margin: 2px;
}

.aida11-dp-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(#0c0c0e, #0c0c0e) padding-box,
                linear-gradient(135deg, #9D70EB, #41148F) border-box;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.aida11-dp-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.2;
}

.aida11-dp-id {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

.aida11-dp-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    padding: 2px 8px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #10b981;
}

.aida11-divider {
    border-color: rgba(255,255,255,0.06) !important;
    margin: 4px 8px !important;
}

.aida11-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    margin: 1px 2px;
}

.aida11-dropdown-item i:first-child {
    width: 16px;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

.aida11-dropdown-item:hover {
    background: rgba(157,112,235,0.08) !important;
    color: #fff !important;
}

.aida11-dropdown-item:hover i:first-child { color: #9D70EB; }

.aida11-item-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    transition: transform 0.15s ease, color 0.15s ease;
}

.aida11-dropdown-item:hover .aida11-item-arrow {
    transform: translateX(2px);
    color: rgba(157,112,235,0.6);
}

.aida11-dropdown-item--danger { color: rgba(239,68,68,0.85) !important; }
.aida11-dropdown-item--danger i:first-child { color: rgba(239,68,68,0.6); }
.aida11-dropdown-item--danger:hover {
    background: rgba(239,68,68,0.08) !important;
    color: #ef4444 !important;
}
.aida11-dropdown-item--danger:hover i:first-child { color: #ef4444; }

/* ── Login button (landing — guest state) ────────────────── */
.aida11-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, #9D70EB, #41148F);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(157,112,235,0.4);
    transition: all 0.2s ease;
}

.aida11-nav-login:hover {
    box-shadow: 0 6px 20px rgba(157,112,235,0.55);
    transform: translateY(-1px);
    color: #fff !important;
}

.aida11-nav-login i { font-size: 1rem; }

/* ── Nav links (landing — opcional) ─────────────────────── */
.aida11-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.aida11-nav-link {
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.aida11-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

/* ── Navbar sem links centrais (servers, dashboard) ────────
   Quando não há .aida11-nav-links, usa flex normal            */
.aida11-nav-inner:not(:has(.aida11-nav-links)) {
    display: flex;
    justify-content: space-between;
}

/* ── Body offset ─────────────────────────────────────────── */
/* Aplicado via classe na tag body quando necessário */
body.has-navbar { padding-top: 60px; }
