/* ========================================
   ADMIN PANEL STYLES - EXCENTRICA THEME
   Colores: Violeta, Fucsia, Dorado
   ======================================== */

/* ===== VARIABLES ADMIN ===== */
:root {
    /* Fondos Excentrica */
    --admin-bg: #0F001D;
    --admin-bg-secondary: #170127;
    --admin-bg-card: #1E0833;
    --admin-bg-hover: #2A0B44;
    
    /* Texto */
    --admin-text: #EDE6F2;
    --admin-text-secondary: #B7A9C4;
    --admin-text-muted: #7A6A8F;
    
    /* Colores principales */
    --admin-primary: #C81DFF;
    --admin-primary-hover: #E24BFF;
    --admin-primary-dark: #960FC6;
    --admin-brand: #EFB020;
    
    /* Bordes */
    --admin-border: #4B086A;
    --admin-border-glow: #960FC6;
    
    /* Estados */
    --admin-success: #1ED760;
    --admin-success-bg: rgba(30, 215, 96, 0.15);
    --admin-warning: #F39C12;
    --admin-warning-bg: rgba(243, 156, 18, 0.15);
    --admin-error: #E1065C;
    --admin-error-bg: rgba(225, 6, 92, 0.15);
    --admin-info: #3498DB;
    --admin-info-bg: rgba(52, 152, 219, 0.15);
}

/* ===== LAYOUT ===== */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== SIDEBAR ===== */
.admin-sidebar {
    width: 260px;
    background: var(--admin-bg-secondary);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
}

.admin-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar-header .logo-img {
    height: 32px;
}

.admin-sidebar-header .brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--admin-brand);
}

.admin-badge {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--admin-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    background: var(--admin-bg-hover);
    color: var(--admin-text);
    border-left-color: var(--admin-primary);
}

.admin-nav-item.active {
    background: linear-gradient(90deg, rgba(200, 29, 255, 0.15) 0%, transparent 100%);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
}

.admin-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--admin-border);
}

.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--admin-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.admin-sidebar-footer a:hover {
    color: var(--admin-primary);
}

/* ===== MAIN CONTENT ===== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .admin-main {
        margin-left: 0;
    }
}

/* ===== TOP BAR ===== */
.admin-topbar {
    background: var(--admin-bg-secondary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-menu-toggle {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    cursor: pointer;
}

.admin-menu-toggle:hover {
    background: var(--admin-bg-hover);
    border-color: var(--admin-primary);
}

@media (max-width: 768px) {
    .admin-menu-toggle {
        display: flex;
    }
}

.admin-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    color: var(--admin-text);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-name {
    font-weight: 500;
    color: var(--admin-text-secondary);
    font-size: 0.875rem;
}

/* ===== CONTENT AREA ===== */
.admin-content {
    padding: 1.5rem;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--admin-border-glow);
    box-shadow: 0 4px 20px rgba(200, 29, 255, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon-primary {
    background: rgba(200, 29, 255, 0.15);
    color: var(--admin-primary);
}

.stat-icon-secondary {
    background: rgba(239, 176, 32, 0.15);
    color: var(--admin-brand);
}

.stat-icon-success {
    background: var(--admin-success-bg);
    color: var(--admin-success);
}

.stat-icon-warning {
    background: var(--admin-warning-bg);
    color: var(--admin-warning);
}

.stat-icon-info {
    background: var(--admin-info-bg);
    color: var(--admin-info);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--admin-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    margin-top: 0.25rem;
}

/* ===== ADMIN SECTIONS ===== */
.admin-section {
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--admin-text);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--admin-text-secondary);
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    background: var(--admin-bg-hover);
    border-color: var(--admin-primary);
    color: var(--admin-text);
    transform: translateY(-2px);
}

.quick-action-card svg {
    width: 28px;
    height: 28px;
    color: var(--admin-primary);
}

.quick-action-card span {
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
}

/* ===== ADMIN TABLE ===== */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-text-muted);
    background: var(--admin-bg);
}

.admin-table tbody tr {
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--admin-bg-hover);
}

.admin-table td {
    color: var(--admin-text-secondary);
}

