/* ==========================================================================
   SISTEMA VENDAS RASTREMIX - FOLHA DE ESTILOS PRINCIPAL
   ========================================================================== */

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    font-feature-settings: "tnum" 1, "cv05" 1; 
    transition: background-color 0.4s ease; 
    -webkit-tap-highlight-color: transparent; 
}

.fade-in { 
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(12px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.hidden { 
    display: none !important; 
}

.hidden-screen { 
    display: none !important; 
}

.input-style { 
    padding: 0.8rem 1rem; 
    background-color: #f8fafc; 
    border: 1.5px solid #e2e8f0; 
    border-radius: 0.85rem; 
    color: #09090b; 
    font-size: 0.95rem; 
    font-weight: 700; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    width: 100%; 
}

.input-style:focus { 
    outline: none; 
    border-color: #dc2626; 
    background-color: #ffffff; 
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); 
}

.input-error { 
    border-color: #ef4444 !important; 
    background-color: #fef2f2 !important; 
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important; 
}

.portal-card { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
}

.portal-card:hover { 
    transform: translateY(-8px); 
    filter: brightness(1.03); 
}

.sub-btn-active { 
    background-color: #facc15 !important; 
    color: #000 !important; 
    border-color: #000 !important; 
    transform: scale(1.05); 
}

label { 
    color: #3f3f46; 
    font-weight: 900; 
    text-transform: uppercase; 
    font-size: 10px; 
    letter-spacing: 0.06em; 
    margin-left: 4px; 
}

/* ==========================================================================
   SUPORTE INTEGRAL A MODO CLARO E NOTURNO (DARK MODE)
   ========================================================================== */

html.dark body { 
    background-color: #0b0f19 !important; 
    color: #f8fafc !important; 
}

html.dark .bg-white { 
    background-color: #131b2e !important; 
    color: #f8fafc !important; 
    border-color: #1e293b !important; 
}

html.dark .bg-slate-50, 
html.dark .bg-slate-50\/50, 
html.dark .bg-gray-50 { 
    background-color: #0f172a !important; 
    border-color: #1e293b !important; 
    color: #f1f5f9 !important; 
}

html.dark .bg-slate-100 { 
    background-color: #1e293b !important; 
    color: #f1f5f9 !important; 
    border-color: #334155 !important; 
}

html.dark .text-slate-900, 
html.dark .text-slate-950, 
html.dark .text-black { 
    color: #f8fafc !important; 
}

html.dark .text-slate-700, 
html.dark .text-slate-600, 
html.dark .text-gray-700, 
html.dark .text-gray-600 { 
    color: #cbd5e1 !important; 
}

html.dark .text-slate-500, 
html.dark .text-gray-500 { 
    color: #94a3b8 !important; 
}

html.dark .border-slate-200, 
html.dark .border-slate-100, 
html.dark .border-gray-200, 
html.dark .border-gray-100 { 
    border-color: #334155 !important; 
}

html.dark .input-style { 
    background-color: #1e293b !important; 
    color: #f8fafc !important; 
    border-color: #334155 !important; 
}

html.dark .input-style:focus { 
    background-color: #0f172a !important; 
    border-color: #dc2626 !important; 
}

html.dark label { 
    color: #cbd5e1 !important; 
}

html.dark table tbody td { 
    border-color: #1e293b !important; 
    color: #cbd5e1 !important; 
}

@media (max-width: 640px) {
    .input-style { 
        padding: 0.7rem 0.85rem; 
        font-size: 0.9rem; 
    }
    .plan-cat-btn { 
        padding: 0.75rem 0.4rem; 
        font-size: 10px; 
    }
}

/* ==========================================================================
   SCROLLBAR CUSTOMIZADA
   ========================================================================== */

::-webkit-scrollbar { 
    width: 6px; 
    height: 6px; 
}

::-webkit-scrollbar-track { 
    background: #f1f5f9; 
}

::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #94a3b8; 
}

/* ==========================================================================
   BOTÕES DE CATEGORIA DE PLANO
   ========================================================================== */

.plan-cat-btn { 
    padding: 0.85rem 0.5rem; 
    border-radius: 0.85rem; 
    font-weight: 900; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    color: white !important; 
    border: 2px solid transparent; 
    cursor: pointer; 
    opacity: 0.75; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
}

.plan-cat-btn:hover { 
    opacity: 1; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.15); 
}

.plan-btn-rastremix { 
    background-color: #DC2626 !important; 
    border-color: #B91C1C !important; 
}

.plan-btn-gpsmy { 
    background-color: #16a34a !important; 
    border-color: #15803d !important; 
}

.plan-btn-topy { 
    background-color: #2563eb !important; 
    border-color: #1d4ed8 !important; 
}

.plan-cat-btn.active-rastremix,
.plan-cat-btn.active-gpsmy,
.plan-cat-btn.active-topy { 
    opacity: 1 !important; 
    transform: scale(1.06) translateY(-2px); 
    border-color: #0f172a !important; 
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(15, 23, 42, 0.2) !important; 
}

/* ==========================================================================
   SIDEBAR ITENS DE NAVEGAÇÃO
   ========================================================================== */

.sidebar-item { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.75rem 1rem; 
    border-radius: 0.75rem; 
    font-weight: 800; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    color: #94a3b8; 
    transition: all 0.2s ease; 
    cursor: pointer; 
    width: 100%; 
    border: 1px solid transparent; 
}

.sidebar-item:hover { 
    color: #ffffff; 
    background-color: rgba(255, 255, 255, 0.08); 
}

.sidebar-item.active { 
    color: #ffffff !important; 
    background-color: #dc2626 !important; 
    border-color: #ef4444 !important; 
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35); 
}

/* ==========================================================================
   BARRA FIXA MOBILE (STICKY ACTION BAR)
   ========================================================================== */

#rs-mobile-sticky-bar {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
}

html.dark #rs-mobile-sticky-bar {
    background-color: rgba(15, 23, 42, 0.96) !important;
    border-color: #334155 !important;
}

html.dark #rs-mob-btn-back {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

/* ==========================================================================
   UTILITÁRIOS RESPONSIVOS & MOBILE
   ========================================================================== */

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 640px) {
    button, a, input, select {
        touch-action: manipulation;
    }
}

