/* ============================================
   PORTAL DEL PROVEEDOR INPASA - ESTILOS
   ============================================ */

:root {
    --inpasa-green: #006341;
    --inpasa-light: #e6f3ee;
    --inpasa-dark: #004d33;
    --bg-login: linear-gradient(135deg, #e6f3ee 0%, #cce0d8 100%);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ── LOGIN ── */
.login-body {
    background: var(--bg-login);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 99, 65, 0.12);
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-img {
    max-width: 180px;
    height: auto;
}

.btn-inpasa {
    background: var(--inpasa-green);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.btn-inpasa:hover, .btn-inpasa:active {
    background: var(--inpasa-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.25);
}

.form-floating .form-control {
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
}

.form-floating .form-control:focus {
    border-color: var(--inpasa-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 99, 65, 0.15);
}

/* ── DASHBOARD ── */
.dashboard-body {
    background: #f5f7fa;
    padding-top: 64px;
    min-height: 100vh;
}

.navbar-inpasa {
    background: var(--inpasa-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-logo {
    height: 32px;
    filter: brightness(0) invert(1);
}

.main-content {
    padding: 1rem 0.5rem;
}

.kpi-card {
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.kpi-card:active {
    transform: scale(0.98);
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Cards */
.card {
    border-radius: 16px;
}

.contract-card {
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contract-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

/* Badges */
.bg-inpasa {
    background-color: var(--inpasa-green) !important;
}

.bg-inpasa-light {
    background-color: var(--inpasa-light) !important;
}

.text-inpasa {
    color: var(--inpasa-green) !important;
}

.text-inpasa-dark {
    color: var(--inpasa-dark) !important;
}

/* Utilidades */
.extra-small {
    font-size: 0.75rem;
}

.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

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

/* Tablas */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contrato-card {
    animation: fadeInUp 0.4s ease both;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    .logo-img {
        max-width: 140px;
    }
    .navbar-logo {
        height: 26px;
    }
    .dashboard-body {
        padding-top: 56px;
    }
    .main-content {
        padding: 0.75rem 0.25rem;
    }
    h4.fw-bold {
        font-size: 1.1rem;
    }
    .kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
}
