#avision-dashboard-root .top-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.admin-bar #avision-dashboard-root .top-nav {
    top: 32px;
}

#avision-dashboard-root .nav-left,
#avision-dashboard-root .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

#avision-dashboard-root .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

#avision-dashboard-root .notif-btn {
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    user-select: none;
}

#avision-dashboard-root .notif-btn:hover {
    background: #f1f5f9;
}

#avision-dashboard-root .notif-btn.active {
    color: var(--accent);
}

#avision-dashboard-root .notif-btn.active::after {
    content: '✓';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--success);
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

#avision-dashboard-root .header-flags {
    display: flex;
    gap: 5px;
    align-items: center;
    background: rgba(0,0,0,0.03);
    padding: 5px 10px;
    border-radius: 20px;
}

#avision-dashboard-root .header-flag {
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s;
    filter: grayscale(100%);
    line-height: 1;
    padding: 8px;
    user-select: none;
    display: inline-block;
}

#avision-dashboard-root .header-flag:hover,
#avision-dashboard-root .header-flag.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

#avision-dashboard-root .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#avision-dashboard-root .modal-overlay.is-visible {
    display: flex;
}

#avision-dashboard-root .modal-box,
#avision-dashboard-root .modal-content {
    min-width: 400px;
    max-width: 90vw;
    padding: 1.5rem;
    box-sizing: border-box;
}
#avision-dashboard-root .modal-box {
    background: white;
    border-radius: 1rem;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

#avision-dashboard-root .modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

#avision-dashboard-root .modal-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

#avision-dashboard-root .modal-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}
