/* ===== ADMIN CSS — Agenda VRIN (MINIMALIST & FUTURISTIC) ===== */

/* Variables */
:root {
    --primary: #C20E1A;
    /* Univalle Red */
    --primary-dark: #841F1C;
    --primary-light: #FFEBEC;

    --sidebar-bg: #0F172A;
    /* Deep Slate/Navy */
    --sidebar-hover: rgba(255, 255, 255, 0.05);
    --sidebar-active: var(--primary);
    --sidebar-w: 260px;

    --bg: #F8FAFC;
    /* Modern background */
    --surface: #ffffff;
    --border: #E2E8F0;

    --text: #0F172A;
    --text-muted: #64748B;

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --radius: 12px;
    --radius-lg: 20px;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.admin-body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ===== AUTH ===== */
#auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d23 0%, #2d3748 50%, #1a1d23 100%);
    padding: 1rem;
}

.auth-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.auth-logo h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--text);
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 28, 37, 0.1);
}

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

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper input {
    padding-right: 2.5rem;
    width: 100%;
}

.toggle-pwd {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.2rem;
}

.toggle-pwd:hover {
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alert */
.alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
    color: #c53030;
}

/* Status cards */
.status-card {
    text-align: center;
}

.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.status-icon.pending {
    background: #fef3c7;
    color: var(--warning);
}

.status-icon.blocked {
    background: #fff5f5;
    color: var(--danger);
}

.status-card h2 {
    margin-bottom: 0.5rem;
}

.status-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
}

.btn-primary.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--transition);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline-sm {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition);
}

.btn-outline-sm:hover {
    background: var(--primary);
    color: #fff;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0;
    font-family: 'Roboto', sans-serif;
    transition: color var(--transition);
}

.btn-back:hover {
    color: var(--primary);
}

.icon-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== LAYOUT ===== */
#app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand img {
    height: 36px;
    object-fit: contain;
}

.sidebar-brand span {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    margin: 0.1rem 0.75rem;
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 14, 26, 0.3);
}

.nav-item i {
    font-size: 1.15rem;
}

