:root {
    --bg-mid: #053B50;
    --bg-light: #284d5c;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-subtle: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --accent-green: #73C076;
    --accent-green-border: #5BA85E;
    --accent-blue: #64B5F6;
    --accent-blue-border: #2196F3;
    --accent-red: #E57373;
    --accent-red-border: #F44336;
    --ease-water: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-slow: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
}

/* ============================================
   FUNDO GRADIENTE CORPORATIVO
   ============================================ */
.water-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0, 82, 136, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(0, 50, 100, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(3, 35, 65, 0.3) 0%, transparent 70%),
        linear-gradient(160deg, #031828 0%, #042035 30%, #052847 55%, #04223d 80%, #021628 100%);
}

/* Grid sutil de fundo estilo tech/cyber */

/* Brilho superior difuso */
.water-bg::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(0, 140, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Esconde o elemento de video sem remover do HTML */
.bg-video {
    display: none;
}

.video-overlay {
    display: none;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.app-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top, 24px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
    overflow-x: hidden;
}


@media (min-width: 768px) {
    .app-container {
        padding: 48px 60px;
        max-width: 1400px;
    }
}

@media (min-width: 1200px) {
    .app-container {
        padding: 48px 80px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

@media (min-width: 768px) {
    .header-logo {
        width: 56px;
    }
}

.greeting {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
}

.greeting-hello {
    opacity: 0;
    transform: scale(0.8) rotate(-2deg);
    animation: greetingHelloAppear 0.8s ease-out 0.3s forwards;
}

.greeting-name {
    display: inline-block;
    opacity: 0;
    animation: greetingNameAppear 0.6s ease-out 1.2s forwards;
}

@keyframes greetingHelloAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes greetingNameAppear {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@media (min-width: 768px) {
    .greeting { font-size: 24px; }
}

.profile-btn, .icon-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--ease-water);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.profile-btn::before, .icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}

.profile-btn:hover, .icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s var(--ease-water);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-btn svg {
    transition: transform 0.4s var(--ease-water);
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

/* Fim da seção do Header */

/* ============================================
   CONTEÚDO
   ============================================ */
.content-area {
    flex: 1;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.view {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    max-width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.8s var(--ease-water);
}

.view.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.section-header {
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 16px;
    margin-bottom: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .section-title { font-size: 22px; }
}

.section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 300;
}

.text-link {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: opacity 0.4s var(--ease-water);
    opacity: 0.8;
    white-space: nowrap;
    flex-shrink: 0;
}

.text-link:hover { opacity: 1; }

.search-bar {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 10px 16px;
    transition: all 0.6s var(--ease-water);
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

@media (min-width: 768px) {
    .search-bar {
        max-width: 600px;
        margin: 0 auto;
        padding: 12px 20px;
    }
}

@media (min-width: 1024px) {
    .search-bar {
        max-width: 700px;
    }
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
    font-weight: 300;
    min-width: 0;
    transition: opacity 0.35s var(--ease-water);
}

.search-bar input::placeholder { color: var(--text-muted); }

/* ── Colapso da search bar ao expandir card ───────────────────────────────
   A barra encolhe da direita para a esquerda até sobrar só a lupa.
   Usamos um wrapper externo (.search-bar-wrap) que mantém a largura total
   e alinha o conteúdo à esquerda — assim a lupa fica parada e o lado
   direito é que desaparece.
   ──────────────────────────────────────────────────────────────────────── */
.search-bar-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .search-bar-wrap {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .search-bar-wrap {
        max-width: 700px;
    }
}

/* Quando colapsado, a barra encolhe para a largura exata da lupa + padding */
.search-bar-wrap.collapsed .search-bar {
    width: 40px;
    max-width: 40px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    pointer-events: none;
    margin: 0;
}

.search-bar-wrap.collapsed .search-bar .search-icon {
    margin-right: 0;
}

.search-bar-wrap.collapsed .search-bar input {
    opacity: 0;
    pointer-events: none;
}

.mt-4 { margin-top: 16px; }

/* ============================================
   ESTADO VAZIO
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    min-height: 300px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s var(--ease-water);
    width: 100%;
    max-width: 100%;
}

.empty-state.active {
    opacity: 1;
    pointer-events: auto;
}

.empty-text {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
   
}

@media (min-width: 768px) {
    .empty-text {
        font-size: 16px;
        padding: 20px 32px;
    }
}

/* ============================================
   CARROSSEL COM PEEK 3D
   ============================================ */

/* Painel de fundo atras dos 3 cards — cobre card central + laterais */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* centro (130px) + offset (200px) + metade do card lateral (115px) + padding (40px) = ~485px × 2 lados */
    width: min(680px, 100vw);
    height: 100%;
    
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 40px;
    pointer-events: none;
    z-index: 0;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.8s var(--ease-water);
}

@media (min-width: 768px) {
    .carousel-bg {
        /* centro (180px) + offset (420px) + metade do card lateral (159px) + padding (60px) = ~819px × 2 lados */
        width: min(1240px, 100vw);
        border-radius: 52px;
    }
}

/* Quando card expandido, o bg some suavemente */
.carousel-container.has-expanded .carousel-bg {
    opacity: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 440px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s var(--ease-water);
    perspective: 1200px;
    perspective-origin: center center;
    touch-action: pan-y;
    overflow: visible;
}

@media (min-width: 768px) {
    .carousel-container {
        height: 560px;
        padding-top: 40px;
    }
}

.carousel-container.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover lift controlado por variável (animada via GSAP), para nunca
   conflitar com o `transform` que o React gerencia no carrossel. */
@property --card-lift {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

.service-card {
    position: absolute;
    top: 20px;
    width: 260px;
    max-width: calc(100vw - 80px);
    height: 340px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 24px 20px;
    transition: all 0.8s var(--ease-elastic);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .service-card {
        top: 40px;
        width: 360px;
        max-width: calc(100vw - 120px);
        height: 420px;
        padding: 36px 28px;
        border-radius: 40px;
    }
}

@media (min-width: 1024px) {
    .service-card {
        width: 380px;
    }
}

.service-card:not(.expanded):hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ============================================
   CAROUSEL 3D — DESKTOP ONLY (min-width: 1100px)
   ============================================ */
@media (min-width: 1100px) {

    /* Container com perspectiva 3D */
    .carousel-container {
        perspective: 1200px;
        perspective-origin: center center;
        overflow: visible;
    }

    /* No desktop, o card central NÃO usa o translateY(-4px) do hover genérico */
    .service-card.card-center:not(.expanded):hover {
        transform: translateX(-50%) scale(1.02) rotateY(0deg) !important;
    }

    /* Cards laterais não usam o hover genérico (ele brigaria com os transforms inline do JS) */
    .service-card.card-left:not(.expanded):hover,
    .service-card.card-right:not(.expanded):hover {
        transform: inherit; /* mantém o transform do JS via style inline */
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.25);
    }

    /* ── Seta esquerda ────────────────────────────────────────────────── */
    .service-card.card-left:not(.expanded)::before {
        content: '◀';
        position: absolute;
        left: -38px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: rgba(255, 255, 255, 0.9);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 20;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .service-card.card-left:not(.expanded):hover::before {
        opacity: 1;
    }

    /* ── Seta direita ─────────────────────────────────────────────────── */
    .service-card.card-right:not(.expanded)::before {
        content: '▶';
        position: absolute;
        right: -38px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: rgba(255, 255, 255, 0.9);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 20;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .service-card.card-right:not(.expanded):hover::before {
        opacity: 1;
    }

    /* ── Glass overlay ao hover nos laterais ─────────────────────────── */
    .service-card.card-left:not(.expanded)::after,
    .service-card.card-right:not(.expanded)::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        background: rgba(255, 255, 255, 0.04);
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 15;
    }

    .service-card.card-left:not(.expanded):hover::after,
    .service-card.card-right:not(.expanded):hover::after {
        opacity: 1;
    }

    /* Cursor pointer explícito nos laterais */
    .service-card.card-left:not(.expanded),
    .service-card.card-right:not(.expanded) {
        cursor: pointer;
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .status-badge {
        font-size: 14px;
        padding: 6px 16px;
        margin-bottom: 28px;
    }
}

.status-in-progress {
    background: var(--accent-green);
    border: 2px solid var(--accent-green-border);
    color: var(--bg-deep);
}
.status-completed {
    background: var(--accent-blue);
    border: 2px solid var(--accent-blue-border);
    color: var(--bg-deep);
}
.status-incomplete {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-border);
    color: var(--bg-deep);
}

.service-name {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .service-name {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

.service-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 8px;
}

/* Prévia da descrição no card fechado: trunca em N linhas com reticências. */
.service-desc-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}

/* No card fechado, a data/rodapé ficam coladas embaixo (antes era o flex:1
   do .service-desc que empurrava). No expandido, fluxo natural de cima p/ baixo. */
.service-card:not(.expanded) .service-meta {
    margin-top: auto;
}

@media (min-width: 768px) {
    .service-desc {
        font-size: 16px;
        margin-left: 0;
    }
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    font-weight: 300;
}

.service-meta svg { flex-shrink: 0; }

.progress-track {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 3px;
    margin-top: auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .progress-track { height: 24px; }
}

.progress-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 1.5s var(--ease-water);
    min-width: 4px;
}

.progress-fill.fill-green { background: var(--accent-green); }
.progress-fill.fill-blue { background: var(--accent-blue); }
.progress-fill.fill-red { background: var(--accent-red); }

.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.7s var(--ease-water);
    transform: translateY(-10px);
}

.report-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.report-links .pdf-link {
    margin-top: 0;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--glass-border-subtle);
    border-radius: 100px;
    color: white;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.4s var(--ease-water);
    font-weight: 300;
}

.pdf-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

/* Botão de fechar (X) do card expandido — global, vale em mobile e desktop. */
.card-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.card-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.service-card.expanded {
    cursor: default;
    z-index: 30 !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    overflow-y: auto;
    width: calc(100vw - 32px);
    max-width: 640px;
    height: auto;
    min-height: 400px;
    max-height: calc(100vh - 200px);
    max-height: calc(100dvh - 200px);
    left: 50%;
    transform: translateX(-50%) scale(1) rotate(0deg) !important;
    top: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

@media (min-width: 768px) {
    .service-card.expanded {
        width: calc(100vw - 80px);
        max-width: 760px;
    }
}

@media (min-width: 1100px) {
    .service-card.expanded {
        max-width: 820px;
    }
}

.service-card.expanded .service-details {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0);
    transition-delay: 0.15s;
}

.carousel-container.has-expanded .service-card:not(.expanded) {
    opacity: 0 !important;
    pointer-events: none;
}

/* ============================================
   HISTÓRICO
   ============================================ */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.history-year-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-year-group + .history-year-group {
    margin-top: 16px;
}

.history-year-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 4px;
    margin-bottom: 4px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.5s var(--ease-water);
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

.history-item:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.99);
}

