/* Dashboard UX — identidade Poppins + animações GPU (transform/opacity) */

.header-greeting { font-size: 0.88rem !important; font-weight: 500; }
.header-date {
    margin-top: 0.25rem !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: var(--cor-texto-secundario) !important;
}

.dashboard-premium { display: flex; flex-direction: column; gap: 0; }

.dashboard-skeleton { display: block; margin-bottom: 1rem; }
.dashboard-skeleton[hidden] { display: none !important; }
.sk-shimmer {
    background: linear-gradient(90deg, #eef1f3 0%, #f7f8fa 45%, #eef1f3 100%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.35s ease-in-out infinite;
    border-radius: var(--raio-borda);
}
@keyframes sk-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.sk-banner { height: 132px; margin-bottom: 1rem; }
.sk-card { height: 168px; margin-bottom: 1rem; }
.sk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 1rem; }
.sk-kpi { height: 96px; }

.motivation-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    padding: 1.25rem 1.2rem 1.3rem;
    margin-bottom: 1.15rem;
    color: #014B21;
    background:
        radial-gradient(ellipse 90% 80% at 100% 0%, rgba(255,255,255,0.22), transparent 50%),
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(0,0,0,0.18), transparent 55%),
        linear-gradient(135deg, #22C660 0%, #7ED957 35%, #C1FF72 70%, #9BEF00 100%);
    box-shadow: 0 10px 28px rgba(34, 198, 96, 0.18);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
    will-change: transform, opacity;
}

.motivation-banner__shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.motivation-banner__shine::before {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 45%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.045) 45%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.045) 55%, transparent 100%);
    transform: translateX(-100%) skewX(-18deg);
    animation: banner-shine 8s linear infinite;
}
@keyframes banner-shine {
    0% { transform: translateX(-100%) skewX(-18deg); }
    100% { transform: translateX(180%) skewX(-18deg); }
}

.motivation-banner__glow,
.motivation-banner__orb,
.motivation-banner__glass,
.motivation-banner__particles { position: absolute; pointer-events: none; z-index: 0; }

.motivation-banner__glow {
    inset: -30%;
    background: radial-gradient(circle at 72% 28%, rgba(255,255,255,0.16), transparent 42%);
}
.motivation-banner__glass {
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 40%, rgba(0,0,0,0.06) 100%);
}
.motivation-banner__orb--a {
    width: 140px; height: 140px; border-radius: 50%;
    right: -36px; top: -40px;
    background: rgba(255,255,255,0.12);
    filter: blur(2px);
    transform: translateZ(0);
}
.motivation-banner__orb--b {
    width: 80px; height: 80px; border-radius: 50%;
    right: 56px; bottom: -34px;
    background: rgba(255,255,255,0.14);
    filter: blur(6px);
}
.motivation-banner__orb--c {
    width: 36px; height: 36px; border-radius: 50%;
    left: 18%; top: 18%;
    background: rgba(255,255,255,0.18);
    filter: blur(4px);
}

.motivation-banner__particles { inset: 0; z-index: 1; }
.motivation-particle {
    position: absolute;
    left: var(--p-x);
    top: var(--p-y);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    opacity: 0.35;
    transform: translate3d(0,0,0);
    animation: particle-drift var(--p-dur, 14s) ease-in-out var(--p-delay, 0s) infinite alternate;
    will-change: transform;
}
@keyframes particle-drift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(10px, -14px, 0); }
}

.motivation-banner__content { position: relative; z-index: 3; min-width: 0; }
.motivation-banner__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; opacity: 0.88; margin-bottom: 0.5rem;
}
.motivation-banner__eyebrow .icon-asset {
    width: 14px; height: 14px;
    filter: none;
    opacity: 0.9;
}
.motivation-banner__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: #014B21;
}
.motivation-banner__message {
    margin: 0;
    font-size: clamp(0.88rem, 3.1vw, 0.98rem);
    line-height: 1.5;
    opacity: 0.94;
}
.motivation-banner__desc {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    opacity: 0.78;
    line-height: 1.4;
}
.motivation-banner__art {
    position: relative; z-index: 3;
    width: 84px; height: 84px; flex-shrink: 0; opacity: 0.95;
}
.motivation-banner__art svg { width: 100%; height: 100%; display: block; }

.card-premium {
    padding: 1.2rem 1.15rem 1.25rem;
    transition: transform 250ms ease, box-shadow 250ms ease;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .card-premium:hover,
    .kpi-card--interactive:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.07);
    }
}

.card-premium__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 0.95rem;
}
.card-premium__title-wrap { display: flex; align-items: flex-start; gap: 0.7rem; min-width: 0; }
.card-premium__title-wrap h3 { margin: 0 0 0.15rem; }
.card-premium__title-wrap .section-subtitle { margin: 0; }
.card-premium__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center; flex-shrink: 0;
    background: rgba(34, 198, 96, 0.1);
    border: 1px solid rgba(34, 198, 96, 0.16);
}
.card-premium__icon .icon-asset { width: 20px; height: 20px; }

