/* ============================================
   CONSULTA FÁCIL BRASIL - Design System
   Dark Glassmorphism Theme
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f3a;
    --bg-tertiary: #162a4a;
    --bg-card: rgba(15, 31, 58, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-sidebar: linear-gradient(180deg, #0d1b33 0%, #0a1628 50%, #091220 100%);

    --accent: #00d4aa;
    --accent-light: #33e0be;
    --accent-dark: #00a888;
    --accent-glow: rgba(0, 212, 170, 0.3);
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-glow: rgba(124, 58, 237, 0.3);
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --red: #ef4444;
    --red-light: #f87171;
    --green: #22c55e;
    --green-light: #4ade80;
    --blue: #3b82f6;
    --blue-light: #60a5fa;

    --text-primary: #e8edf5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: var(--accent);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(0, 212, 170, 0.3);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --sidebar-width: 280px;
    --header-height: 60px;

    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; }

ul, ol { list-style: none; }

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
    color: inherit;
}

button { cursor: pointer; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---------- Loading Overlay ---------- */
#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ---------- Layout ---------- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sidebar-logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-top: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform var(--transition);
}

.nav-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(0, 212, 170, 0.08);
    color: var(--accent);
}

.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link i, .nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Mobile Header ---------- */
#mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.hamburger-btn:hover {
    background: var(--bg-glass-hover);
}

.mobile-title {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ---------- Main Content ---------- */
#main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 40px;
}

/* ---------- Page Sections ---------- */
.page-section {
    animation: fadeIn 0.4s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.page-section.hidden { display: none; }

.page-header {
    margin-bottom: 32px;
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 svg {
    color: var(--accent);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 48px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 170, 0.12), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(124, 58, 237, 0.12), transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, var(--accent), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-section .hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* ---------- Stats Section ---------- */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* ---------- Feature Cards Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.1);
}

.feature-card:hover::after {
    border-color: var(--accent-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.feature-icon.icon-cep { background: rgba(0, 212, 170, 0.12); color: var(--accent); }
.feature-icon.icon-cnpj { background: rgba(124, 58, 237, 0.12); color: var(--purple-light); }
.feature-icon.icon-cambio { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.feature-icon.icon-registrobr { background: rgba(59, 130, 246, 0.12); color: var(--blue-light); }
.feature-icon.icon-fipe { background: rgba(239, 68, 68, 0.12); color: var(--red-light); }
.feature-icon.icon-ncm { background: rgba(34, 197, 94, 0.12); color: var(--green-light); }
.feature-icon.icon-ddd { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.feature-icon.icon-feriados { background: rgba(251, 191, 36, 0.12); color: var(--amber-light); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
}

.feature-card:hover .feature-btn { gap: 10px; }

/* ---------- Forms ---------- */
.search-form {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
}

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

.form-input:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #0a1628;
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 212, 170, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(0, 212, 170, 0.08);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ---------- Result Cards ---------- */
.result-container {
    animation: slideUp 0.4s ease;
}

.result-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--transition);
}

.result-card:hover {
    border-color: var(--border-hover);
}

.result-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.result-card-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.result-item {
    padding: 12px 0;
}

.result-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.result-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.result-value.highlight {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.result-value.large {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

/* ---------- Data Tables ---------- */
.data-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-top: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green-light);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--amber-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-purple {
    background: rgba(124, 58, 237, 0.12);
    color: var(--purple-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ---------- Toast Notifications ---------- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 300px;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    animation: slideRight 0.4s ease;
    pointer-events: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.toast-success { border-left: 3px solid var(--green); }
.toast.toast-error { border-left: 3px solid var(--red); }
.toast.toast-info { border-left: 3px solid var(--blue); }

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast.toast-success .toast-icon { color: var(--green); }
.toast.toast-error .toast-icon { color: var(--red); }
.toast.toast-info .toast-icon { color: var(--blue); }

.toast-message {
    font-size: 0.88rem;
    color: var(--text-primary);
    flex: 1;
}

.toast-close {
    flex-shrink: 0;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition-fast);
}

.toast-close:hover { color: var(--text-primary); }

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-line:last-child { width: 60%; }

.loading-container {
    padding: 28px;
}

.loading-container .skeleton-line:nth-child(1) { width: 80%; }
.loading-container .skeleton-line:nth-child(2) { width: 65%; }
.loading-container .skeleton-line:nth-child(3) { width: 90%; }
.loading-container .skeleton-line:nth-child(4) { width: 45%; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ---------- Cities Grid (DDD) ---------- */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.city-tag {
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-align: center;
}

.city-tag:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ---------- Holiday Cards ---------- */
.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.holiday-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.holiday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.holiday-card.type-nacional::before { background: var(--accent); }
.holiday-card.type-estadual::before { background: var(--purple); }
.holiday-card.type-municipal::before { background: var(--amber); }

.holiday-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.holiday-date {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.holiday-month {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.holiday-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.holiday-weekday {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- FIPE Cards ---------- */
.fipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.fipe-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.fipe-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.fipe-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
}

.fipe-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fipe-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.fipe-info-row:last-child { border-bottom: none; }

.fipe-info-label { color: var(--text-muted); }
.fipe-info-value { color: var(--text-primary); font-weight: 500; }

/* ---------- Câmbio Card ---------- */
.cambio-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cambio-value-box {
    text-align: center;
    padding: 24px;
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
}

.cambio-value-box.venda {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
}

.cambio-value-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cambio-value-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.cambio-value-box.venda .cambio-value-number {
    color: var(--purple-light);
}

/* ---------- NCM Results ---------- */
.ncm-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ncm-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
    cursor: default;
}

.ncm-item:hover {
    border-color: var(--border-hover);
}

.ncm-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.ncm-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- Domain Status ---------- */
.domain-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.domain-status.available {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.domain-status.registered {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.domain-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-status.available .domain-status-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.domain-status.registered .domain-status-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
}

.domain-status-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.domain-status-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---------- Section Divider ---------- */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---------- Keyframe Animations ---------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

@keyframes slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cambio-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #mobile-header {
        display: flex;
    }

    #main-content {
        margin-left: 0;
        padding: 80px 16px 32px;
    }

    .hero-section {
        padding: 48px 20px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section .hero-subtitle {
        font-size: 0.95rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .holidays-grid {
        grid-template-columns: 1fr;
    }

    .fipe-grid {
        grid-template-columns: 1fr;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }

    #toast-container {
        top: auto;
        bottom: 16px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.5rem;
    }

    .cambio-value-number {
        font-size: 1.5rem;
    }

    .fipe-price {
        font-size: 1.5rem;
    }

    .cities-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    #sidebar,
    #mobile-header,
    #toast-container,
    #loading-overlay,
    .sidebar-overlay,
    .btn,
    .search-form {
        display: none !important;
    }

    #main-content {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }

    .result-card,
    .holiday-card,
    .fipe-card {
        border: 1px solid #ddd;
        background: white;
    }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* ==========================================================================
   LGPD Cookie Consent
   ========================================================================== */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(150%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.5s;
}

.cookie-consent.show {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.cookie-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-icon {
    background: rgba(245, 158, 11, 0.1);
    padding: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.1em;
}

.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}

.cookie-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        bottom: 16px;
        left: 16px;
        right: 16px;
        padding: 20px;
    }
    .cookie-actions {
        width: 100%;
    }
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
