/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.dashboard-container {
    background-color: #1e1e1e;
    width: 100%;
    max-width: 800px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px auto;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #00bfff;
}

p {
    font-size: 18px;
}

/* Estilo para los botones */
button {
    background-color: #00bfff;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #008cba;
}

/* Estilo para los mensajes de error y éxito */
.message {
    margin-top: 20px;
    font-size: 18px;
    padding: 15px;
    background-color: #f44336; /* Rojo para errores */
    color: white;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

/* Para mensajes de éxito (verde) */
.message.success {
    background-color: #4CAF50;
}

/* Para el formulario cuando no hay pines disponibles */
.formulario-no-pines {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #333;
    border-radius: 8px;
    text-align: center;
}

/* Mostrar el formulario si no hay pines disponibles */
.no-pines-disponibles {
    display: block;
    font-size: 18px;
    margin-top: 30px;
    color: #f44336;
}

/* Notificaciones emergentes (toasts) */
#toaster {
    position: fixed;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast .icon {
    margin-right: 10px;
}

.toast .message {
    flex: 1;
}

.toast .close {
    margin-left: 10px;
    cursor: pointer;
}

/* Responsividad */
@media (max-width: 600px) {
    .dashboard-container {
        padding: 20px;
        max-width: 95%;
    }
}
