:root {
    --primary: #0f172a;
    --primary-accent: #2563eb;
    --primary-hover: #1d4ed8;
    --success-accent: #059669;
    --warning-accent: #d97706;
    --danger-accent: #dc2626;
    --bg-light: #f8fafc;
    --surface-card: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.35rem;
}

.brand-badge {
    background: linear-gradient(135deg, #2563eb, #10b981);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.navbar-nav .nav-link {
    white-space: nowrap !important;
    font-size: 0.92rem;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
    transition: color 0.15s ease-in-out;
}

@media (min-width: 992px) and (max-width: 1250px) {
    .navbar-nav .nav-link {
        font-size: 0.84rem;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
}

/* Cards */
.card-custom {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.card-stat {
    border-left: 4px solid var(--primary-accent);
}

/* Status Badges */
.badge-status-draft {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-status-extracting {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-status-ready {
    background-color: #dcfce7;
    color: #166534;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover {
    border-color: var(--primary-accent);
    background-color: #eff6ff;
}

/* Regimes Comparison */
.regime-recommended {
    border: 2px solid #10b981 !important;
    position: relative;
}

.regime-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 1.25rem;
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pricing-featured {
    border: 2px solid #2563eb !important;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 9999px;
}

/* Feature Icons */
.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Hero Gradients & Guide Banner */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%) !important;
    border-radius: 1.5rem !important;
    padding: 3rem 2.5rem !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.hero-guide-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    border-radius: 1.5rem !important;
    padding: 3rem 2.5rem !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25) !important;
}

.hero-guide-banner h2,
.hero-guide-banner h5,
.hero-guide-banner h6,
.hero-guide-banner strong {
    color: #ffffff !important;
}

.hero-guide-banner .lead,
.hero-guide-banner p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-guide-banner .shield-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(8px);
}

/* Manual Tabs Navigation */
.manual-tabs .nav-link {
    color: #475569 !important;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
}

.manual-tabs .nav-link:hover {
    color: #1e293b !important;
    background-color: #f1f5f9;
}

.manual-tabs .nav-link.active {
    background-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Estilos de Impressão (Relatório PDF Oficial) */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt;
    }

    nav.navbar, footer, .no-print, .btn, .alert {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .table {
        font-size: 10pt;
    }
}
