/* public_html/assets/css/styles.css */

/* --- IMPORTACIÓN DE FUENTES (Tomadas de la referencia si las usa, sino una similar) --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* --- VARIABLES DE COLORES (Adaptadas de la paleta de Nexento) --- */
:root {
    --primary-blue: #007bff; /* El azul profesional principal */
    --primary-dark: #0056b3; /* Un azul más oscuro para contrastes */
    --accent-yellow: #f4c72a; /* El amarillo/dorado para acentos */
    --bg-light: #f8f9fa; /* Fondo gris muy claro para áreas de trabajo */
    --text-dark: #212529; /* Texto principal oscuro */
    --text-light: #6c757d; /* Texto secundario gris */
    --white: #ffffff;
    --shadow-card: 0 4px 15px rgba(0,0,0,0.1); /* La sombra suave de las tarjetas */
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.15); /* Sombra más fuerte para hover */
    --border-radius: 8px; /* Bordes suaves para componentes */
    --navbar-height: 70px;
    --sidebar-width: 250px;
}

/* --- ESTILOS GENERALES Y RESETS (Adaptados de la referencia) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; }

/* --- BOTONES (Adaptados del estilo .btn de tu referencia) --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Bordes redondeados como en la referencia */
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1.2;
}

.btn-primary-custom {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-blue);
}

.btn-accent {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    border: 2px solid var(--accent-yellow);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-yellow);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-blue);
    padding: 0;
    font-weight: 600;
    text-decoration: underline;
}

/* --- FORMULARIOS --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(0,123,255,0.25);
}

/* =========================================================================
   1. ESTILOS PARA LA PÁGINA DE LOGIN (index.html)
   ========================================================================= */

.login-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-light); /* Fondo suave */
    /* (Opcional: Agregar el patrón de fondo sutil si la referencia lo tiene) */
}

.login-box {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card); /* La sombra suave como en Nexento */
    text-align: center;
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el mouse */
    box-shadow: var(--shadow-hover);
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo span {
    color: var(--accent-yellow); /* Acento de color en el logo */
    margin-right: 5px;
}

.login-form h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-form p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

#mensaje-error {
    min-height: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: red; /* Color por defecto */
}

/* =========================================================================
   2. ESTILOS PARA EL PANEL PRINCIPAL (dashboard.html)
   ========================================================================= */

/* --- Estructura Principal del Dashboard --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* --- Top Navbar --- */
.navbar-dashboard {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--navbar-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1030;
}

.navbar-brand-dashboard {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.navbar-brand-dashboard span { color: var(--accent-yellow); margin-right: 5px; }

.navbar-user-info {
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.navbar-user-name { font-weight: 600; margin-right: 1.5rem; }

/* --- Sidebar (Menú Lateral) --- */
.sidebar-dashboard {
    width: var(--sidebar-width);
    background-color: var(--primary-blue); /* Fondo azul profesional */
    color: var(--white);
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    left: 0;
    padding-top: 1.5rem;
    z-index: 1020;
    transition: all 0.3s ease;
}

.sidebar-menu-list li {
    padding: 0.5rem 0;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-menu-link:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.1);
}

.sidebar-menu-link.active {
    color: var(--white);
    background-color: rgba(255,255,255,0.15);
    border-left: 4px solid var(--accent-yellow); /* Acento amarillo en link activo */
}

/* --- Main Content Area --- */
.main-content-dashboard {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    flex: 1;
    background-color: var(--bg-light);
    padding: 2.5rem;
}

.page-header-dashboard {
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.25rem;
}

.card-custom {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card-custom:hover {
    border-color: rgba(0,123,255,0.1);
}