body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.sidebar {
    background-color: #343a40;
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.sidebar .logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.sidebar .version {
    color: #adb5bd;
    font-size: 0.9rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.sidebar .nav-link.active {
    color: white;
    background-color: #007bff;
}

.main-content {
    padding: 30px;
    background-color: #f8f9fa;
}

.content-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

#results-table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}

/* Estilos para el análisis por mesa */
.agent-metrics {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.agent-metrics:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.metric-card {
    transition: transform 0.3s ease;
    text-align: center;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-card h4 {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.5rem;
}

.metric-card h3 {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.8rem;
}

.metric-card small {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
    color: inherit;
}

/* Colores para las tarjetas de métricas */
.bg-success {
    background-color: #28a745 !important;
    color: white;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: white;
}

.bg-info {
    background-color: #17a2b8 !important;
    color: white;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

/* Estilos para los totales de mesa */
.mesa-totals {
    border: 2px solid #343a40 !important;
    background-color: #343a40;
    color: white;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.mesa-totals h4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: white;
}

/* Estilos para la tabla de detalles */
.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.table-light th {
    background-color: #e9ecef;
}

/* Estilos para el modal de detalles */
.modal .table.text-white th,
.modal .table.text-white td {
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.modal .bg-dark .table {
    background-color: #343a40;
}

.modal .bg-dark .table thead th {
    background-color: #495057;
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background-color: #007bff;
    color: white;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    background-color: #f8f9fa;
}

/* Estilos para los gráficos */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
}

/* Estilos para botones */
.btn {
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-outline-light {
    border-color: #f8f9fa;
    color: #f8f9fa;
}

.btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #343a40;
}

/* Estilos para cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    border-bottom: none;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Estilos para alertas */
.alert {
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .metric-card {
        margin-bottom: 15px;
    }
    
    .agent-metrics .row > div {
        margin-bottom: 10px;
    }
    
    .mesa-totals .row > div {
        margin-bottom: 10px;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .metric-card h4 {
        font-size: 1.2rem;
    }
    
    .metric-card h3 {
        font-size: 1.5rem;
    }
    
    .agent-metrics h5,
    .mesa-totals h4 {
        font-size: 1.1rem;
    }
}

/* Efectos de transición */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para el modal de login */
#loginModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}

#loginModal .modal-header {
    background-color: #007bff;
    color: white;
}

#loginModal .modal-body {
    padding: 20px;
}

#loginModal .form-control {
    border-radius: 4px;
    padding: 10px;
}

#loginModal .btn-primary {
    width: 100%;
    padding: 10px;
    font-weight: 600;
}

/* Estilos para el user-info */
.user-info {
    background-color: #343a40;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.user-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Estilos para los inputs del formulario */
.form-control, .form-select {
    border-radius: 4px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para los tabs */
.nav-item {
    margin-right: 5px;
}

.nav-link {
    transition: all 0.3s ease;
}

/* Estilos para la tabla de resultados */
#results-table {
    width: 100%;
}

#results-table th {
    white-space: nowrap;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
}

#results-table td {
    vertical-align: middle;
}

/* Estilos para el botón de logout */
#logoutBtn {
    margin-top: 5px;
    width: 100%;
}

/* Estilos para el título de la aplicación */
.sidebar h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}