/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #e3f2e1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Contenedor del formulario */
.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
    position: relative;
}

/* Icono de usuario */
.login-container .icon {
    font-size: 50px;
    color: #2e7d32;
    margin-bottom: 15px;
}

/* Estilos para los inputs */
input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* Botón de login */
button {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #1b5e20;
}

/* Mensaje de error */
.error-message {
    color: red;
    margin-bottom: 10px;
}

/* Animación de bienvenida */
.welcome-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2e7d32;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 24px;
    opacity: 0;
    transform: scale(1);
    animation: showWelcome 1.5s ease-in-out forwards;
}

.welcome-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

/* Animaciones */
@keyframes showWelcome {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #e3f2e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
}

/* Contenedor principal */
.dashboard-container {
    width: 100%;
    height: 100%;
    max-width: 750px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Encabezado */
h2 {
    color: #2e7d32;
    font-size: 22px;
}

/* Botón de Cerrar Sesión */
.logout-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.logout-btn:hover {
    background-color: #b71c1c;
}

/* Tabla de pedidos */
.orders-container {
    margin-top: 15px;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
}

.order-card {
    background-color: #f1f8e9;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.order-card p {
    margin: 5px 0;
    font-size: 14px;
}

.order-card strong {
    color: #2e7d32;
}

/* Botón de acción */
.order-btn {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.3s;
}

.order-btn:hover {
    background-color: #1b5e20;
}

/* Diseño responsivo */
@media (max-width: 600px) {
    .dashboard-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
}
