/**
 * Staff-Only Feature Indicators
 *
 * Visual indicators for features that are only visible to staff members.
 * Two-tier system: Staff (orange/amber) and Super Admin (purple/indigo).
 *
 * These indicators are only rendered for staff users and can be remotely
 * disabled via LaunchDarkly feature flag 'staff-only-indicators'.
 */

/* Base indicator styles - circular badge with "S" */
.staff-indicator {
    display: inline-block;
    border-radius: 50%;
    font-weight: 600;
    font-size: 10px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    vertical-align: super;
    white-space: nowrap;
    margin-left: 4px;
    padding: 0;
    cursor: default;
    text-transform: uppercase;
    position: relative;
    top: -2px;
}

/* Staff tier - Orange/Amber scheme */
.staff-indicator-staff {
    color: var(--semantic-fg-warning, #B26205);
    background-color: var(--semantic-bg-warning, #FFF9E6);
    border: 1px solid rgba(178, 98, 5, 0.2);
}

/* Super Admin tier - Purple/Indigo scheme */
.staff-indicator-super-admin {
    color: var(--semantic-accent-bold, #5336E2);
    background-color: var(--semantic-accent-subtle, #F0EDFF);
    border: 1px solid rgba(83, 54, 226, 0.2);
}

/* Size variants */
.staff-indicator-small {
    font-size: 8px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.staff-indicator-large {
    font-size: 12px;
    width: 22px;
    height: 22px;
    line-height: 22px;
}

/* Icon-only variant is now same as default since we use single letter */
.staff-indicator-icon {
    /* All indicators are now compact circular badges */
}

/* Context-specific adjustments */

/* Navigation items */
.navbar-nav .staff-indicator {
    font-size: 9px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.nav-pills .staff-indicator,
.nav-tabs .staff-indicator {
    font-size: 9px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Table/Grid headers */
th .staff-indicator {
    font-size: 8px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

/* Panel headings */
.panel-heading .staff-indicator {
    font-size: 9px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Buttons */
.btn .staff-indicator {
    vertical-align: middle;
    top: -1px;
}

/* Checkbox and radio labels */
.checkbox .staff-indicator,
.radio .staff-indicator,
label .staff-indicator {
    vertical-align: middle;
    top: -1px;
}

/* Dropdown menu items */
.dropdown-menu .staff-indicator {
    font-size: 8px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    vertical-align: middle;
}

/* Page headers */
h1 .staff-indicator,
h2 .staff-indicator,
h3 .staff-indicator,
h4 .staff-indicator {
    margin-left: 10px;
    font-size: 10px;
    vertical-align: baseline;
}

/* Form labels */
.control-label .staff-indicator {
    margin-left: 5px;
    font-size: 10px;
}

/* Breadcrumbs */
.breadcrumb .staff-indicator {
    margin-left: 5px;
    font-size: 10px;
}

/* Modal headers */
.modal-header .staff-indicator {
    margin-left: 8px;
    font-size: 10px;
}

/* Tabs */
.tab-pane .staff-indicator {
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .staff-indicator {
        font-size: 8px;
        width: 16px;
        height: 16px;
        line-height: 16px;
    }

    .staff-indicator-small {
        font-size: 7px;
        width: 12px;
        height: 12px;
        line-height: 12px;
    }

    /* Smaller indicators in very narrow mobile contexts */
    @media (max-width: 480px) {
        .navbar-nav .staff-indicator {
            font-size: 7px;
            width: 14px;
            height: 14px;
            line-height: 14px;
        }
    }
}

/* Print styles - hide all indicators */
@media print {
    .staff-indicator {
        display: none !important;
    }
}

/* Dark mode support (if applicable) */
@media (prefers-color-scheme: dark) {
    .staff-indicator-staff {
        color: #FFB84D;
        background-color: rgba(255, 184, 77, 0.15);
        border-color: rgba(255, 184, 77, 0.3);
    }

    .staff-indicator-super-admin {
        color: #A78BFA;
        background-color: rgba(167, 139, 250, 0.15);
        border-color: rgba(167, 139, 250, 0.3);
    }
}

/* Accessibility - ensure sufficient contrast */
.staff-indicator:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Animation on hover (subtle) */
.staff-indicator:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.15s ease-in-out;
}

/* When indicator is prefixed instead of suffixed */
.staff-indicator + * {
    margin-left: 4px;
}
