/* ============================================================
   ADMIN DASHBOARD STYLES — Brand-Aligned, Professional UI
   Silent Bid Pro Admin Interface
   ============================================================ */

/* CSS Variables */
:root {
    --admin-primary: #172235;
    --admin-primary-dark: #0f1820;
    --admin-primary-light: #315fcb;
    --admin-accent: #d99a2b;
    --admin-success: #28785f;
    --admin-error: #ef4444;
    --admin-warning: #d99a2b;
    --admin-cream: #fffaf0;
    --admin-light: #f4f7f2;
    --admin-white: #fffdf8;
    --admin-border: rgba(23, 34, 53, 0.1);
    --admin-text-primary: #172235;
    --admin-text-secondary: rgba(23, 34, 53, 0.66);
    --admin-text-muted: rgba(23, 34, 53, 0.45);

    --admin-shadow-sm: 0 8px 20px rgba(23, 34, 53, 0.06);
    --admin-shadow-md: 0 16px 34px rgba(23, 34, 53, 0.1);
    --admin-shadow-lg: 0 28px 70px rgba(23, 34, 53, 0.14);

    --admin-transition: all 0.3s ease;
    --admin-border-radius: 8px;
}

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

.admin-page {
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(244, 247, 242, 1));
    color: var(--admin-text-primary);
    font-family: "Avenir Next", "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(9, 17, 33, 0.82), rgba(9, 17, 33, 0.36)),
                url("../images/brand/silent-bid-pro-social-1200x630.png") center / cover no-repeat;
    padding: 2rem;
}

.login-box {
    background: rgba(255, 253, 248, 0.96);
    border-radius: var(--admin-border-radius);
    padding: 2.5rem;
    box-shadow: var(--admin-shadow-lg);
    width: 100%;
    max-width: 400px;
    border-top: 4px solid var(--admin-accent);
    border: 1px solid var(--admin-border);
}

.login-box h1 {
    margin: 0 0 0.5rem;
    color: var(--admin-text-primary);
    font-size: 1.8rem;
    font-family: Georgia, "Times New Roman", serif;
}

.login-box .subtitle {
    margin: 0 0 2rem;
    color: var(--admin-text-secondary);
    font-size: 0.95rem;
}

/* ============================================================
   DASHBOARD CONTAINER & LAYOUT
   ============================================================ */

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: transparent;
}

/* Header */
.admin-header {
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid var(--admin-border);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 30px rgba(23, 34, 53, 0.06);
    backdrop-filter: blur(18px);
}

.dashboard-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--admin-text-primary);
    font-family: Georgia, "Times New Roman", serif;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Admin Role Badge */
.admin-role-badge {
    display: flex;
    align-items: center;
}

.role-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.role-super-admin {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border: 1px solid #f59e0b;
}

.role-admin {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #a5b4fc;
}

/* ============================================================
   EVENT SELECTOR BAR
   ============================================================ */

#eventSelectorBar {
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid var(--admin-border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(23, 34, 53, 0.06);
    backdrop-filter: blur(18px);
}

#eventSelectorBar label {
    font-weight: 600;
    color: var(--admin-text-primary);
    margin: 0;
}

#eventSelector {
    padding: 0.5rem 1rem;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-border-radius);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 300px;
    background: var(--admin-cream);
    color: var(--admin-text-primary);
    border-color: var(--admin-border);
}

#eventSelector:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(217, 154, 43, 0.16);
}

#eventInfo {
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
    margin-left: auto;
}

/* ============================================================
   NAVIGATION TABS
   ============================================================ */

.admin-nav {
    background: rgba(255, 253, 248, 0.92);
    border-bottom: 1px solid var(--admin-border);
    padding: 0 2rem;
    display: flex;
    gap: 0;
    overflow-x: auto;
    box-shadow: 0 12px 30px rgba(23, 34, 53, 0.06);
    backdrop-filter: blur(18px);
}

.nav-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--admin-text-secondary);
    font-size: 0.95rem;
    font-weight: 800;
    border-bottom: 3px solid transparent;
    transition: var(--admin-transition);
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-tab:hover {
    color: var(--admin-text-primary);
    background: #fff4d8;
}

.nav-tab.active {
    color: var(--admin-success);
    border-bottom-color: var(--admin-accent);
}

/* ============================================================
   MAIN CONTENT & SECTIONS
   ============================================================ */

.admin-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    margin-top: 0;
    color: var(--admin-text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
}

.admin-section h3 {
    color: var(--admin-text-primary);
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: Georgia, "Times New Roman", serif;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title-row h2 {
    margin: 0;
}

.last-updated {
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   CARDS & METRICS
   ============================================================ */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 253, 248, 0.96);
    border-radius: var(--admin-border-radius);
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-md);
    border-left: 4px solid var(--admin-accent);
    border: 1px solid var(--admin-border);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--admin-primary-light);
    margin-bottom: 0.5rem;
    font-family: Georgia, "Times New Roman", serif;
}

.metric-label {
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: rgba(255, 253, 248, 0.96);
    border-radius: var(--admin-border-radius);
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-md);
    text-align: center;
    border: 1px solid var(--admin-border);
}