.history-left { display: flex; flex-direction: column; gap: 2px; }

.history-year {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-month {
    font-size: 16px;
    font-weight: 400;
}

.history-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
}

.history-arrow {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: transform 0.3s var(--ease-water);
}

.history-item:hover .history-arrow {
    transform: translateX(3px);
}

/* ============================================
   MODAL CALENDÁRIO (GLASS EFFECT)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-water);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 360px;
    transform: translateY(20px) scale(0.96);
    transition: all 0.6s var(--ease-water);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .modal-content {
        max-width: 400px;
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .modal-overlay {
        background: rgba(2, 15, 35, 0.72);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s var(--ease-water);
        padding: 20px;
        
    }

    .modal-content {
        background: rgba(226, 226, 226, 0.219);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0) scale(1);
    }

    
    .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        margin: 0 auto 20px;
    }
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 400;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

@media (min-width: 768px) {
    .calendar-grid { gap: 8px; }
}

.cal-day-header {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 50%;
    color: rgba(255,255,255,0.3);
    transition: all 0.3s var(--ease-water);
    font-weight: 300;
    position: relative;
}

.cal-day.empty {
    visibility: hidden;
}

.cal-day.has-service {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cal-day.has-service:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cal-day.has-service:active {
    transform: scale(0.95);
}

.cal-day.today {
    color: white;
    font-weight: 600;
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s var(--ease-water) forwards;
    opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.08s; }
.animate-in:nth-child(3) { animation-delay: 0.16s; }
.animate-in:nth-child(4) { animation-delay: 0.24s; }
.animate-in:nth-child(5) { animation-delay: 0.32s; }
.animate-in:nth-child(6) { animation-delay: 0.4s; }
.animate-in:nth-child(7) { animation-delay: 0.48s; }
.animate-in:nth-child(8) { animation-delay: 0.56s; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* ============================================
   SAFE AREAS
   ============================================ */
