/* Gadzooks Admin Dashboard - Reusable Component Styles */

/* ============================================================================
   BUTTONS
   ============================================================================ */
.action-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(91, 141, 239, 0.25), 0 4px 16px rgba(91, 141, 239, 0.15);
    letter-spacing: 0.01em;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 141, 239, 0.35), 0 8px 24px rgba(91, 141, 239, 0.2);
    filter: brightness(1.05);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-emerald) 100%);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

.action-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
}

.action-btn.danger {
    background: linear-gradient(135deg, var(--accent-rose) 0%, #f43f5e 100%);
    box-shadow: 0 4px 12px rgba(251, 113, 133, 0.3);
}

.action-btn.danger:hover {
    box-shadow: 0 6px 20px rgba(251, 113, 133, 0.4);
}

.action-btn.warning {
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-orange) 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.action-btn.warning:hover {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.action-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.action-btn:disabled {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.action-btn:disabled:hover {
    transform: none;
}

#logout-btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-rose) 0%, #f43f5e 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.25), 0 4px 16px rgba(251, 113, 133, 0.15);
}

#logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(251, 113, 133, 0.35), 0 8px 24px rgba(251, 113, 133, 0.2);
    filter: brightness(1.05);
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-bright);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: rgba(19, 22, 28, 0.5);
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(19, 22, 28, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15),
                0 2px 8px rgba(91, 141, 239, 0.2),
                inset 0 1px 3px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.search-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: rgba(19, 22, 28, 0.5);
    color: var(--text-primary);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(19, 22, 28, 0.7);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: rgba(19, 22, 28, 0.5);
    color: var(--text-primary);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}

.date-input {
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: rgba(19, 22, 28, 0.5);
    color: var(--text-primary);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.date-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}

/* Custom Select Arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.checkbox-item {
    white-space: nowrap;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.checkbox-item .checkbox-label {
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    display: inline;
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

/* ============================================================================
   TABLES
   ============================================================================ */
.table-container {
    background: linear-gradient(135deg,
        rgba(19, 22, 28, 0.7) 0%,
        rgba(33, 38, 47, 0.85) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(91, 141, 239, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(135deg,
        rgba(33, 38, 47, 0.95) 0%,
        rgba(40, 46, 56, 0.95) 100%);
    padding: 1.125rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-bright);
    border-bottom: 2px solid rgba(91, 141, 239, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.075em;
    position: relative;
}

th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--accent-cyan) 0%,
        var(--accent-primary) 50%,
        var(--accent-purple) 100%);
    opacity: 0.5;
}

td {
    padding: 1.125rem 1rem;
    border-bottom: 1px solid rgba(91, 141, 239, 0.1);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    line-height: 1.6;
}

tbody tr {
    transition: all var(--transition-base);
    position: relative;
}

tbody tr:hover {
    background: linear-gradient(90deg,
        rgba(91, 141, 239, 0.1) 0%,
        rgba(167, 139, 250, 0.05) 50%,
        transparent 100%);
    border-image: linear-gradient(180deg,
        var(--accent-cyan),
        var(--accent-primary),
        var(--accent-purple)) 1;
}

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

.mini-table {
    width: 100%;
    font-size: 14px;
    margin-top: 10px;
}

.mini-table th {
    background: var(--bg-tertiary);
    padding: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mini-table td {
    padding: 8px;
    font-size: 12px;
    color: var(--text-primary);
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-fast);
}

.badge-user {
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.2), rgba(91, 141, 239, 0.3));
    color: var(--accent-primary);
    border-color: rgba(91, 141, 239, 0.4);
    box-shadow: 0 2px 8px rgba(91, 141, 239, 0.2);
}

.badge-admin {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(167, 139, 250, 0.3));
    color: var(--accent-purple);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.2);
}

.badge-active {
    background: linear-gradient(135deg, rgba(77, 222, 128, 0.2), rgba(77, 222, 128, 0.3));
    color: var(--accent-secondary);
    border-color: rgba(77, 222, 128, 0.4);
    box-shadow: 0 2px 8px rgba(77, 222, 128, 0.2);
}

.badge-inactive {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.2), rgba(251, 113, 133, 0.3));
    color: var(--accent-rose);
    border-color: rgba(251, 113, 133, 0.4);
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.2);
}

.badge-success {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0.3));
    color: var(--accent-teal);
    border-color: rgba(45, 212, 191, 0.4);
    box-shadow: 0 2px 8px rgba(45, 212, 191, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.2), rgba(255, 140, 66, 0.3));
    color: var(--accent-orange);
    border-color: rgba(255, 140, 66, 0.4);
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.2);
}

.badge-error {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.2), rgba(251, 113, 133, 0.3));
    color: var(--accent-rose);
    border-color: rgba(251, 113, 133, 0.4);
    box-shadow: 0 2px 8px rgba(251, 113, 133, 0.2);
}