.status-label {
    color: var(--admin-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--admin-primary-light);
    font-family: Georgia, "Times New Roman", serif;
}

/* ============================================================
   ACTION BOX (Auction Management, etc.)
   ============================================================ */

.action-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(217, 154, 43, 0.08);
    border-radius: var(--admin-border-radius);
    border-left: 4px solid var(--admin-accent);
}

.action-box h3 {
    margin-top: 0;
}

.action-box > p {
    color: var(--admin-text-secondary);
    margin: 0.5rem 0 1rem 0;
}

/* ============================================================
   TABLES
   ============================================================ */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 253, 248, 0.96);
    border-radius: var(--admin-border-radius);
    overflow: hidden;
    box-shadow: var(--admin-shadow-md);
}

.admin-table thead {
    background: #fff4d8;
    border-bottom: 1px solid rgba(217, 154, 43, 0.35);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--admin-text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
}

.admin-table tbody tr:hover {
    background: var(--admin-light);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Data Table Container */
.data-table {
    background: rgba(255, 253, 248, 0.96);
    border-radius: var(--admin-border-radius);
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: var(--admin-shadow-md);
    border: 1px solid var(--admin-border);
    -webkit-overflow-scrolling: touch;
}

.data-table > table {
    min-width: 100%;
}

.empty-state,
.loading {
    padding: 2rem;
    text-align: center;
    color: var(--admin-text-muted);
}

/* Activity List */
.activity-list {
    padding: 1rem;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    gap: 1rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item .time {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
    min-width: 80px;
    font-family: monospace;
}

.activity-item .activity {
    color: var(--admin-text-secondary);
    flex: 1;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success {
    background: rgba(40, 120, 95, 0.12);
    color: var(--admin-success);
}

.badge-warning {
    background: rgba(217, 154, 43, 0.12);
    color: var(--admin-accent);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--admin-error);
}

.badge-secondary {
    background: rgba(23, 34, 53, 0.08);
    color: var(--admin-text-primary);
}

/* ============================================================
   FORMS
   ============================================================ */

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--admin-text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.description-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.description-field-header .form-label {
    margin-bottom: 0;
}

.form-input,
.form-select,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    padding: 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-border-radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--admin-cream);
    color: var(--admin-text-primary);
}

.form-input:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 4px rgba(217, 154, 43, 0.16);
}

.form-input:disabled,
input:disabled,
select:disabled {
    background-color: var(--admin-light);
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--admin-text-secondary);
    margin-top: 0.25rem;
}

.ai-item-note {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(40, 120, 95, 0.3);
    border-left: 4px solid var(--admin-success);
    border-radius: var(--admin-border-radius);
    background: rgba(40, 120, 95, 0.08);
    color: var(--admin-success);
    font-size: 0.9rem;
    line-height: 1.45;
}

.ai-item-note strong {
    color: var(--admin-success);
    font-weight: 600;
}

.description-improve-result {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--admin-border-radius);
    background: rgba(217, 154, 43, 0.08);
    border: 1px solid rgba(217, 154, 43, 0.3);
    color: #684a08;
    font-size: 0.86rem;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-start;
    min-width: 0;
}

.admin-contact-link {
    color: var(--admin-primary-light);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.admin-contact-link:hover {
    color: var(--admin-success);
}

.text-muted {
    color: var(--admin-text-muted);
}

/* Error Messages */
.error-message {
    padding: 0.75rem 1rem;
    border-radius: var(--admin-border-radius);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--admin-error);
    font-size: 0.9rem;
}

/* Filter Group */
.filter-group {
    background: rgba(255, 253, 248, 0.96);
    padding: 1rem;
    border-radius: var(--admin-border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--admin-border);
}

.filter-group label {
    color: var(--admin-text-secondary);
    font-weight: 500;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--admin-border);
    background: rgba(255, 253, 248, 0.96);
    border-radius: 4px;
    cursor: pointer;
    color: var(--admin-primary-light);
    font-weight: 500;
    transition: var(--admin-transition);
}

.pagination-btn:hover {
    background: #fff4d8;
    border-color: var(--admin-accent);
}

.pagination-btn.active {
    background: var(--admin-accent);
    color: white;
    border-color: var(--admin-accent);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: rgba(255, 253, 248, 0.96);
    border-radius: var(--admin-border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-lg);
}

.modal-content.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--admin-text-primary);
    font-family: Georgia, "Times New Roman", serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--admin-text-muted);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--admin-transition);
}