@supports (padding: max(0px)) {
    .app-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}



    
:root {
  --subMarineColor: #0b2f33;        

  --lightShadowColor: #09bdca;
  --lightShadowColor2: #0f96a0;
  --lightShadowColor3: #0b2f33;

  --darkShadowColor: #1296a5;

  --periscopeColor: #26b1ba;      

  --propellerColor: #1c8f96;
  --propellerColor2: #0e5f64;

  --windowLightColor: #9fe3e8;   
  --lightColor: #4c6f72;
}



.seaContainer {
    position: absolute;
    margin-top: 250px;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.submarine__container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 200px;
    transform: translate(-50%, -50%);
    will-change: transform;
}

@media (max-width: 768px) {
    .submarine__container {
        transform: translate(-50%, -50%) scale(0.75);
    }
}

@media (max-width: 480px) {
    .submarine__container {
        transform: translate(-50%, -50%) scale(0.55);
    }
}

@media (max-width: 360px) {
    .submarine__container {
        transform: translate(-50%, -50%) scale(0.45);
    }
}

.submarine__body {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 80px;
  background: var(--subMarineColor);
  border-radius: 50px;
  transform: translate(-50%, -50%);
}

.submarine__propeller {
  position: absolute;
  left: 80%;
  top: 50%;
  width: 30px;
  height: 50px;
  transform: translate(0%, -50%);
  perspective: 600px;
}

