/* Admin Wizard Branch Switcher Styles */

#aw-branch-switcher {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
}

.aw-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aw-avatar.aw-spinning {
    /* Spinning Facebook-style ring */
    position: relative;
}

.aw-avatar.aw-spinning::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color, #1a73e8), transparent 60%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff 0);
    animation: awSpin 1s linear infinite;
}

@keyframes awSpin {
    100% { transform: rotate(360deg); }
}

#aw-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1100;
    padding: 8px 0;
    animation: awDropdownFade 0.2s ease;
}

@keyframes awDropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.aw-branch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.aw-branch-item:hover {
    background: #f1f3f4;
}

.aw-branch-item.aw-active {
    background: #e8f0fe;
    cursor: default;
}

.aw-branch-item.aw-active:hover {
    background: #e8f0fe;
}

#aw-active-banner {
    background: #e8f0fe;
    border-bottom: 1px solid #1a73e8;
    padding: 6px 2rem;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 60px;
    z-index: 999;
}

/* Dark Mode Compatibility */
.theme-dark #aw-dropdown {
    background: #202124;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid #3c4043;
}

.theme-dark .aw-branch-item:hover {
    background: #303134;
}

.theme-dark .aw-branch-item.aw-active {
    background: #3c4043;
}

.theme-dark .aw-branch-item .aw-avatar {
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}

.theme-dark .aw-branch-item span {
    color: #e8eaed !important;
}

.theme-dark #aw-active-banner {
    background: #202124;
    border-bottom: 1px solid #8ab4f8;
    color: #e8eaed;
}

.theme-dark #aw-active-banner span strong {
    color: #8ab4f8;
}

.theme-dark #aw-active-banner button {
    background: #202124 !important;
    border: 1px solid #8ab4f8 !important;
    color: #8ab4f8 !important;
}

.theme-dark #aw-active-banner button:hover {
    background: #303134 !important;
}