.modal-close:hover {
    color: var(--admin-text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-details h3 {
    margin: 1rem 0 0.5rem;
    color: var(--admin-text-primary);
}

.user-details p {
    margin: 0.25rem 0;
    color: var(--admin-text-secondary);
}

/* ============================================================
   TOASTS & NOTIFICATIONS
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--admin-text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--admin-border-radius);
    box-shadow: var(--admin-shadow-lg);
    min-width: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--admin-transition);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: var(--admin-success);
}

.toast-error {
    background: var(--admin-error);
}

.toast-warning {
    background: var(--admin-accent);
    color: var(--admin-text-primary);
}

.toast-info {
    background: var(--admin-primary-light);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--admin-border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--admin-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--admin-accent);
    color: var(--admin-text-primary);
    border: 1px solid var(--admin-accent);
}

.btn-primary:hover {
    background: #c68824;
    border-color: #c68824;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(217, 154, 43, 0.2);
}

.btn-secondary {
    background: rgba(23, 34, 53, 0.08);
    color: var(--admin-text-primary);
    border: 1px solid var(--admin-border);
}

.btn-secondary:hover {
    background: rgba(23, 34, 53, 0.12);
    border-color: var(--admin-border);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--admin-error);
    color: white;
    border: 1px solid var(--admin-error);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-spinner {
    display: inline-block;
}

/* ============================================================
   IMAGE UPLOAD
   ============================================================ */

.image-upload-zone {
    border: 2px dashed var(--admin-accent);
    border-radius: var(--admin-border-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--admin-transition);
    background: var(--admin-cream);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-zone:hover {
    border-color: var(--admin-accent);
    background: #fff4d8;
}

.image-upload-zone.drag-over {
    border-color: var(--admin-accent);
    background: #fff4d8;
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--admin-text-muted);
    margin-bottom: 0.5rem;
}

.upload-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--admin-text-primary);
}

.upload-btn {
    background: none;
    border: none;
    color: var(--admin-primary-light);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 800;
    padding: 0;
    font-size: 0.95rem;
    transition: var(--admin-transition);
}

.upload-btn:hover {
    color: var(--admin-success);
}

.upload-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.image-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: var(--admin-border-radius);
    object-fit: contain;
    box-shadow: var(--admin-shadow-md);
}

.remove-image-btn {
    background: var(--admin-error);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--admin-transition);
}

.remove-image-btn:hover {
    background: #dc2626;
}

/* ============================================================
   ADMIN CONTROL TABS
   ============================================================ */

.admin-control-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--admin-text-secondary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--admin-transition);
    text-decoration: none;
}

.admin-control-tab:hover {
    color: var(--admin-text-primary);
}

.admin-control-tab.active {
    color: var(--admin-accent);
    border-bottom-color: var(--admin-accent);
}

.admin-control-content {
    display: none;
}

.admin-control-content.active {
    display: block;
}

/* ============================================================
   MODAL QR CODE DISPLAY
   ============================================================ */

.qr-display-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.qr-image-container {
    text-align: center;
}

.qr-image-container img {
    max-width: 150px;
    border-radius: var(--admin-border-radius);
    background: var(--admin-white);
    padding: 8px;
}

.qr-image-label {
    font-size: 0.85rem;
    color: var(--admin-text-secondary);
    margin-top: 0.5rem;
}

.qr-image-link {
    color: var(--admin-primary-light);
    text-decoration: none;
}

.qr-image-link:hover {
    text-decoration: underline;
}

.qr-info-wrapper {
    flex: 1;
}

.qr-info-title {
    font-size: 0.95rem;
    color: var(--admin-text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qr-info-description {
    font-size: 0.85rem;
    color: var(--admin-text-secondary);
    margin-bottom: 1rem;
}

.manage-users-container {
    background: var(--admin-light);
    border-radius: var(--admin-border-radius);
    padding: 1rem;
}

.manage-users-form {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--admin-border);
}

.manage-users-form.active {
    display: block;
}

.manage-users-form-box {
    background: var(--admin-white);
    padding: 1.5rem;
    border-radius: var(--admin-border-radius);
    margin-top: 1rem;
    border: 1px solid var(--admin-border);
}

.user-type-helper {
    font-size: 0.85rem;
    color: var(--admin-text-secondary);
    margin-top: 0.5rem;
}

.admin-checkboxes-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--admin-border);
    padding: 1rem;
    border-radius: var(--admin-border-radius);
    background: var(--admin-cream);
}

.admin-checkboxes-loading {
    color: var(--admin-text-muted);
}

.current-assignments-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--admin-border);
}

.current-assignments-container h3 {
    margin-bottom: 1rem;
}

.current-assignments-box {
    background: var(--admin-light);
    padding: 1rem;
    border-radius: var(--admin-border-radius);
    min-height: 100px;
}

.assignments-loading {
    color: var(--admin-text-muted);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-nav {
        padding: 0 1rem;
    }

    .admin-content {
        padding: 1rem;
    }

    #eventSelectorBar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    #eventSelector {
        min-width: 100%;
    }

    #eventInfo {
        margin-left: 0;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-row-actions {
        min-width: 8rem;
    }

    .modal-content {
        max-width: 100%;
    }

    .toast {
        min-width: 280px;
    }

    .qr-display-wrapper {
        flex-direction: column;
    }

    .action-box {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.2rem;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .admin-table th {
        font-size: 0.8rem;
    }

    .admin-table td {
        font-size: 0.85rem;
    }

    .btn-small {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    #eventSelectorBar {
        padding: 0.75rem;
    }

    #eventSelector {
        min-width: 200px;
        font-size: 0.9rem;
    }
}