.admin-table .table-empty {
    text-align: center;
    padding: 2rem;
    color: var(--admin-text-muted);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--admin-primary-hover) 0%, var(--admin-primary) 100%);
    box-shadow: 0 4px 15px rgba(200, 29, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.btn-secondary:hover {
    border-color: var(--admin-primary);
    background: var(--admin-bg-hover);
}

.btn-danger {
    background: var(--admin-error);
    color: white;
}

.btn-danger:hover {
    background: #FF2A7A;
    box-shadow: 0 4px 15px rgba(225, 6, 92, 0.3);
}

.btn-success {
    background: var(--admin-success);
    color: #0F001D;
}

.btn-success:hover {
    background: #2AF075;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(200, 29, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--admin-text-muted);
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Autofill fix */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--admin-text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--admin-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== ACTIVITY LIST ===== */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--admin-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-icon-user {
    background: rgba(200, 29, 255, 0.15);
    color: var(--admin-primary);
}

.activity-icon-news {
    background: var(--admin-info-bg);
    color: var(--admin-info);
}

.activity-icon-product {
    background: var(--admin-success-bg);
    color: var(--admin-success);
}

.activity-icon-event {
    background: var(--admin-warning-bg);
    color: var(--admin-warning);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    color: var(--admin-text-secondary);
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.status-active {
    background: var(--admin-success-bg);
    color: var(--admin-success);
}

.status-badge.status-pending {
    background: var(--admin-warning-bg);
    color: var(--admin-warning);
}

.status-badge.status-rejected,
.status-badge.status-inactive {
    background: var(--admin-error-bg);
    color: var(--admin-error);
}

.role-badge {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
}

.role-badge.role-editor {
    background: rgba(239, 176, 32, 0.15);
    color: var(--admin-brand);
}

.role-badge.role-user {
    background: var(--admin-bg);
    color: var(--admin-text-muted);
}

/* ===== USER ROW ===== */
.user-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-row .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-weight: 500;
    color: var(--admin-text);
}

.user-info small {
    color: var(--admin-text-muted);
    font-size: 0.75rem;
}

/* ===== FILTERS ===== */
.admin-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-filters .form-input,
.admin-filters .form-select {
    min-width: 180px;
    flex: 1;
    max-width: 250px;
}

/* ===== PAGINATION ===== */
.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-border);
    margin-top: 1rem;
}

.pagination-info {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.pagination-buttons {
    display: flex;
    gap: 0.5rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 0, 29, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--admin-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--admin-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--admin-error);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== IMAGE UPLOAD ===== */
.admin-image-upload {
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-image-upload:hover {
    border-color: var(--admin-primary);
    background: rgba(200, 29, 255, 0.05);
}

.admin-image-upload.has-image {
    padding: 0;
    border: none;
}

.admin-image-upload img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.admin-image-upload svg {
    width: 48px;
    height: 48px;
    color: var(--admin-text-muted);
    margin-bottom: 0.75rem;
}

.admin-image-upload p {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ===== CHART PLACEHOLDER ===== */
.chart-container {
    height: 300px;
    background: var(--admin-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
    border: 1px solid var(--admin-border);
}

/* ===== ALERTS ===== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--admin-success-bg);
    border: 1px solid var(--admin-success);
    color: var(--admin-success);
}

.alert-error {
    background: var(--admin-error-bg);
    border: 1px solid var(--admin-error);
    color: var(--admin-error);
}

.alert-warning {
    background: var(--admin-warning-bg);
    border: 1px solid var(--admin-warning);
    color: var(--admin-warning);
}

.alert-info {
    background: var(--admin-info-bg);
    border: 1px solid var(--admin-info);
    color: var(--admin-info);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--admin-border);
    border-top-color: var(--admin-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--admin-text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--admin-text-secondary);
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--admin-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--admin-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--admin-primary-dark);
}

/* ===== INPUT GENERICO (para clases .input) ===== */
.input {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(200, 29, 255, 0.15);
}

.input::placeholder {
    color: var(--admin-text-muted);
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--admin-text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--admin-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== BOTONES ADICIONALES ===== */
.btn-ghost {
    background: transparent;
    color: var(--admin-text-secondary);
    border: none;
}

.btn-ghost:hover {
    background: var(--admin-bg-hover);
    color: var(--admin-text);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-secondary);
}

.btn-outline:hover {
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    background: rgba(200, 29, 255, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--admin-bg-hover);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== MODAL SYSTEM ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 0, 29, 0.9);
}

.modal .modal-content {
    position: relative;
    z-index: 1;
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-sm {
    max-width: 400px !important;
}

.modal-lg {
    max-width: 700px !important;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--admin-bg);
    border-radius: 10px;
    border: 1px solid var(--admin-border);
    width: fit-content;
}

.tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--admin-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--admin-text);
    background: var(--admin-bg-hover);
}

.tab.active {
    background: var(--admin-primary);
    color: white;
}

/* ===== SEARCH INPUT WRAPPER ===== */
.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-muted);
    pointer-events: none;
}