.propeller__perspective {
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
  animation: rotateInfinite 1s linear infinite;
  cursor: pointer;
}

.submarine__propeller-parts {
  position: absolute;
  left: 0%;
  width: 100%;
  height: 100%;
  top: 0%;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.darkOne {
  top: 0%;
  background: var(--propellerColor2);
  transform: rotateY(180deg) rotateX(225deg);
}

.lightOne {
  top: 0%;
  background: var(--propellerColor);
  transform: rotateX(45deg);
}

.submarine__sail {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 90px;
  height: 50px;
  transform: translate(-50%, -100%);
  background: var(--lightShadowColor2);
  clip-path: polygon(0% 0%, 70% 0%, 100% 100%, 0% 100%);
}

.submarine__sail-shadow {
  position: absolute;
  width: 160%;
  height: 10%;
  background: var(--darkShadowColor);
  border-radius: 5px;
}

.dark1 {
  left: 0%;
  top: 0%;
  transform: translate(0%, -33%);
}

.dark2 {
  left: 0%;
  top: 50%;
}

.light1 {
  left: 20%;
  top: 20%;
  width: 50%;
  background: var(--lightShadowColor);
}

.submarine__window {
  width: 25px;
  height: 25px;
  border-radius: 100%;
  background-image: linear-gradient(45deg, var(--windowLightColor), #fff);
  border: 8px solid var(--darkShadowColor);
  z-index: 10;
  animation: shadow-change 1s linear infinite;
}

.one,
.two {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.one {
  left: 40%;
}

.two {
  left: 20%;
}

.submarine__shadow-dark {
  position: absolute;
  left: 70%;
  top: 50%;
  width: 70px;
  height: 10px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  background: var(--darkShadowColor);
}

.submarine__shadow-light {
  position: absolute;
  left: 35%;
  top: 13%;
  width: 100px;
  height: 6px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  background: var(--lightShadowColor);
}

.submarine__shadow-arcLight {
  position: absolute;
  top: 65%;
  left: 80%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lightShadowColor);
}

.submarine__periscope {
  position: absolute;
  top: 0%;
  left: 40%;
  width: 20px;
  height: 50px;
  border-right: 10px solid var(--lightShadowColor3);
  border-top: 10px solid var(--lightShadowColor2);
  border-left: 0px solid transparent;
  border-bottom: 0px solid transparent;
  border-top-right-radius: 10px;
}

.submarine__periscope-glass {
  position: absolute;
  left: 40%;
  top: 0%;
  width: 5px;
  height: 15px;
  background: var(--propellerColor2);
  transform: translate(-50%, -15%);
}

.light {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 500px;
  height: 100px;
  background: linear-gradient(to left, var(--lightColor), transparent);
  clip-path: polygon(0% 0%, 50% 45%, 50% 55%, 0% 100%);
  transform: translate(-18%, -45%);
  opacity: 0;
  will-change: opacity;
}

.bubbles__container {
  position: absolute;
  top: 50%;
  left: calc(76% + 60px);
  width: 40px;
  height: 80px;
  transform: translateY(-50%);
  will-change: transform;
  pointer-events: none;
}

.bubbles {
  position: absolute;
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  will-change: opacity, transform;
}

/* Bolhas nascem no centro do container (ponto de saída da turbina) */
.bubble-1 { width: 8px;  height: 8px;  top: 45%; left: 20%; opacity: 0; }
.bubble-2 { width: 5px;  height: 5px;  top: 55%; left: 10%; opacity: 0; }
.bubble-3 { width: 10px; height: 10px; top: 35%; left: 15%; opacity: 0; }
.bubble-4 { width: 6px;  height: 6px;  top: 62%; left: 5%;  opacity: 0; }


/* animation keyframes */
@keyframes shadow-change {
  0%,
  100% {
    background-image: linear-gradient(
      45deg,
      var(--windowLightColor) 0%,
      var(--windowLightColor) 20%,
      #fff 21%,
      #fff 39%,
      var(--windowLightColor) 40%,
      #fff 41%,
      #fff 59%,
      var(--windowLightColor) 60%
    );
  }
  20% {
    background-image: linear-gradient(
      45deg,
      var(--windowLightColor) 20%,
      var(--windowLightColor) 40%,
      #fff 41%,
      #fff 59%,
      var(--windowLightColor) 60%,
      #fff 61%,
      #fff 79%,
      var(--windowLightColor) 80%
    );
  }
  40% {
    background-image: linear-gradient(
      45deg,
      var(--windowLightColor) 40%,
      var(--windowLightColor) 60%,
      #fff 61%,
      #fff 79%,
      var(--windowLightColor) 80%,
      #fff 81%,
      #fff 99%,
      var(--windowLightColor) 0%
    );
  }
  60% {
    background-image: linear-gradient(
      45deg,
      var(--windowLightColor) 60%,
      var(--windowLightColor) 80%,
      #fff 81%,
      #fff 99%,
      var(--windowLightColor) 0%,
      #fff 1%,
      #fff 19%,
      var(--windowLightColor) 20%
    );
  }
  80% {
    background-image: linear-gradient(
      45deg,
      var(--windowLightColor) 80%,
      var(--windowLightColor) 0%,
      #fff 1%,
      #fff 19%,
      var(--windowLightColor) 20%,
      #fff 21%,
      #fff 39%,
      var(--windowLightColor) 40%
    );
  }
}

@keyframes rotateInfinite {
  0% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(180deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

/* ============================================
   TRANSICAO ENTRE PAGINAS
   ============================================ */
body {
    opacity: 1;
    transition: opacity 0.35s ease;
}

body.page-leaving {
    opacity: 0;
}

/* Fade in ao carregar nova pagina */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.app-container {
    animation: pageEnter 0.5s var(--ease-water) both;
}

/* ============================================
   PROFILE BTN ATIVO
   ============================================ */
.profile-btn--active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

@media (min-width: 768px) {
    .profile-avatar {
        width: 96px;
        height: 96px;
    }
}

.profile-avatar-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-fullname {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .profile-fullname { font-size: 24px; }
}

.profile-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}

.profile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .profile-cards {
        max-width: 600px;
        margin: 0 auto;
    }
}

.profile-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .profile-card { padding: 24px 28px; border-radius: 28px; }
}

.profile-card-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.profile-card-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
    font-weight: 300;
}

