/* ======================================================
   SALÓN DE EVENTOS — Estilos globales
   ====================================================== */

:root {
    --sidebar-w: 240px;
    --topbar-h: 58px;
    --primary:   #0d6efd;
    --sidebar-bg: #1a1f36;
    --sidebar-hover: #252d4a;
    --sidebar-active: #0d6efd;
    --body-bg: #f0f2f5;
}

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

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--body-bg);
    color: #212529;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100%;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform .3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    letter-spacing: .3px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: .75rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .72rem 1.25rem;
    color: #a8b0c8;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}

.sidebar-nav a:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(13,110,253,.15);
    color: #6ea8fe;
    border-left-color: var(--sidebar-active);
}

.sidebar-nav a i { font-size: 1rem; min-width: 1.1rem; }

/* Footer del sidebar */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: .85rem;
    flex-shrink: 0;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    color: #fc8181;
    text-decoration: none;
    border-radius: .5rem;
    font-size: .85rem;
    transition: background .2s, color .2s;
    width: 100%;
    margin-top: .5rem;
}

.btn-logout:hover {
    background: rgba(252,129,129,.15);
    color: #fc8181;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    z-index: 1040;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.topbar-title {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
}

.titulo-publico {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .titulo-publico { font-size: .78rem; }
}

.topbar-right { margin-left: auto; }

/* ===== CONTENT ===== */
.content {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    padding: 2rem;
    min-height: calc(100vh - var(--topbar-h));
}

.content-publico {
    margin-left: 0;
    margin-top: 0;
    min-height: 100vh;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.card-header {
    border-radius: 1rem 1rem 0 0 !important;
    font-weight: 600;
}

/* ===== TABLAS ===== */
.table th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

/* ===== BADGES de estado ===== */
.badge-pendiente  { background: #ffc107; color: #000; }
.badge-aprobada   { background: #198754; color: #fff; }
.badge-rechazada  { background: #dc3545; color: #fff; }

/* ===== BOTONES ===== */
.btn-sm { margin: 0 2px 2px 0; }
.btn-sm:hover { transform: translateY(-1px); }

/* ===== SALON CARDS (grid de salones) ===== */
.salon-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.salon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12) !important;
}
.salon-card .salon-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}
.salon-card .badge-estado-activo   { background: #d1fae5; color: #065f46; }
.salon-card .badge-estado-inactivo { background: #fee2e2; color: #991b1b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }

    .topbar {
        left: 0;
        padding: 0 1rem;
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* ===== FORMULARIOS ===== */
.form-label { font-weight: 600; font-size: .88rem; }
.form-control, .form-select {
    border-radius: .6rem;
    border: 1.5px solid #dee2e6;
    font-size: .92rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* ===== ALERTAS FLASH ===== */
.alert { border-radius: .75rem; }

/* ===== PAGE TITLE ===== */
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 0;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; }