.search-input-wrapper .input {
    padding-left: 2.75rem;
}

/* ===== FORM ROW ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== AD PREVIEW ===== */
.ad-preview {
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-preview p {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
}

.ad-preview iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* ===== SIDEBAR VARIANTS (para eventos.html) ===== */
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo img {
    height: 32px;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--admin-text);
    cursor: pointer;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-item,
.sidebar-footer .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--admin-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item:hover,
.sidebar-footer .nav-item:hover {
    background: var(--admin-bg-hover);
    color: var(--admin-text);
    border-left-color: var(--admin-primary);
}

.sidebar-nav .nav-item.active {
    background: linear-gradient(90deg, rgba(200, 29, 255, 0.15) 0%, transparent 100%);
    color: var(--admin-primary);
    border-left-color: var(--admin-primary);
}

.sidebar-nav .nav-item svg,
.sidebar-footer .nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 0;
    border-top: 1px solid var(--admin-border);
}

/* ===== TOPBAR VARIANTS (para eventos.html) ===== */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-left h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-user span {
    color: var(--admin-text-secondary);
    font-size: 0.875rem;
}

/* ===== FILTER GROUP (para eventos.html) ===== */
.filter-group {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
}

.filter-group .form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.filter-group .form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(200, 29, 255, 0.15);
}

.filter-group .form-control::placeholder {
    color: var(--admin-text-muted);
}

/* ===== EVENT CARD GRID ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.event-card:hover {
    border-color: var(--admin-border-glow);
    box-shadow: 0 4px 20px rgba(200, 29, 255, 0.1);
}

.event-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--admin-bg);
}

.event-card-body {
    padding: 1rem;
}

.event-card-title {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
}

.event-card-meta {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.75rem;
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-filters {
        flex-direction: column;
    }
    
    .admin-filters .form-input,
    .admin-filters .form-select,
    .admin-filters .input {
        max-width: 100%;
    }
    
    .admin-pagination {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .filter-group {
        max-width: 100%;
    }
}

/* ===== FORM CONTROL GLOBAL ===== */
.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(200, 29, 255, 0.15);
}

.form-control::placeholder {
    color: var(--admin-text-muted);
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--admin-text) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--admin-bg) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B7A9C4' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* ===== STATS MINI ===== */
.stats-mini {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-mini {
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.stat-mini-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-primary);
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MODAL LARGE ===== */
.modal-large {
    max-width: 800px !important;
    width: 95% !important;
}

/* ===== MODAL CLOSE BUTTON ===== */
.modal-close {
    background: none;
    border: none;
    color: var(--admin-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--admin-error);
}

/* ===== CHECKBOX SWITCH ===== */
.switch-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    width: 44px;
    height: 24px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--admin-text-muted);
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.switch-input:checked + .switch-slider {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.switch-input:checked + .switch-slider::before {
    transform: translateX(20px);
    background: white;
}

/* ===== IMAGE PREVIEW ===== */
.image-preview {
    width: 100%;
    height: 200px;
    background: var(--admin-bg);
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.image-preview:hover {
    border-color: var(--admin-primary);
    background: rgba(200, 29, 255, 0.05);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview svg {
    width: 48px;
    height: 48px;
    color: var(--admin-text-muted);
    margin-bottom: 0.5rem;
}

.image-preview span {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
}

/* ===== CONFIRMATION MODAL ===== */
.confirm-modal .modal-content {
    max-width: 400px;
    text-align: center;
}

.confirm-modal .modal-body {
    padding: 2rem;
}

.confirm-modal .modal-body svg {
    width: 64px;
    height: 64px;
    color: var(--admin-warning);
    margin-bottom: 1rem;
}

.confirm-modal h3 {
    margin-bottom: 0.5rem;
}

.confirm-modal p {
    color: var(--admin-text-secondary);
    margin-bottom: 1.5rem;
}

.confirm-modal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--admin-bg-card);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--admin-text);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===== IMAGE UPLOAD AREA ===== */
.image-upload-area {
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--admin-bg-secondary);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: var(--admin-primary);
    background: rgba(200, 29, 255, 0.05);
}

.upload-placeholder {
    color: var(--admin-text-muted);
}

.upload-placeholder svg {
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.upload-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.image-preview {
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.image-preview .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

/* Form row for side-by-side inputs */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}