.profile-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-card-row svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-card-key {
    color: var(--text-muted);
    flex: 1;
    font-size: 13px;
}

.profile-card-val {
    color: var(--text-main);
    font-size: 13px;
    text-align: right;
}

.profile-stat-good { color: var(--accent-green); }
.profile-stat-warn { color: var(--accent-blue); }

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    padding: 12px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s var(--ease-water);
    font-family: inherit;
}

.profile-action-btn:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-action-btn svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-action-btn .btn-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease-water);
}

.profile-action-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.profile-action-btn:hover {
    color: rgba(255,255,255,0.9);
}

.profile-action-btn--danger {
    color: var(--accent-red);
}

.profile-action-btn--danger svg {
    color: var(--accent-red);
}

.profile-action-btn--danger:hover {
    color: #ff8a8a;
}

/* ============================================
   CARD — ELEMENTOS ADICIONAIS
   ============================================ */

/* Tempo em execução — pílula discreta abaixo do badge */
.service-runtime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 14px;
    opacity: 0.85;
}

@media (min-width: 768px) {
    .service-runtime {
        font-size: 12px;
        margin-bottom: 18px;
    }
}

.service-runtime-in-progress {
    color: var(--accent-green);
    background: rgba(115, 192, 118, 0.08);
    border: 1px solid rgba(115, 192, 118, 0.18);
}
.service-runtime-completed {
    color: var(--accent-blue);
    background: rgba(100, 181, 246, 0.08);
    border: 1px solid rgba(100, 181, 246, 0.18);
}
.service-runtime-incomplete {
    color: var(--accent-red);
    background: rgba(229, 115, 115, 0.08);
    border: 1px solid rgba(229, 115, 115, 0.18);
}

