/* admin/css/admin_style.css */

/* --- Estilos para la página de Login --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-container {
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-icon-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffc107;
}

.form-floating > .form-control {
    border-left: 4px solid #ffc107;
}

/* --- Estilos para el Dashboard --- */
body {
    background-color: #f8f9fa;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #212529;
    color: #fff;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #343a40;
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 50%;
}

.sidebar-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-nav {
    padding: 0;
    list-style: none;
}

.sidebar-item.active .sidebar-link {
    background-color: #343a40;
    border-left: 3px solid #ffc107;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: #adb5bd;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-link:hover {
    background-color: #343a40;
    color: #fff;
}

.sidebar-link i {
    width: 20px;
    margin-right: 1rem;
    text-align: center;
}

/* Contenido Principal */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 10;
}

.user-dropdown span {
    font-weight: 600;
}

.task-panel {
    flex-grow: 1;
    background-color: #f8f9fa;
}

/* Estilos para modo responsive del sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        height: 100%;
        margin-left: -260px;
        z-index: 1030;
    }
    .sidebar.toggled {
        margin-left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 1029;
        display: none;
    }
     .sidebar.toggled + .main-content .sidebar-overlay {
        display: block;
    }
}
/* ... estilos existentes ... */

/* Estilos para el scroll vertical en tablas */
.table-container-scroll {
    max-height: 70vh; /* Usa el 70% de la altura de la ventana */
    overflow-y: auto;
}

/* Nuevos colores para filas de la tabla de boletos */
.table-success-light {
    --bs-table-bg: #e6f5ea;
}
.table-info-light {
    --bs-table-bg: #e0f3ff;
}

/* Ajustes para la paginación */
.pagination .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.pagination .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.table-responsive table th,
.table-responsive table td {
    white-space: nowrap; /* Evita que el texto se divida en múltiples líneas */
}