/* Estilos globais e Tema Mover / LeanTracker */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

/* ==========================================
   LANDING PAGE (ESTILO 1ª PRINT)
   ========================================== */
.landing-body {
    background: linear-gradient(rgba(11, 19, 36, 0.88), rgba(11, 19, 36, 0.94)), 
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-hero {
    min-height: 100vh;
}

.landing-title {
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-primary-highlight {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.glass-card {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-control-custom {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.form-control-custom:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-bright-blue {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-bright-blue:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 114, 255, 0.4);
    color: #ffffff;
}

/* ==========================================
   TELA DE AUTENTICAÇÃO (ESTILO 3ª PRINT)
   ========================================== */
.auth-page-body {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.90)), 
                url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.border-bottom-red {
    border-bottom: 3px solid #dc2626 !important;
}

.logo-node-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.5rem;
}

.auth-main-wrapper {
    flex-grow: 1;
    padding: 2rem 1rem;
}

.auth-card-grey {
    background-color: #e2e8f0;
    border-radius: 20px;
    width: 100%;
    max-width: 410px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.input-group-pill {
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.input-group-pill .form-control {
    border-radius: 0 25px 25px 0;
    padding: 0.65rem 0.75rem;
}

.btn-red-pill {
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    transition: all 0.2s ease;
}

.btn-red-pill:hover {
    background-color: #b91c1c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.4);
}

/* ==========================================
   CAMPO CNPJ AUTOPREENCHIDO (AMARELADO)
   ========================================== */
.cnpj-autofilled {
    background-color: #fef9c3 !important; /* Amarelo suave */
    border-color: #eab308 !important; /* Borda amarela/âmbar */
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.cnpj-autofilled:focus {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
}

/* ==========================================
   DASHBOARD & FORMULÁRIOS INTERNOS
   ========================================== */
.navbar-mover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.kpi-card {
    border: none;
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.kpi-icon.blue {
    background-color: #dbeafe;
    color: #2563eb;
}

.kpi-icon.green {
    background-color: #d1fae5;
    color: #059669;
}

.kpi-icon.amber {
    background-color: #fef3c7;
    color: #d97706;
}

.form-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.form-tabs .nav-link:hover {
    color: var(--primary-color);
}

.form-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
}

.badge-complete {
    background-color: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 600;
}

.badge-pending {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 600;
}

.main-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

footer {
    margin-top: auto;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}
