:root {
    --iesp-blue: #0d47a1;
    --iesp-blue-dark: #07306f;
    --iesp-blue-soft: #eaf2ff;
    --iesp-light: #f4f7fb;
    --iesp-white: #ffffff;
    --iesp-text: #263238;
}

body {
    background: var(--iesp-light);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--iesp-text);
}

.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border: none;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    animation: fadeUp .45s ease;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--iesp-blue), var(--iesp-blue-dark));
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding: 22px 16px;
    z-index: 1000;
}

.sidebar .brand {
    text-align: center;
    margin-bottom: 28px;
    font-weight: 700;
}

.sidebar a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 13px;
    margin-bottom: 7px;
    transition: all .25s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, .16);
    color: white;
    transform: translateX(3px);
}

.main-content {
    margin-left: 260px;
    padding: 28px;
}

.topbar {
    background: white;
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 8px 24px rgba(13, 71, 161, .08);
    margin-bottom: 24px;
}

.card-modern {
    border: none;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(13, 71, 161, .08);
    transition: all .25s ease;
}

.card-modern:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    background: var(--iesp-blue-soft);
    color: var(--iesp-blue);
}

.btn-iesp {
    background: var(--iesp-blue);
    border-color: var(--iesp-blue);
    color: white;
}

.btn-iesp:hover {
    background: var(--iesp-blue-dark);
    border-color: var(--iesp-blue-dark);
    color: white;
}

.progress {
    height: 19px;
    border-radius: 50px;
}

.progress-bar {
    border-radius: 50px;
}

.table thead {
    background: var(--iesp-blue-soft);
}

.form-control:focus,
.form-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .15);
}

.readonly-row {
    background: #fafafa;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media print {
    .no-print,
    .sidebar,
    .topbar,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: white;
    }

    .card-modern {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

@media (max-width: 992px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 18px;
    }
}
