:root {
    --primary-color: #2c3e50;      /* Azul oscuro principal */
    --secondary-color: #3498db;    /* Azul brillante */
    --accent-color: #e74c3c;       /* Rojo para destacar */
    --light-color: #f8f9fa;        /* Gris claro de fondo */
    --dark-color: #495057;         /* Gris oscuro para texto */
    --border-color: #dee2e6;       /* Gris para bordes */
}

body {
    background-color: var(--light-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-custom {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.main-content {
    padding: 20px;
    margin-left: 250px; /* Adjust for sidebar width */
    width: calc(100% - 250px);
    margin-top: 60px; /* Adjusted for fixed navbar height */
}

.sidebar {
    background-color: var(--dark-color);
    color: white;
    width: 250px;
    height: calc(100vh - 60px); /* Adjusted to be below the navbar */
    position: fixed;
    left: 0;
    top: 60px; /* Adjusted to be below the navbar */
    padding-top: 20px;
    z-index: 1000;
}

.sidebar a {
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.sidebar a i {
    width: 30px;
    margin-right: 10px;
}

.sidebar a:hover {
    background-color: var(--secondary-color);
}

/* Estilos para Submenús - Diferenciación clara sin cambiar tamaño */
.submenu-container {
    background-color: rgba(0, 0, 0, 0.15); /* Fondo sutilmente más oscuro */
    margin: 5px 0;
    border-left: 4px solid var(--secondary-color); /* Línea lateral de color para agrupar */
}

.sidebar div.collapse a {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 45px !important; /* Mayor indentación para jerarquía */
    transition: all 0.2s ease;
}

.sidebar div.collapse a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar div.collapse a i {
    color: var(--secondary-color); /* Iconos del submenú en color para destacar */
}

/* Indicador de menú abierto en el padre */
.sidebar [data-bs-toggle="collapse"]:not(.collapsed) {
    background-color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.sidebar [data-bs-toggle="collapse"] {
    position: relative;
}

.sidebar [data-bs-toggle="collapse"].collapsed i.fa-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.sidebar [data-bs-toggle="collapse"]:not(.collapsed) i.fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
        transition: 0.3s;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.section-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}
.comment-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.comment-card {
    border-left: 4px solid #0d6efd;
    background: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.comment-header {
    font-size: 0.95rem;
    color: #555;
}
.comment-user {
    font-weight: bold;
    color: #0d6efd;
}
.comment-date {
    font-size: 0.85rem;
    color: #888;
}
.ticket-info-section {
    background: #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.ticket-label {
    font-weight: bold;
    color: #2c3e50;
}
.time-counter {
    font-size: 1.1rem;
    color: #198754;
    font-weight: bold;
}
.closed-counter {
    color: #dc3545;
}

/* Additional styles from previous context */

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}
.card-custom {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
    margin-bottom: 10px;
    background: white;
}

.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    background: var(--primary-color);
    padding: 8px 12px;
    border-bottom: none;
}

.card-header h5 {
    color: white;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.status-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    background-color: rgba(255,255,255,0.2);
}

.card-body {
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1.4;
    background-color: #f8f9fa;
}

.card-body strong {
    color: var(--primary-color);
}

.card-text {
    color: inherit;
    margin-top: 10px;
}

/* Ajuste de columnas */
@media (min-width: 769px) {
    .col-md-4 {
        flex: 0 0 32%;
        max-width: 32%;
        padding: 0 8px;
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .col-md-2 {
        flex: 0 0 32%;
        max-width: 32%;
    }
}

@media (max-width: 768px) {
    .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .card-header {
        padding: 8px 10px;
    }
    
    .card-body {
        padding: 8px 10px;
    }
}

.priority-high {
    border-left: 5px solid #e74c3c;
}

.priority-medium {
    border-left: 5px solid #f39c12;
}

.priority-low {
    border-left: 5px solid #2ecc71;
}

.btn-custom {
    background-color: var(--secondary-color);
    color: white;
}

.btn-custom:hover {
    background-color: #2980b9;
    color: white;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background-color: white;
}

.ticket-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-open {
    background-color: #3498db;
    color: white;
}

.status-progress {
    background-color: #f39c12;
    color: white;
}

.status-resolved {
    background-color: #2ecc71;
    color: white;
}

.status-closed {
    background-color: #7f8c8d;
    color: white;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.room-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.room-floor {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.room-status {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dc3545;
}

.status-indicator.locked {
    background-color: #dc3545;
}

.status-text {
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: bold;
}

/* Estilos para tickets revisados */
.ticket-revisado {
    border-radius: 15px; /* Bordes redondeados */
    animation: flash-green 1.5s infinite alternate; /* Animación de flasheo */
}

@keyframes flash-green {
    0% { box-shadow: 0 0 8px rgba(40, 167, 69, 0.7); border: 1px solid rgba(40, 167, 69, 0.7); }
    100% { box-shadow: 0 0 15px rgba(40, 167, 69, 1); border: 1px solid rgba(40, 167, 69, 1); }
}

/* Estilos para tickets realizados */
.ticket-realizado {
    border-radius: 15px; /* Bordes redondeados */
    animation: flash-orange 1.5s infinite alternate; /* Animación de flasheo */
}

@keyframes flash-orange {
    0% { box-shadow: 0 0 8px rgba(255, 165, 0, 0.7); border: 1px solid rgba(255, 165, 0, 0.7); }
    100% { box-shadow: 0 0 15px rgba(255, 165, 0, 1); border: 1px solid rgba(255, 165, 0, 1); }
}

/* Estilos para tickets en privacidad */
.ticket-privacidad {
    border-radius: 15px;
    border: 3px solid #dc3545 !important;
    animation: flash-red-intense 0.8s infinite alternate;
}

@keyframes flash-red-intense {
    0% { 
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.5); 
        background-color: transparent;
    }
    100% { 
        box-shadow: 0 0 25px rgba(220, 53, 69, 1), inset 0 0 15px rgba(220, 53, 69, 0.3);
        background-color: rgba(220, 53, 69, 0.1);
        border-color: #ff0000 !important;
    }
}

.mobile-volver-button {
    display: none;
}

/* Estilos para el contador de auto-refresh en dashboards */
.refresh-countdown-lg {
    font-size: 0.9rem; /* Un poco más grande para mejor lectura */
    font-weight: 700;
    color: #ffc107; /* Amarillo de Bootstrap (warning) para resaltar */
    padding: 3px 10px;
    border: 2px solid #ffc107; /* Borde amarillo sólido */
    border-radius: 50px; /* Estilo píldora */
    background-color: rgba(255, 255, 255, 0.1); /* Fondo blanco muy sutil y transparente */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3); /* Resplandor suave amarillo */
}

.refresh-countdown-lg i {
    font-size: 0.85rem;
    color: #fff; /* Icono en blanco para la combinación */
}

#countdown-timer {
    color: #fff; /* El número en blanco para contraste con el amarillo */
}

/* Estilos para el banner de privacidad global */
.privacy-banner {
    background: #fff;
    border-bottom: 1px solid #dc3545;
    padding: 1px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.privacy-banner-title {
    color: #dc3545;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    border-right: 1px solid #eee;
    padding-right: 8px;
}
.privacy-item {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.1);
}

/* Resaltado para habitaciones de privacidad con tickets abiertos */
.privacy-item.has-tickets {
    background: #ffea00 !important; /* Amarillo brillante */
    color: #000 !important;
    border: 2px solid #dc3545;
    box-shadow: 0 0 12px rgba(255, 234, 0, 0.8);
    animation: pulse-privacy 1.5s infinite;
    z-index: 10;
}

@keyframes pulse-privacy {
    0% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 234, 0, 0.8); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 234, 0, 1); }
    100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 234, 0, 0.8); }
}

/* Resaltado para VIPs con tickets abiertos - Según imagen */
.vip-has-tickets {
    background: #ff6600 !important; /* Naranja intenso */
    color: #ffffff !important; /* Texto blanco */
    border: 1px solid #ffffff !important; /* Borde blanco */
    border-radius: 4px !important; /* Pequeño redondeado como la imagen */
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.8) !important; /* Resplandor naranja */
    animation: pulse-vip 1.5s infinite;
    z-index: 10;
}

@keyframes pulse-vip {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 102, 0, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 102, 0, 1); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 102, 0, 0.7); }
}

/* Estilos para tickets de Valores */
.ticket-valores {
    border-radius: 15px;
    animation: flash-blue 1.5s infinite alternate;
}

@keyframes flash-blue {
    0% { box-shadow: 0 0 8px rgba(13, 110, 253, 0.7); border: 1px solid rgba(13, 110, 253, 0.7); }
    100% { box-shadow: 0 0 15px rgba(13, 110, 253, 1); border: 1px solid rgba(13, 110, 253, 1); }
}
