/* styles.css */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #f5f7fa;
    color: #333;
}

.sidebar {
    width: 250px;
    background-color: #1e2a38;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar img {
    width: 120px;
    margin-bottom: 10px;
}

.sidebar h2 {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 10px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    width: 100%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

.sidebar a:hover {
    background-color: #27394d;
}

.sidebar a svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.main-content {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    overflow-y: auto;
}

.logout {
    margin-top: auto;
    margin-bottom: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}


/* === ESTILOS PARA LA PANTALLA DE LOGIN === */
.login-body {
    background-image: url("../img/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-container button:hover {
    background-color: #2980b9;
}

.login-container .error {
    color: red;
    margin-top: 15px;
    font-size: 14px;
}

/* Estilo para el contenedor principal del dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* Estilo para la barra lateral */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* Estilo para el contenido principal */
.main-content {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
    background-color: #ffffff;
}
