/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h2 {
    text-align: center;
    color: #333;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center; /* Centra todo el texto dentro del formulario */
}

label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    text-align: left; /* Alinea las etiquetas a la izquierda */
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

p.error {
    color: red;
    text-align: center;
}



/* Datboard */

/* Estilos generales para el dashboard */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #343a40;
}

.dashboard-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center; /* Asegura que los cuadros estén centrados horizontalmente */
}

.dashboard-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centra el texto dentro de cada cuadro */
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el contenido verticalmente dentro de cada cuadro */
    justify-content: center;
    width: 100%;
    max-width: 250px; /* Limita el ancho máximo de los cuadros */
}

.dashboard-item:hover {
    transform: translateY(-5px);
}

.dashboard-item i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
}

.dashboard-item h2 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.dashboard-item p {
    font-size: 14px;
    color: #666;
}

/* Adaptabilidad a pantallas más pequeñas */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}
