:root {
    --fc-primary: #0d6efd;
    --fc-sidebar-bg: #10243e;
    --fc-sidebar-hover: #1b3a5c;
    --fc-sidebar-active: #0d6efd;
    --fc-vencido: #dc3545;
    --fc-proximo: #fd7e14;
    --fc-riesgo: #ffc107;
    --fc-vigente: #198754;
}

html, body {
    height: 100%;
    background-color: #f4f6f9;
}

.fc-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---------------- Sidebar ---------------- */
.fc-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: var(--fc-sidebar-bg);
    color: #fff;
    transition: margin-left .25s ease-in-out;
}

.fc-sidebar .fc-brand {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.fc-sidebar .nav-link {
    color: rgba(255,255,255,.8);
    padding: .6rem 1rem;
    border-radius: .375rem;
    margin: .1rem .5rem;
    font-size: .92rem;
}

.fc-sidebar .nav-link:hover {
    background-color: var(--fc-sidebar-hover);
    color: #fff;
}

.fc-sidebar .nav-link.active {
    background-color: var(--fc-sidebar-active);
    color: #fff;
}

.fc-sidebar .nav-header {
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .05em;
    padding: .75rem 1rem .25rem;
}

.fc-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fc-main {
    flex-grow: 1;
    padding: 1.25rem;
}

@media (max-width: 991.98px) {
    .fc-sidebar {
        position: fixed;
        z-index: 1040;
        height: 100%;
        margin-left: -260px;
    }
    .fc-sidebar.show {
        margin-left: 0;
    }
    .fc-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 1035;
    }
    .fc-backdrop.show {
        display: block;
    }
}

/* ---------------- Semáforo de vencimiento ---------------- */
.badge.semaforo-anaranjado { color: #000; }
.badge.semaforo-amarillo { color: #000; }

.fc-dot {
    display: inline-block;
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    margin-right: .35rem;
}
.fc-dot-vencido { background-color: var(--fc-vencido); }
.fc-dot-proximo { background-color: var(--fc-proximo); }
.fc-dot-riesgo  { background-color: var(--fc-riesgo); }
.fc-dot-vigente { background-color: var(--fc-vigente); }

/* ---------------- Utilidades ---------------- */
.fc-card-stat {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.fc-card-stat .fc-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.table-responsive-fc {
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
}

.fc-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fc-sidebar-bg), #1b3a5c);
}

.fc-login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 1rem;
}

/* Modal de confirmación reutilizable (reemplaza confirm() nativo del navegador en todo el
   sitio; ver #fcConfirmModal en components/footer.php y fcConfirm()/data-confirm en app.js). */
.fc-confirm-modal .modal-content {
    border: none;
    border-radius: 1rem;
}
.fc-confirm-icon {
    font-size: 2.75rem;
    line-height: 1;
}
