/* assets/css/style.css */

:root {
    --primary-color: #0024E6;       /* Azul eléctrico IDECAP */
    --primary-hover: #001cc4;       /* Azul más profundo hover */
    --accent-color: #00D29E;        /* Turquesa brillante del isotipo */
    --secondary-color: #080D26;     /* Azul oscuro profundo para Sidebar */
    --bg-light: #F4F6FC;            /* Fondo premium ligeramente azulado */
    --text-dark: #1A1F36;
    --text-muted: #697386;
    --sidebar-width: 270px;
    --border-color: #E3E8EE;
    --card-shadow: 0 7px 14px 0 rgba(60,66,87, 0.08), 0 3px 6px 0 rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 35px 0 rgba(60,66,87, 0.12), 0 5px 15px 0 rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Layout del panel docente */
.rn-wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.rn-sidebar {
    width: var(--sidebar-width);
    background-color: var(--secondary-color);
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.rn-sidebar-brand {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rn-sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    flex-grow: 1;
}

.rn-menu-item a.rn-menu-link,
.rn-menu-item a.rn-menu-link span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rn-menu-item a.rn-menu-link {
    padding: 0.75rem 1.5rem;
    border-left: 4px solid transparent;
}

.rn-menu-item a.rn-menu-link svg {
    color: rgba(255, 255, 255, 0.85) !important;
    stroke: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s ease;
}

.rn-menu-item a.rn-menu-link:hover,
.rn-menu-item.active a.rn-menu-link {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-left-color: var(--primary-color) !important;
}

.rn-menu-item a.rn-menu-link:hover,
.rn-menu-item a.rn-menu-link:hover span,
.rn-menu-item.active a.rn-menu-link,
.rn-menu-item.active a.rn-menu-link span {
    color: #ffffff !important;
}

.rn-menu-item a.rn-menu-link:hover svg,
.rn-menu-item.active a.rn-menu-link svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Contenido Principal */
.rn-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rn-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rn-main-container {
    padding: 2rem;
    flex-grow: 1;
    overflow-y: auto;
}

/* Cards modernas */
.rn-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.rn-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.rn-card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.rn-card-body {
    padding: 1.5rem;
}

/* Indicadores / Stats */
.rn-stat-card {
    border-left: 4px solid var(--primary-color);
}

.rn-stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Tablas */
.rn-table-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Formularios y Botones */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .rn-wrapper {
        flex-direction: column;
    }
    .rn-sidebar {
        width: 100%;
        display: none; /* toggleado por JS */
    }
    .rn-sidebar.show {
        display: flex;
    }
}

/* Logos y Brand */
.rn-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.rn-logo-svg {
    max-width: 100%;
    height: auto;
}

.rn-logo-sidebar {
    height: 38px;
    width: auto;
}

.rn-sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