.jornada-progress-badge {
    flex-shrink: 0; min-width: 50px; height: 34px; padding: 0 11px;
    border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(34, 198, 96, 0.1); color: #014B21;
    font-weight: 700; font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(34, 198, 96, 0.18);
}
.jornada-progress-badge--soft {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    border-color: rgba(108, 117, 125, 0.18);
}

.jornada-progress { margin-bottom: 1rem; }
.jornada-progress__meta {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 0.75rem; margin-bottom: 0.45rem;
    font-size: 0.78rem; font-weight: 600; color: var(--cor-texto-secundario);
}
.jornada-progress__hint { font-variant-numeric: tabular-nums; color: #8a939c; }

.jornada-progress__track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.jornada-progress__fill {
    position: absolute; inset: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, #22C660 0%, #7ED957 40%, #C1FF72 70%, #9BEF00 100%);
    box-shadow: 0 0 10px rgba(34, 198, 96, 0.28);
    will-change: transform;
}
.jornada-progress__fill.is-shine::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    transform: translateX(-120%);
    animation: bar-shine 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bar-shine {
    0%, 55% { transform: translateX(-120%); }
    85%, 100% { transform: translateX(120%); }
}

.kpi-card--premium {
    position: relative;
    gap: 0.2rem;
    text-align: left;
    overflow: hidden;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
    will-change: transform;
}
.kpi-card__glow {
    position: absolute; inset: auto auto -20% -10%;
    width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 198, 96, 0.16), transparent 70%);
    opacity: 0.55; pointer-events: none;
}
.kpi-card--live .kpi-value { position: relative; z-index: 1; }
.kpi-card__icon {
    width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center; margin-bottom: 0.4rem;
    background: rgba(0,0,0,0.04);
}
.kpi-card__icon .icon-asset { width: 16px; height: 16px; }
.kpi-card--live .kpi-card__icon { background: rgba(34, 198, 96, 0.12); }
.kpi-card--accent { background: linear-gradient(180deg, #fff 0%, #F3FBF6 100%); }
.kpi-card--soft { background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.kpi-card--bank { background: linear-gradient(180deg, #fff 0%, #f6f7ff 100%); }

#kpi-restantes-hoje { color: var(--cor-texto-primario); transition: color 0.35s ease; }
#kpi-restantes-hoje.is-warning,
.kpi-card.is-warning #kpi-restantes-hoje { color: var(--cor-aviso); }
#kpi-restantes-hoje.is-done,
.kpi-card.is-done #kpi-restantes-hoje { color: var(--cor-sucesso); }

.kpi-mini-bar {
    margin-top: 0.75rem; height: 6px; border-radius: 999px;
    background: #eef2f4; overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.04);
}
.kpi-mini-bar__fill {
    display: block; width: 100%; height: 100%;
    transform: scaleX(0); transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(34, 198, 96, 0.55), rgba(34, 198, 96, 0.95));
    will-change: transform;
}
#bar-faltantes-mes {
    background: linear-gradient(90deg, rgba(34, 198, 96, 0.45), rgba(34, 198, 96, 0.95));
}
#bar-extras-mes {
    background: linear-gradient(90deg, rgba(13,202,240,0.45), rgba(34, 198, 96, 0.85));
}
#bar-banco-horas {
    background: linear-gradient(90deg, rgba(108,117,125,0.35), rgba(34, 198, 96, 0.75));
}

.indicator-card__top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem; margin-bottom: 0.15rem;
}
.indicator-card__chip {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
    background: rgba(34, 198, 96, 0.1); color: #014B21;
}
.indicator-card__chip--meta {
    background: rgba(108,117,125,0.12); color: #495057;
}
.indicator-card__hint {
    display: block; margin-top: 0.4rem;
    font-size: 0.72rem; font-weight: 500; color: var(--cor-texto-secundario);
}

@media (min-width: 900px) {
    .app-container-mobile { max-width: 880px; }
    .motivation-banner { padding: 1.45rem 1.5rem; grid-template-columns: 1fr 110px; }
    .motivation-banner__art { width: 104px; height: 104px; }
}

@media (max-width: 639px) {
    .motivation-banner {
        grid-template-columns: 1fr;
        padding: 1.1rem 1rem 1.15rem;
        border-radius: 14px;
    }
    .motivation-banner__art { display: none; }
    .sk-banner { height: 118px; }
    .card-premium__icon { width: 36px; height: 36px; border-radius: 10px; }
    .jornada-progress-badge { height: 30px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sk-shimmer,
    .motivation-banner__shine::before,
    .motivation-particle,
    .jornada-progress__fill.is-shine::after {
        animation: none !important;
    }
}
