/* Reset general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f6f9;
}

/* Contenedor principal centrado */
.login-container {
    background-color: #e9ecef; /* Fondo gris suave */
    border: 2px solid #2563eb;   /* Contorno azul */
    border-radius: 16px;         /* Bordes redondeados */
    padding: 20px 15px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container600 {
    max-width: 600px;
}


/* Contenedor padre para centrar y apilar verticalmente */
.page-layout {
    width: 100%;
    /*max-width: 500px;*/
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centra los contenedores horizontalmente */
    justify-content: center;
    gap: 24px;              /* Separa el primer contenedor del segundo */
    min-height: 100vh;      /* Opcional: centra todo verticalmente en la pantalla */
    padding: 20px;
}

/* Logo 100x100 px */
.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.login-icono {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

h2 {
    color: #1e293b;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.header-bar {
            width: 100%;
            max-width: 600px;
            display: flex;
            /*flex-direction: column;*/
            justify-content: space-between;
            /*align-items: center;*/
            margin-bottom: 20px;
            padding: 15px 20px;
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

.header-home {
    width: 100%;
    max-width: 600px;
    display: flex;
    /*flex-direction: column;*/
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 20px;*/
    padding: 5px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
        
.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-group input {
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-submit {
    width: 100px;
    padding: 12px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    display: block;
            margin-left: auto;
             margin-right: auto;
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

.panel-container {
        max-width: none;
        width: 100%;
        }

/* En pantallas grandes (mayores a 600px): ocupa todo el ancho */
@media (max-width:768px) {
  .panel-container  {
        max-width: 600px;
  }
}

.resultado-card {
            width: 100%;
            margin-top: 25px;
            background-color: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 10px;
            padding: 20px;
            max-width: 600px;
            overflow-x: auto;
        }

        .resultado-card h3 {
            color: #2563eb;
            margin-bottom: 15px;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 8px;
            font-size: 1.1rem;
        }

.paciente-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    gap: 12px;
}

.paciente-item {
    font-size: 0.95rem;
    color: #334155;
}

.paciente-item strong {
    color: #1e293b;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.btn-logout {
            padding: 8px 14px;
            background-color: #ef4444;
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 600;
            transition: background-color 0.2s ease;
            display: block;
            margin-left: auto;
             margin-right: auto;
        }
.btn-logout:hover {
            background-color: #dc2626;
        }


/* Alerta de error */
.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
    font-size: 0.875rem;
    text-align: center;

}

.tabla-turnos {
    overflow-x: auto;
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden; /* Mantiene los bordes redondeados */
}

/* Encabezado */
.tabla-turnos th {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: bold;
  text-align: left;
  padding: 12px 16px;
}

/* Celdas de datos */
.tabla-turnos td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}