/* Reset y estilos generales con nueva fuente y color de fondo */
body, html {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #FAFBF2; /* <-- TU COLOR DE FONDO */
    margin: 0;
    padding: 0;
    color: #333;
}
button, input, select, textarea {
    font-family: "Inter", sans-serif;
}

/* Modal de Login */
#login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.login-box {
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
}
.login-box h2 {
    margin-top: 0;
}
.login-box input {
    font-size: 1.2rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}
.login-box button {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background-color: #136F63; /* <-- TU COLOR PRINCIPAL */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: background-color 0.2s;
}
.login-box button:hover {
    background-color: #0e564c; /* <-- Tono más oscuro */
}

/* ======= NUEVO ESTILO PARA EL AVISO ======= */
.login-notice {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.login-notice p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}
.login-notice p strong {
    color: #136F63; /* <-- TU COLOR PRINCIPAL */
}
/* ========================================= */

/* Contenedor de la App y NUEVO HEADER */
header {
    background-color: white; 
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
}
#header-logo {
    height: 40px; 
    margin-right: 0.75rem;
}
header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #136F63; /* <-- TU COLOR PRINCIPAL */
    font-weight: 700;
}
#mi-estado-box button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Lista de Empleados */
#employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta de Empleado */
.employee-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-left: 5px solid;
    transition: all 0.2s;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}
.card-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.card-info {
    font-size: 1rem;
    color: #555;
    min-height: 1.5rem;
}
.card-action {
    margin-top: 1rem;
}

/* --- ESTADOS (con tus colores) --- */
.employee-card.me {
    background-color: #f0f7f6;
    border-color: #136F63; 
}
.employee-card.disponible { /* "en llamada" */
    border-color: #dc3545; 
}
.disponible .card-status-dot { background-color: #dc3545; }
.disponible .card-info { color: #dc3545; }

.employee-card.ocupado { /* "ocupado" o "idle" */
    border-color: #dc3545; 
}
.ocupado .card-status-dot { background-color: #dc3545; }
.ocupado .card-info { color: #dc3545; }

.employee-card.solicitado-por-mi { /* "esperando" */
    border-color: #ffc107;
    background-color: #fffbeb;
}
.solicitado-por-mi .card-info { color: #a17400; }

.employee-card.me.solicitado-por-otro { /* "tienes cola" */
    border-color: #136F63; 
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(19, 111, 99, 0.1); }
    50% { box-shadow: 0 4px 25px rgba(19, 111, 99, 0.4); } 
    100% { box-shadow: 0 4px 12px rgba(19, 111, 99, 0.1); }
}

/* Mi botón de estado */
#status-toggle-button.disponible { /* Aceptar (verde) */
    background-color: #136F63; 
    color: white;
}
#status-toggle-button.disponible:hover { background-color: #0e564c; }

#status-toggle-button.ocupado { /* Terminar (rojo) */
    background-color: #dc3545;
    color: white;
}
#status-toggle-button.ocupado:hover { background-color: #c82333; }

#status-toggle-button:disabled {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
}

/* --- Estilos para la Cola --- */
.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}
.queue-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}
.queue-list li:last-child {
    border-bottom: none;
}
.queue-list li span {
    font-size: 1rem;
    font-weight: 500;
}

.accept-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #136F63; 
    color: white;
    transition: background-color 0.2s;
}
.accept-btn:hover {
    background-color: #0e564c; 
}

.card-action button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #136F63; 
    color: white;
    transition: all 0.2s;
    margin-top: 1rem;
}
.card-action button:hover {
    background-color: #0e564c; 
}
.card-action button:disabled {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
}
.request-btn-disabled {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    background-color: #ccc;
    color: #777;
    margin-top: 1rem;
}