/* Role selector widget - positioned below dark mode toggle */
.role-selector {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
    background: #e2e2e2;
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background 0.3s;
}

.role-selector-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-selector select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
    border-radius: 4px;
    color: #333;
}

.role-selector select option {
    font-weight: 600;
}

/* Role badge next to selector */
.role-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.role-badge-admin {
    background: #fde8e8;
    color: #c0392b;
}

.role-badge-provisioner {
    background: #dbeafe;
    color: #2563eb;
}

.role-badge-readonly {
    background: #f0f0f0;
    color: #666;
}

/* Access denied banner */
.access-denied-banner {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.access-denied-banner .dismiss-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #856404;
    padding: 0 4px;
    line-height: 1;
}

/* Dark mode overrides */
[data-theme="dark"] .role-selector {
    background: #2a2a4a;
}

[data-theme="dark"] .role-selector-label {
    color: #aaa;
}

[data-theme="dark"] .role-selector select {
    color: #e0e0e0;
}

[data-theme="dark"] .role-selector select option {
    background: #2a2a4a;
    color: #e0e0e0;
}

[data-theme="dark"] .role-badge-admin {
    background: #4a1c1c;
    color: #f5a0a0;
}

[data-theme="dark"] .role-badge-provisioner {
    background: #1c2d4a;
    color: #93c5fd;
}

[data-theme="dark"] .role-badge-readonly {
    background: #2a2a3a;
    color: #aaa;
}

[data-theme="dark"] .access-denied-banner {
    background: #3d3520;
    color: #ffd54f;
    border-color: #665a2a;
}

[data-theme="dark"] .access-denied-banner .dismiss-btn {
    color: #ffd54f;
}