.badge-auth {
    background: linear-gradient(135deg, rgba(232, 121, 249, 0.2), rgba(232, 121, 249, 0.3));
    color: var(--accent-fuchsia);
    border-color: rgba(232, 121, 249, 0.4);
    box-shadow: 0 2px 8px rgba(232, 121, 249, 0.2);
}

.badge-api {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.3));
    color: var(--accent-cyan);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.2);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background-color: #3a3d41;
    color: #b8b8b8;
}

.status-badge.status-processing,
.status-badge.status-in_progress {
    background-color: #0e639c;
    color: #ffffff;
}

.status-badge.status-completed {
    background-color: #0e5a0e;
    color: #4ec9b0;
}

.status-badge.status-failed,
.status-badge.status-error {
    background-color: #5a1e1e;
    color: #f48771;
}

.status-badge.status-retry,
.status-badge.status-error_retry {
    background-color: #5a4e1e;
    color: #d7ba7d;
}

.status-badge.status-rejected {
    background-color: #5a1e3e;
    color: #d16dc3;
}

.status-badge.status-active,
.status-badge.status-ready {
    background: var(--status-success-bg);
    color: #7fd14c;
}

.status-badge.status-building {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

.status-badge.status-unknown {
    background: var(--bg-input);
    color: #999;
}

.status-badge.status-ok {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-badge.status-disabled {
    background: #e0e0e0;
    color: #616161;
}

.status-badge.status-online {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-badge.status-offline {
    background: #ffcdd2;
    color: #c62828;
}

.status-badge.status-reviewed {
    background: #2196f3;
    color: #fff;
}

.status-badge.status-dismissed {
    background: #757575;
    color: #fff;
}

/* ============================================================================
   MODALS
   ============================================================================ */
#modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg,
        rgba(19, 22, 28, 0.97) 0%,
        rgba(33, 38, 47, 0.98) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(91, 141, 239, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(91, 141, 239, 0.2);
    z-index: 1001;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--accent-cyan) 0%,
        var(--accent-primary) 50%,
        var(--accent-purple) 100%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(91, 141, 239, 0.15);
    background: linear-gradient(135deg,
        rgba(33, 38, 47, 0.7) 0%,
        rgba(40, 46, 56, 0.7) 100%);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.modal-close,
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-close:hover,
.close-btn:hover {
    color: var(--text-bright);
}

.modal-content,
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    color: var(--text-primary);
    line-height: 1.65;
}

.modal-actions,
.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(91, 141, 239, 0.15);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: linear-gradient(135deg,
        rgba(19, 22, 28, 0.6) 0%,
        rgba(33, 38, 47, 0.6) 100%);
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.page-btn {
    padding: 0.625rem 1rem;
    background: rgba(19, 22, 28, 0.6);
    border: 1px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.page-btn:hover {
    background: rgba(91, 141, 239, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-bright);
    transform: translateY(-1px);
}

.page-number {
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.page-number.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(91, 141, 239, 0.3);
}

.page-ellipsis {
    padding: 8px;
    color: var(--text-muted);
}

/* ============================================================================
   PAGE ACTIONS
   ============================================================================ */
.page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ============================================================================
   METRICS CARDS
   ============================================================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-primary);
}

.metric-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.metric-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--accent-gold);
}

.metric-change {
    font-size: 14px;
    color: var(--accent-teal);
    margin-top: 5px;
}

/* ============================================================================
   LOADING OVERLAY
   ============================================================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.spinner {
    width: 64px;
    height: 64px;
    border: 5px solid transparent;
    border-top: 5px solid var(--accent-cyan);
    border-right: 5px solid var(--accent-primary);
    border-bottom: 5px solid var(--accent-purple);
    border-left: 5px solid var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 40px rgba(91, 141, 239, 0.3),
                0 0 80px rgba(91, 141, 239, 0.15),
                inset 0 0 20px rgba(91, 141, 239, 0.1);
}

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

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.success {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(52, 211, 153, 0.95));
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3), 0 2px 8px rgba(45, 212, 191, 0.2);
}

.toast.error {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.95), rgba(244, 63, 94, 0.95));
    box-shadow: 0 8px 24px rgba(251, 113, 133, 0.3), 0 2px 8px rgba(251, 113, 133, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================================================
   ERROR MESSAGE
   ============================================================================ */
.error-message {
    color: var(--status-error);
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

/* ============================================================================
   GEOGRAPHIC CURATION MODAL
   ============================================================================ */
.geo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-modal-content {
    background-color: #1e1e1e;
    width: 90vw;
    height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.geo-modal-header {
    background-color: #2d3142;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3d41;
}

.geo-modal-header h2 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.5rem;
}

.geo-close-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.geo-close-btn:hover {
    color: #f39c12;
}

.geo-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.geo-map-container {
    width: 100%;
    height: 100%;
}

.geo-info-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(45, 49, 66, 0.95);
    padding: 1rem;
    border-radius: 8px;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.geo-info-panel h3 {
    margin: 0 0 1rem 0;
    color: #e0e0e0;
    font-size: 1.1rem;
    border-bottom: 2px solid #3a3d41;
    padding-bottom: 0.5rem;
}

.geo-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.geo-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 4px;
}

