/* Estilos para la página Gestionar Botones del Turnero */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

/* Header */
header {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.panel-container {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Títulos */
h2 {
    color: #333;
    text-align: center;
}

form {
    margin-bottom: 20px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Botones Generales */
button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 400px; /* Ancho máximo */
    min-width: 300px; /* Ancho mínimo */
    margin-bottom: 15px;
    text-align: center;
    white-space: nowrap; /* Texto en una sola línea */
    overflow: hidden; /* Oculta texto extra si se desborda */
    text-overflow: ellipsis; /* Agrega "..." si el texto es demasiado largo */
}

button:hover {
    background-color: #45a049;
}

/* Mensajes de Error y Éxito */
.error-message {
    color: #d9534f;
    background: #f2dede;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
}

.success-message {
    color: #3c763d;
    background: #dff0d8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
}

/* Lista de Botones Actuales */
ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

ul li {
    background: #f7f7f7;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul li form {
    margin: 0;
}

/* Botón para Regresar */
.btn-back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: white;
    background-color: #555;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #333;
}

/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    padding: 15px;
    background-color: #f1f1f1;
    color: #555;
    border-top: 1px solid #ddd;
}

/* Contenedor de Botones */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%; /* Toma el alto completo del contenedor */
    min-height: calc(100vh - 200px); /* Asegura centrado en pantallas grandes */
}

/* Botones del Turnero */
.turno-button {
    width: 100%;
    max-width: 400px; /* Ancho máximo */
    min-width: 300px; /* Ancho mínimo */
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px; /* Tamaño de letra */
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px; /* Esquinas redondeadas */
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap; /* Mantiene texto en una línea */
    overflow: hidden; /* Oculta contenido adicional */
    text-overflow: ellipsis; /* Agrega "..." si el texto es demasiado largo */
}

.turno-button:hover {
    background-color: #45a049;
    transform: scale(1.05); /* Efecto de zoom al pasar el ratón */
}

.turno-button:active {
    background-color: #3e8e41;
    transform: scale(1); /* Quita el zoom al hacer clic */
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .turno-button {
        max-width: 90%; /* Botón ocupa más espacio en pantallas pequeñas */
        min-width: auto; /* Elimina ancho mínimo en pantallas pequeñas */
    }

    footer {
        padding: 10px;
        font-size: 14px;
    }
}
