:root {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-surface-soft: #eef3f9;
    --app-primary: #163a5f;
    --app-secondary: #3d7ea6;
    --app-accent: #f6a623;
    --app-text: #1e293b;
    --app-muted: #64748b;
    --app-border: #dbe4ef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(22, 58, 95, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(246, 166, 35, 0.12), transparent 24%),
        var(--app-bg);
    color: var(--app-text);
}

.app-navbar {
    background: linear-gradient(135deg, #0f2742, #184e77);
    box-shadow: 0 12px 30px rgba(15, 39, 66, 0.18);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.app-brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

.app-brand-text {
    letter-spacing: 0.04em;
}

.app-shell {
    min-height: calc(100vh - 72px);
}

.hero-banner {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.25rem;
    padding: 1.25rem 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #123456, #1d5c88 55%, #2d8bd1);
    box-shadow: 0 18px 40px rgba(13, 39, 67, 0.18);
}

.hero-logo {
    height: 38px;
    width: auto;
    display: block;
    flex: 0 0 auto;
    opacity: 0.92;
}

.login-logo {
    height: 76px;
    width: auto;
    max-width: 100%;
    display: inline-block;
}

.hero-kicker {
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    opacity: 0.82;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 12px 25px rgba(15, 39, 66, 0.06);
}

.direction-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.direction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 39, 66, 0.11);
}

.badge-soft {
    background: var(--app-surface-soft);
    color: var(--app-primary);
    border: 1px solid var(--app-border);
}

.panel-surface {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 39, 66, 0.06);
}

.section-title {
    font-weight: 700;
    color: var(--app-primary);
}

.repeater-item {
    background: #f9fbfd;
    border: 1px dashed #cbd5e1;
    border-radius: 0.95rem;
    padding: 1rem;
}

.repeater-item + .repeater-item {
    margin-top: 0.85rem;
}

.chart-box {
    min-height: 290px;
}

.gerencial-chart-box {
    min-height: 220px;
}

.kpi-meta {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.table-responsive {
    border-radius: 0.9rem;
}

.progress {
    height: 0.9rem;
}

.progress-with-meta {
    position: relative;
    overflow: hidden;
}

.progress-with-meta .progress-bar {
    position: relative;
    z-index: 1;
}

.progress-meta-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #f59e0b;
    transform: translateX(-1.5px);
    z-index: 2;
    pointer-events: none;
}

.kpi-detail-modal .modal-dialog {
    width: min(1400px, calc(100vw - 1.25rem));
    max-width: 1400px;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.gerencial-tabs {
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

.gerencial-tabs .nav-link {
    white-space: nowrap;
}

.color-picker-input {
    min-height: 3rem;
    width: 100%;
    padding: 0.35rem;
    cursor: pointer;
}

.dashboard-functions {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.dashboard-functions li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.85rem;
    color: var(--app-text);
}

.dashboard-functions li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--app-secondary);
    opacity: 0.95;
}

.dashboard-functions strong {
    color: var(--app-primary);
}

@media (max-width: 767px) {
    .hero-banner {
        padding: 1rem;
    }

    .app-brand-text {
        font-size: 0.95rem;
    }

    .hero-logo {
        height: 30px;
    }

    .login-logo {
        height: 64px;
    }

    .card-body {
        padding: 1rem;
    }
}
