/* ==========================================================================
   FiVi Education - Vision 360° CEO Premium Theme
   Target: Executive Dashboard & High-Level Modules
   ========================================================================== */

:root {
    --vision-gold: #C5A017;
    --vision-blue: #00205B;
    --vision-dark: #1a1a1a;
    --vision-light: #f8f9fa;
    --vision-card-bg: #ffffff;
    --vision-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Legacy Variables for Compatibility */
    --fivi-blue: #00205B;
    --fivi-gold: #C5A017;
    --fivi-white: #FFFFFF;
    --fivi-light-grey: #f0f2f5;
    /* Updated to Premium Gray */
    --fivi-font-heading: 'Montserrat', sans-serif;
    --fivi-font-body: 'Open Sans', sans-serif;
}

/* Base Override */
body {
    font-family: var(--fivi-font-body);
    background-color: var(--fivi-light-grey);
    color: #333;
}

body.vision-360-body {
    background-color: #f0f2f5;
}

/* ==========================================================================
   LAYOUT ENGINE - [VISION 360 CORRECTION]
   ========================================================================== */
/* ==========================================================================
   LAYOUT ENGINE - [VISION 360 CORRECTION]
   ========================================================================== */
.main-content {
    margin-left: 250px;
    padding: 1.5rem 2.5rem;
    /* Balanced padding */
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}

@media (max-width: 1200px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    }
}

/* ==========================================================================
   PREMIUM COMPONENTS
   ========================================================================== */

/* Header Dashboard Adjustments */
.header-profile-box {
    padding: 0.5rem 1rem;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar-vision {
    width: 60px !important;
    /* Standardized CEO size */
    height: 60px !important;
    font-size: 1.5rem !important;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.avatar-vision:hover {
    transform: scale(1.05);
}

/* Premium Cards */
.card-premium {
    background: var(--vision-card-bg);
    border: none;
    border-radius: 12px;
    /* Smoother radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 32, 91, 0.12);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--vision-gold);
    opacity: 0.2;
}

/* Content Container (Legacy .content-card upgrade) */
.content-card {
    background: white;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }
}

/* ==========================================================================
   MODULE SPECIFIC STYLES (FROM MODULE_INSTITUCION)
   ========================================================================== */
.nav-tabs .nav-link {
    color: var(--fivi-blue);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px 25px;
    transition: color 0.3s;
}

.nav-tabs .nav-link:hover {
    color: var(--vision-blue);
}

.nav-tabs .nav-link.active {
    color: var(--fivi-gold);
    border-bottom: 3px solid var(--fivi-gold);
    background: transparent;
}

.form-label {
    font-weight: 600;
    color: var(--fivi-blue);
}

.section-title {
    color: var(--fivi-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-bottom: 2px solid var(--fivi-light-grey);
    padding-bottom: 15px;
    margin-bottom: 25px;
    margin-top: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--vision-gold);
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-draft {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-planning {
    background-color: #fff3cd;
    color: #664d03;
}

/* KPIs */
.fivi-kpi {
    background-color: var(--fivi-light-grey);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.fivi-kpi .label {
    color: var(--fivi-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.fivi-kpi .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fivi-gold);
}

/* Soft Badges */
.fivi-soft-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-ok {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-warn {
    background-color: #fff3cd;
    color: #664d03;
}

.badge-off {
    background-color: #f8f9fa;
    color: #6c757d;
}

.fivi-mini-muted {
    font-size: 0.8rem;
    color: #6c757d;
}

.fivi-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 10px 0;
}

/* Sedes List */
.sede-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.sede-item:hover {
    background-color: #f8f9fa;
}

.sede-item.active {
    background-color: #e9ecef;
    border-left: 3px solid var(--fivi-gold);
}

/* Console */
.fivi-console {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
}

.fivi-console-line {
    border-bottom: 1px solid #333;
    padding: 2px 0;
    display: flex;
}

.fivi-console-time {
    color: #569cd6;
    margin-right: 10px;
}

.fivi-console-info {
    color: #d4d4d4;
}

.fivi-console-success {
    color: #6a9955;
}

.fivi-console-error {
    color: #f44747;
}

.fivi-console-warn {
    color: #cca700;
}

/* Button Modern override */
.btn-modern {
    background: var(--vision-blue);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 32, 91, 0.2);
}

.btn-modern:hover {
    background: #00153d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 32, 91, 0.3);
    color: white;
}

/* Utility */
.text-gold {
    color: var(--vision-gold) !important;
}

.text-blue {
    color: var(--vision-blue) !important;
}