.geo-stat-label {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.geo-stat-value {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1rem;
}

.geo-stat-value.geo-stat-staged {
    color: #f39c12;
}

.geo-stat-value.geo-stat-completed {
    color: #27ae60;
}

.geo-stat-value.geo-stat-pending {
    color: #b8b8b8;
}

.geo-stat-value.geo-stat-inprogress {
    color: #3498db;
}

.geo-stat-value.geo-stat-failed {
    color: #e74c3c;
}

.geo-stat-value.geo-stat-retry {
    color: #f39c12;
}

.geo-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.geo-action-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.geo-action-btn:hover {
    background-color: #229954;
}

.geo-action-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.geo-result-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.geo-result-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.geo-result-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Marker styles */
.geo-marker {
    cursor: pointer;
    transition: transform 0.2s;
}

.geo-marker:hover {
    transform: scale(1.2);
}

.geo-marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.geo-marker-label {
    background-color: rgba(30, 30, 30, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    margin-top: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Status color coding for markers */
.marker-color-staged {
    background-color: #f39c12;
}

.marker-color-pending {
    background-color: #95a5a6;
}

.marker-color-in_progress {
    background-color: #3498db;
}

.marker-color-completed {
    background-color: #27ae60;
}

.marker-color-failed {
    background-color: #e74c3c;
}

.marker-color-error_retry {
    background-color: #e67e22;
}

.marker-color-rejected {
    background-color: #c0392b;
}
/* Curation Section Styles */

.curation-section {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.curation-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

.curation-stats {
    flex: 1;
}

.curation-stats p {
    margin: 0.3125rem 0;
    color: var(--text-secondary);
}

.curation-actions {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.status-breakdown {
    margin-top: 1rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.625rem;
    margin-top: 0.625rem;
}

.status-item {
    background-color: var(--bg-primary);
    padding: 0.625rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.status-item strong {
    color: var(--text-bright);
}

/* ============================================================================
   TWO-PANEL LAYOUT (List + Details)
   ============================================================================ */
.two-panel-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.panel {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

/* Selectable Card List */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selectable-card {
    padding: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-tertiary);
}

.selectable-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
}

.selectable-card.selected {
    border-color: var(--accent-primary);
    background: rgba(91, 141, 239, 0.1);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.selectable-card.disabled {
    opacity: 0.6;
}

.selectable-card h4 {
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-bright);
}

.selectable-card small {
    color: var(--text-muted);
}

.selectable-card .badges {
    display: flex;
    gap: 0.25rem;
}

/* Form Row (side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Inline checkbox in label */
.form-group label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* Settings Section (grouped form fields) */
.settings-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.settings-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-bright);
}

.settings-section > p {
    margin: 0 0 0.5rem 0;
    color: var(--text-muted);
}

/* Settings Row (label + input inline) */
.settings-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row label {
    flex: 1;
    color: var(--text-secondary);
}

.settings-row input[type="number"] {
    width: 100px;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: rgba(19, 22, 28, 0.5);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.settings-row input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(19, 22, 28, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}

.settings-row input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.settings-row small {
    color: var(--text-muted);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Preview Row (read-only label + value) */
.preview-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.preview-row:last-child {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* ============================================================================
   TAG INPUT (for product mappings, etc.)
   ============================================================================ */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1.5px solid rgba(91, 141, 239, 0.2);
    border-radius: var(--radius-md);
    background: rgba(19, 22, 28, 0.5);
    min-height: 2.75rem;
    align-items: center;
}

.tag-input-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.15);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(91, 141, 239, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-bright);
    white-space: nowrap;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.125rem;
    transition: color var(--transition-fast);
}

.tag-remove:hover {
    color: var(--accent-rose);
}

.tag-input {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.25rem;
    outline: none;
}

.tag-input::placeholder {
    color: var(--text-muted);
}

/* ============================================================================
   STATS GRID
   ============================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ============================================================================
   USER USAGE DISPLAY
   ============================================================================ */
.usage-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
}

.usage-row:last-of-type {
    border-bottom: none;
}

.usage-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.usage-label small {
    opacity: 0.7;
}

.usage-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-bright);
    text-align: right;
}

.usage-bar {
    grid-column: 1 / -1;
    height: 0.375rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-primary) 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.feature-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

.feature-chip.enabled {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.feature-chip.disabled {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-primary);
    text-decoration: line-through;
}

/* ============================================================================
   ENGAGEMENT COUNTS (stacked in table cell)
   ============================================================================ */
.engagement-counts {
    line-height: 1.4;
}

.engagement-counts div {
    white-space: nowrap;
}

.engagement-counts small {
    display: inline-block;
    width: 3rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
}