/* ID do serviço — rodapé discreto */
.card-footer-id {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.22);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .card-footer-id { font-size: 11px; }
}

/* No estado expandido, o ID some pra nao duplicar */
.service-card.expanded .card-footer-id {
    display: none;
}

/* ============================================
   SEARCH BAR — COLAPSO AO EXPANDIR CARD
   ============================================ */
.search-bar {
    overflow: hidden;
    transition: max-width 0.7s var(--ease-water),
                padding 0.7s var(--ease-water),
                border-color 0.7s var(--ease-water),
                background 0.7s var(--ease-water),
                box-shadow 0.5s var(--ease-water);
    max-width: 100%;
}

.search-bar input {
    transition: opacity 0.4s var(--ease-water),
                width 0.7s var(--ease-water);
    opacity: 1;
}
/* ============================================
   ESTADOS DE ERRO E LOADING DA API
   ============================================ */

.api-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}

.api-error svg {
    color: var(--accent-red);
    opacity: 0.8;
}

.api-error p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    color: var(--text-muted);
}

.api-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.api-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ==========================================
   LOGIN PAGE STYLES (Necessary for Reagent login/page)
   ========================================== */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top, 24px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(100, 181, 246, 0.12);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--accent-blue);
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.login-field {
    margin-bottom: 16px;
}

.login-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 0 44px 0 44px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.login-input.error {
    border-color: rgba(229, 115, 115, 0.7);
    background: rgba(229, 115, 115, 0.06);
}

.login-error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(229, 115, 115, 0.1);
    border: 1px solid rgba(229, 115, 115, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #ef9a9a;
    font-weight: 400;
}

.login-btn {
    width: 100%;
    height: 50px;
    margin-top: 24px;
    background: var(--accent-green);
    border: 2px solid var(--accent-green-border);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hidden { display: none; }

/* ==========================================
   LOGIN PAGE STYLES (Restaurado para Reagent render)
   ========================================== */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top, 24px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(100, 181, 246, 0.12);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--accent-blue);
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.login-field {
    margin-bottom: 16px;
}

.login-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 0 44px 0 44px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.login-error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(229, 115, 115, 0.1);
    border: 1px solid rgba(229, 115, 115, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #ef9a9a;
    font-weight: 400;
}

.login-btn {
    width: 100%;
    height: 50px;
    margin-top: 24px;
    background: var(--accent-green);
    border: 2px solid var(--accent-green-border);
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

/* Novos estilos para ícones e estados de login */
.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-main);
}

.login-error-msg {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(229, 115, 115, 0.1);
    border: 1px solid rgba(229, 115, 115, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #ef9a9a;
    font-weight: 400;
}

.login-error-msg.visible {
    display: flex;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.login-btn.loading .btn-spinner {
    display: inline-block;
}

.login-btn.loading .btn-text {
    opacity: 0.85;
}

.hidden { display: none !important; }
