[x-cloak] { display: none !important; }

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }

/* Material Symbols Icon Configuration */
.icon {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}
.icon-sm { font-size: 18px; }
.icon-lg { font-size: 28px; }

/* Brand gradients */
.bg-brand-gradient { background: linear-gradient(135deg, #1D7882 0%, #166068 100%); }
.bg-emerald-gradient { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.bg-rose-gradient { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); }
.text-gradient-brand {
    background: linear-gradient(135deg, #1D7882 0%, #166068 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tabular Nums for Financial Values */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Focus ring with Petroleum Blue identity */
:focus-visible { outline: 2px solid #1D7882; outline-offset: 2px; border-radius: 6px; }

/* Premium Elevation Shadows */
.shadow-xs { box-shadow: 0 1px 2px rgba(15,23,42,0.03); }
.shadow-soft { box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.05); }
.shadow-md { box-shadow: 0 4px 12px rgba(15,23,42,0.06), 0 8px 24px rgba(15,23,42,0.08); }
.shadow-brand-glow { box-shadow: 0 8px 20px -4px rgba(29,120,130,0.35); }
.shadow-elevated { box-shadow: 0 12px 40px rgba(29,120,130,0.12), 0 4px 12px rgba(15,23,42,0.04); }

/* Elevation + motion primitives */
.premium-card {
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease;
}
.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(29,120,130,0.1), 0 2px 8px rgba(15,23,42,0.04);
    border-color: rgba(29,120,130,0.2);
}

.btn-premium { transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .12s cubic-bezier(.2,.8,.2,1), filter .12s ease; }
.btn-premium:hover  { transform: translateY(-1px); filter: brightness(1.03); }
.btn-premium:active { transform: translateY(0); filter: brightness(0.97); }

/* Navigation Item styles */
.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
.nav-item.active {
    background: linear-gradient(90deg, #f0f7f8 0%, rgba(240,247,248,0.2) 100%);
    color: #1D7882;
    font-weight: 700;
    border-left: 4px solid #1D7882;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(29,120,130,0.04);
}
.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 2px 6px rgba(15,23,42,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.nav-item.active .nav-icon {
    color: #1D7882;
    box-shadow: 0 2px 8px rgba(29,120,130,0.15);
}

/* Glass accent */
.glass-chip {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226,232,240,0.8);
}

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e8eef3 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Entrance & Modal Animations */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fade-up .3s cubic-bezier(.2,.8,.2,1) both; }

@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0.9; }
    to { transform: translateY(0); opacity: 1; }
}
.bottom-sheet-enter {
    animation: slide-up .35s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes toast-in { from{opacity:0; transform:translateY(-8px) scale(.95);} to{opacity:1; transform:translateY(0) scale(1);} }
.toast { animation: toast-in .3s cubic-bezier(.2,.8,.2,1) both; }

@keyframes check { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake { 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.animate-shake { animation: shake .4s ease-in-out; }

/* Progress bar fill transition */
.progress-fill { transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* KPI indicator bar */
.kpi-card { 
    position: relative; overflow: hidden;
}
.kpi-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #1D7882, #569fa5);
    border-radius: 3px 3px 0 0;
}

/* FAB Center style for mobile PWA navigation */
.fab-center {
    background: linear-gradient(135deg, #1D7882, #166068);
    box-shadow: 0 4px 20px rgba(29,120,130,0.4);
    transform: translateY(-12px);
    transition: transform 0.2s cubic-bezier(.2,.8,.2,1);
}
.fab-center:active {
    transform: translateY(-8px) scale(0.95);
}

/* Navigation items for Mobile Bottom Nav */
.nav-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 56px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-mobile-item.active {
    color: #1D7882;
    font-weight: 700;
}
.nav-mobile-item.active .icon {
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

/* Quick Action circle buttons */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
}
.quick-action-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #f0f7f8;
    color: #1D7882;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(29, 120, 130, 0.08);
}
.quick-action-btn:hover .quick-action-circle {
    background-color: #1D7882;
    color: white;
    box-shadow: 0 6px 16px rgba(29, 120, 130, 0.25);
    transform: translateY(-2px);
}

/* Badge counter */
.badge-counter {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    font-weight: 800;
    background-color: #e11d48;
    color: white;
    border-radius: 9px;
    padding: 0 5px;
    text-align: center;
    border: 2px solid white;
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up, .progress-fill, .premium-card, .btn-premium, .modal-enter, .toast { animation: none !important; transition: none !important; }
}

@supports(padding: max(0px)) {
    .pb-safe {
        padding-bottom: min(20px, max(12px, env(safe-area-inset-bottom)));
    }
}

/* ============================================================ */
/* MATERIAL SYMBOLS INLINE (em textos dentro de elements)       */
/* ============================================================ */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    vertical-align: middle;
    user-select: none;
}

/* ============================================================ */
/* LOGIN SPLIT-SCREEN PREMIUM                                   */
/* ============================================================ */

/* Hero left: círculos de fundo animados suavemente */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-16px) scale(1.04); }
}

/* Spinner de loading no botão */
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: btn-spin 0.7s linear infinite;
}

/* Campo de formulário com ícone interno */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 18px;
}
.input-icon-wrap input { padding-left: 40px; }

/* Avatar stack (social proof) */
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -10px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* Login hero bullet list */
.hero-bullet-list { list-style: none; padding: 0; margin: 0; }
.hero-bullet-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-weight: 600;
}
.hero-bullet-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form toggle tabs */
.auth-tab-active {
    background: linear-gradient(135deg, #1D7882 0%, #166068 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(29,120,130,0.3);
}

/* ============================================================ */
/* GLASS CARD (social proof / alertas ao vivo)                  */
/* ============================================================ */
.glass-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
}

/* ============================================================ */
/* MODAL HANDLE BAR (PWA bottom sheet indicator)                */
/* ============================================================ */
.modal-handle {
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
    margin: 0 auto 16px;
}

/* ============================================================ */
/* PROGRESS BAR ANIMADA                                         */
/* ============================================================ */
@keyframes progress-grow {
    from { width: 0; }
}
.progress-fill {
    animation: progress-grow 1s cubic-bezier(.4,0,.2,1) forwards;
}