.nav-badge {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: auto;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-meta span:first-child {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-tag {
    font-size: 0.68rem;
    color: var(--primary);
    background: rgba(232, 28, 37, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 2px;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    padding: 0.4rem;
    transition: color var(--transition);
}

.logout-btn:hover {
    color: var(--primary);
}

/* Main content */
#main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.topbar h2 {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Sections */
.view-section {
    padding: 1.5rem;
    flex: 1;
}

.view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.view-header h3 {
    font-size: 1.1rem;
}

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

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.accent-green {
    border-bottom: 3px solid var(--success);
}

.stat-card.accent-red {
    border-bottom: 3px solid var(--danger);
}

.stat-card.accent-blue {
    border-left-color: var(--info);
}

.stat-card.accent-orange {
    border-left-color: var(--warning);
}

.stat-icon {
    font-size: 2rem;
}

.accent-green .stat-icon {
    color: var(--success);
}

.accent-red .stat-icon {
    color: var(--danger);
}

.accent-blue .stat-icon {
    color: var(--info);
}

.accent-orange .stat-icon {
    color: var(--warning);
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Dashboard grid */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.dash-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dash-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Recent list items */
.recent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

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

.recent-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
}

.recent-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    flex: 1;
    font-family: 'Roboto', sans-serif;
}

.search-box i {
    color: var(--text-muted);
}

/* Table */
.table-wrap {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    background: var(--bg);
}

.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fafbfc;
}

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

.loading-td {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem !important;
}

/* Badges */
/* Badges */
.badge-abierto {
    background: #DCFCE7;
    color: #15803D;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-cerrado {
    background: #FEE2E2;
    color: #B91C1C;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-pendiente {
    background: #fef3c7;
    color: #92400e;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-editor {
    background: #bee3f8;
    color: #2c5282;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-bloqueado {
    background: #fed7d7;
    color: #9b2c2c;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Action buttons */
.btn-edit,
.btn-delete {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-edit:hover {
    border-color: var(--info);
    color: var(--info);
}

.btn-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Form */
.event-form {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.span-2 {
    grid-column: 1 / -1;
}

.date-input {
    cursor: pointer;
}

.hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Image upload */
.image-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    background: var(--bg);
}

.image-upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.image-upload-zone img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.upload-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.upload-placeholder i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.upload-placeholder span {
    font-size: 0.78rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Users */
.tabs-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-badge {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    padding: 0.05rem 0.4rem;
    font-size: 0.7rem;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-row {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.user-row:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.user-row .user-avatar {
    background: var(--info);
}

.user-row-info {
    flex: 1;
}

.user-row-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-row-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-row-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-approve,
.btn-reject {
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: opacity var(--transition);
}

.btn-approve {
    background: #c6f6d5;
    color: #276749;
}

.btn-reject {
    background: #fed7d7;
    color: #9b2c2c;
}

.btn-approve:hover {
    opacity: 0.8;
}

.btn-reject:hover {
    opacity: 0.8;
}

.empty-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 2rem;
}

/* Sidebar collapsed (mobile) */
.sidebar.collapsed {
    transform: translateX(-100%);
}

#main-content.full {
    margin-left: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 90;
    /* Just below sidebar (100) */
}

/* Hide toggle btn on desktop */
.mobile-toggle-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle-btn {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
    }

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

    .form-group.span-2 {
        grid-column: 1;
    }

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

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

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Custom checkbox group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Time Range Group */
.time-range-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-range-group input.time-picker {
    flex: 1;
    text-align: center;
}

.time-range-group span {
    font-weight: 500;
    color: var(--text-muted);
}

.readonly-input {
    background: #f1f5f9 !important;
    cursor: not-allowed;
    font-weight: 500;
}

/* ===== FORM NOTE (required fields) ===== */
.form-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
}

.req-star {
    color: #DC2626;
    font-weight: 800;
    font-size: 0.9rem;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== AUTO BADGE (mes, duracion) ===== */
.auto-field-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.auto-label {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.auto-badge-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    background: rgba(194, 14, 26, 0.05);
    border: 1.5px solid rgba(194, 14, 26, 0.18);
    border-radius: 8px;
    min-height: 42px;
}

.auto-icon {
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.auto-badge {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

/* ===== NEW EVENT BUTTON (prominent CTA) ===== */
.btn-new-event {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #841F1C 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(194, 14, 26, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-new-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(194, 14, 26, 0.4);
}

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

.btn-new-event .ph-plus-circle {
    font-size: 1.3rem;
}

.cta-arrow {
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.btn-new-event:hover .cta-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.dash-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Events toolbar new button */
.btn-new-event-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #841F1C 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(194, 14, 26, 0.25);
}

.btn-new-event-toolbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 14, 26, 0.35);
}

/* ===== DASHBOARD EVENTS CARD ===== */
.dash-events-card {
    grid-column: 1 / -1;
}

.recent-event-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg);
}

.recent-event-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(3px);
    box-shadow: var(--shadow);
}

.recent-event-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.recent-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C20E1A, #5A0008);
    color: white;
    font-size: 1.25rem;
}

.recent-event-info {
    flex: 1;
    min-width: 0;
}

.recent-event-meta {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.recent-event-badges {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.recent-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.recent-event-card:hover .recent-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* ===== FASE DE GESTIÓN BADGES ===== */
.badge-fase {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-fase-publicado {
    background: #DCFCE7;
    color: #166534;
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-fase-archivado {
    background: #F1F5F9;
    color: #475569;
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-fase-estructura {
    background: #FEF9C3;
    color: #854D0E;
    padding: 0.18rem 0.6rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===== ROLE BADGES for user management ===== */
.rol-tag-inline {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rol-superadmin {
    background: rgba(194, 14, 26, 0.1);
    color: var(--primary);
}

.rol-publicador {
    background: rgba(59, 130, 246, 0.1);
    color: #1D4ED8;
}

.rol-editor {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
}

/* Role selector in user mgmt */
.sel-rol {
    padding: 0.35rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s;
}

.sel-rol:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-save-rol {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-save-rol:hover {
    opacity: 0.85;
}