* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - azul royal corporativo */
    --primary: #1e40af;
    --primary-dark: #1e3a8f;
    --primary-darker: #1e3a5f;
    --primary-light: #2563eb;
    --primary-lighter: #3b82f6;
    --secondary: #64748b;
    --accent: #0ea5e9;
    
    /* Cores de status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Escala de cinzas moderna */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Backgrounds - tema escuro */
    --bg: #0a0e1a;
    --bg-secondary: #0f1419;
    --surface: #1a1f2e;
    --surface-elevated: #1f2433;
    --border: #2a2f3e;
    
    /* Sidebar - azul royal escuro corporativo */
    --sidebar-bg: linear-gradient(180deg, #1e3a8f 0%, #1e3a5f 100%);
    --sidebar-hover: rgba(30, 64, 175, 0.2);
    --sidebar-active: rgba(30, 64, 175, 0.3);
    
    /* Textos - tema escuro */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-tertiary: #8b95a8;
    --text-light: #ffffff;
    
    /* Sombras suaves e modernas */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    --shadow-blue: 0 4px 14px 0 rgba(59, 130, 246, 0.15);
    
    /* Bordas retas - sem arredondamento */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    
    --sidebar-width: 280px;
}

body {
    font-family: 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e1a;
    color: #ffffff;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: 0;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Design corporativo azulado escuro */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(30, 64, 175, 0.3);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Overlay para fechar sidebar em mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Botão hambúrguer para mobile */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.logo-title {
    font-size: 19px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 11px;
    color: rgba(147, 197, 253, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: rgba(203, 213, 225, 0.9);
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14.5px;
    border-radius: var(--radius-md);
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: white;
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
    border-radius: 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: #ffffff;
}

.top-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 48px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.client-name-display {
    margin-left: 20px;
    padding: 10px 20px;
    background: rgba(30, 64, 175, 0.2);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid rgba(30, 64, 175, 0.4);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0;
    font-family: 'Roboto', sans-serif;
}

.top-bar-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--surface-elevated);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
}

.btn-icon:hover {
    background: rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-icon .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-icon:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon.btn-logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Report Tabs */
.report-tabs-container {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 64, 175, 0.3) transparent;
}

.report-tabs-container::-webkit-scrollbar {
    height: 6px;
}

.report-tabs-container::-webkit-scrollbar-track {
    background: transparent;
}

.report-tabs-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 0;
}

.report-tabs {
    display: flex;
    gap: 0;
    min-width: fit-content;
}

.report-tab {
    padding: 16px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.report-tab:hover {
    color: #ffffff;
    background: rgba(30, 64, 175, 0.1);
}

.report-tab.active {
    color: #ffffff;
    border-bottom-color: var(--primary);
    background: rgba(30, 64, 175, 0.15);
}

.report-tab .tab-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.report-content {
    display: block;
}

.report-content.active {
    display: block;
}

/* Filters Bar */
.filters-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 28px 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.filters-container {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto;
    min-width: 180px;
}

.filter-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-input,
.filter-select {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: var(--surface-elevated);
    color: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    border-radius: var(--radius-md);
    min-height: 44px;
    width: 180px;
    cursor: pointer;
}

.filter-input[type="date"] {
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.filter-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    position: absolute;
    right: 8px;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
    background: var(--surface);
}

.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8f 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14.5px;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    letter-spacing: -0.01em;
    border-radius: 0;
    box-shadow: none;
}

.btn-primary .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.btn-primary .icon-sm {
    width: 16px;
    height: 16px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8f 0%, #1e3a5f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

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

.btn-secondary {
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    font-size: 12.5px;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon-right {
    font-size: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 0;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Alert */
.alert {
    margin: 20px 40px;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid;
    border-radius: 0;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.alert.hidden {
    display: none;
}

/* Dashboard Content */
.dashboard-content {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* KPI Section */
.kpi-section {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border-radius: 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.vendas-offline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* Cores específicas para cards de vendas offline */
.kpi-vendas-offline .kpi-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #86efac;
    color: #166534;
}

.kpi-dias-compra .kpi-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.kpi-visitas .kpi-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fde68a;
    color: #d97706;
}

.kpi-taxa .kpi-icon {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    border-color: #c4b5fd;
    color: #7c3aed;
}

.kpi-visitas-media .kpi-icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f9a8d4;
    color: #be185d;
}

.kpi-paginas .kpi-icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
    color: #166534;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    min-width: 0;
    background: var(--surface);
    overflow: visible;
    cursor: help;
    border-radius: 0;
    justify-content: space-between;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover {
    border-color: rgba(30, 64, 175, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: var(--surface-elevated);
}

.kpi-card:hover::before {
    opacity: 1;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-shrink: 0;
    color: var(--gray-700);
    border-radius: 0;
    order: 2;
    margin-top: auto;
}

/* Cores específicas para cada card de KPI */
.kpi-jornadas .kpi-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

.kpi-valor .kpi-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fde68a;
    color: #d97706;
}

.kpi-vendas .kpi-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #86efac;
    color: #166534;
}

.kpi-ticket .kpi-icon {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    border-color: #c4b5fd;
    color: #7c3aed;
}

.kpi-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.kpi-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: visible;
    width: 100%;
    align-items: center;
    order: 1;
}

.kpi-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.kpi-value {
    font-size: 28px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-family: 'Inter', 'Roboto', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    position: relative;
    cursor: help;
}

.kpi-value .decimal {
    font-weight: 200;
    opacity: 0.85;
}

.kpi-value[data-full-value] {
    position: relative;
}

.kpi-tooltip {
    position: fixed;
    padding: 20px 32px;
    background: var(--gray-900);
    color: white;
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid var(--gray-800);
    box-shadow: none;
    z-index: 10000;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    display: none;
    animation: tooltipFadeIn 0.1s ease-out;
    border-radius: 0;
}

.kpi-tooltip-arrow {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--gray-900);
    z-index: 10001;
    pointer-events: none;
    display: none;
    animation: tooltipFadeIn 0.1s ease-out;
}

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

/* Section Cards */
.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 36px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    color: #ffffff;
}

.section-card:hover {
    border-color: rgba(30, 64, 175, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    background: var(--surface-elevated);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* Journey Controls */
.journey-controls {
    margin-bottom: 24px;
}

/* Journey Flow - Sankey */
.journey-flow-container {
    margin-top: 24px;
    width: 100%;
    overflow-x: auto;
}

.journey-flow-container svg {
    display: block;
    margin: 0 auto;
}

.journey-flow-container .link {
    transition: opacity 0.3s, stroke-width 0.3s;
}

.journey-flow-container .node rect {
    transition: opacity 0.3s;
}

.sankey-tooltip {
    font-family: 'Inter', sans-serif;
}

.journey-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    margin-bottom: 16px;
}

.journey-card:hover {
    border-color: rgba(30, 64, 175, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    background: var(--surface-elevated);
}

.journey-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.journey-title {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.journey-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.journey-stats {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.journey-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.journey-summary span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Visualização Corporativa de Jornadas */
.journey-header-corporate {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.journey-number {
    color: #1f2937;
    font-weight: 600;
}

.journey-separator {
    color: #d1d5db;
}

.journey-info {
    color: #6b7280;
}

.journey-path-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.journey-path {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.journey-path-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.path-channel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 16px;
    position: relative;
    min-width: 100px;
    text-align: center;
    transition: all 0.2s ease;
}

.path-channel:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.path-channel-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.path-multiplier {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #1f2937;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #ffffff;
}

.path-percentage {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1f2937;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.path-separator {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 400;
    margin: 0 4px;
}

.journey-metric-final {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-width: 120px;
    text-align: right;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

.metric-percent {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.journey-arrows {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    padding: 28px 0;
    overflow-x: auto;
    overflow-y: visible;
}

.journey-arrows .arrow-wrapper:not(:last-child) {
    margin-right: 0;
}

.arrow-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-right: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.arrow-wrapper:hover {
    z-index: 10;
}

.arrow-wrapper:last-child {
    margin-right: 0;
}

.arrow-emblem {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Roboto', sans-serif;
    border-radius: var(--radius-md);
}

.arrow-wrapper:hover .arrow-emblem {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.journey-arrow {
    width: 110px;
    height: 55px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    border-right: 1px solid #1e40af;
    --arrow-color: #3b82f6;
    border-radius: 0;
}

.journey-arrow:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --arrow-color: #2563eb;
}

.journey-arrow::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 27px solid transparent;
    border-bottom: 27px solid transparent;
    border-left: 12px solid var(--arrow-color);
    z-index: 1;
}

.journey-arrow:hover::after {
    border-left-color: #2563eb;
}

.arrow-count {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0;
    z-index: 2;
    font-family: 'Roboto', sans-serif;
}

.arrow-connector {
    font-size: 24px;
    color: var(--text-secondary);
    margin: 0 8px;
    font-weight: 700;
    display: inline-block;
}

.arrow-wrapper:last-child .arrow-connector {
    display: none;
}

.journey-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

/* Modelos de Atribuição */
.modelos-section {
    margin-top: 32px;
}

.modelos-comparativo-section {
    margin-bottom: 32px;
}

.modelos-comparativo-section .section-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

.modelos-comparativo-content {
    margin-top: 0;
}

.modelos-comparativo-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
}

.modelos-comparativo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modelos-comparativo-table thead {
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%);
    border-bottom: 2px solid var(--border);
}

.modelos-comparativo-table th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.modelos-comparativo-table th:first-child {
    text-align: left;
    padding-left: 28px;
}

.modelos-comparativo-table th:not(:first-child) {
    text-align: center;
}

.modelos-comparativo-table th:last-child {
    border-right: none;
    padding-right: 28px;
}

.modelos-comparativo-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    color: #ffffff !important;
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 300;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.modelos-comparativo-table td .decimal {
    font-weight: 200;
    opacity: 0.85;
}

.modelos-comparativo-table td:first-child {
    text-align: left;
    padding-left: 28px;
    font-weight: 600;
}

.modelos-comparativo-table td:not(:first-child) {
    text-align: center;
    font-weight: 300;
    font-size: 15px;
    color: #ffffff !important;
}

.modelos-comparativo-table td:not(:first-child) .decimal {
    font-weight: 200;
    opacity: 0.85;
}

.modelos-comparativo-table td:last-child {
    border-right: none;
    padding-right: 28px;
}

.modelos-comparativo-table tbody tr {
    transition: all 0.2s ease;
    background: var(--surface);
}

.modelos-comparativo-table tbody tr:nth-child(even) {
    background: var(--surface-elevated);
}

.modelos-comparativo-table tbody tr:hover {
    background: #252a3a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.modelos-comparativo-table tbody tr:last-child td {
    border-bottom: none;
}

.modelos-comparativo-table td strong {
    font-weight: 700;
    color: #ffffff;
    font-size: 14px;
}

.modelos-comparativo-table td:not(:first-child) {
    position: relative;
}

.modelos-comparativo-table td:not(:first-child):not(:empty)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0;
}

.modelos-tabs {
    display: flex;
    gap: 0;
    padding: 4px;
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    width: fit-content;
}

.modelo-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13.5px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0;
    position: relative;
    border-radius: var(--radius-sm);
}

.modelo-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.2s ease;
}

.modelo-tab:hover {
    color: #ffffff;
    background: rgba(30, 64, 175, 0.1);
}

.modelo-tab.active {
    background: rgba(30, 64, 175, 0.2);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(30, 64, 175, 0.4);
}

.modelo-tab.active::after {
    background: var(--primary);
}

.modelos-content {
    margin-top: 28px;
}

.modelos-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.modelos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.modelos-table thead {
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%);
    border-bottom: 2px solid var(--border);
}

.modelos-table th {
    padding: 18px 24px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.modelos-table th:first-child {
    padding-left: 28px;
}

.modelos-table th:last-child {
    border-right: none;
    padding-right: 28px;
}

.modelos-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    color: #ffffff !important;
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 300;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.modelos-table td .decimal {
    font-weight: 200;
    opacity: 0.85;
}

.modelos-table td:first-child {
    padding-left: 28px;
    font-weight: 600;
}

.modelos-table td:last-child {
    border-right: none;
    padding-right: 28px;
}

.modelos-table tbody tr {
    transition: all 0.2s ease;
    background: var(--surface);
}

.modelos-table tbody tr:nth-child(even) {
    background: var(--surface-elevated);
}

.modelos-table tbody tr:hover {
    background: #252a3a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.modelos-table td strong {
    font-weight: 700;
    color: #ffffff;
    font-size: 14px;
}

.modelos-section .section-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Melhorias visuais para valores zero */
.modelos-comparativo-table td:not(:first-child) span[style*="opacity: 0.5"] {
    font-size: 13px;
}

.modelos-table td:not(:first-child) span[style*="opacity: 0.5"] {
    font-size: 13px;
}

/* Adicionar separador visual entre seções */
.modelos-comparativo-section + .modelos-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

/* Melhorar contraste dos números */
.modelos-comparativo-table td:not(:first-child) span[style*="font-weight: 700"] {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.modelos-table td:nth-child(2) span[style*="font-weight: 700"] {
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 24px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.stats-container {
    margin-top: 24px;
}

.advanced-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 0;
}

.advanced-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.advanced-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advanced-stat-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: var(--surface-elevated);
}

.advanced-stat-card:hover::before {
    opacity: 1;
}

.advanced-stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advanced-stat-icon {
    width: 28px;
    height: 28px;
    color: white;
    stroke-width: 2;
}

.advanced-stat-content {
    flex: 1;
    min-width: 0;
}

.advanced-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    line-height: 1.4;
}

.advanced-stat-value {
    font-size: 32px;
    font-weight: 300;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.advanced-stat-value .decimal {
    font-weight: 200;
    opacity: 0.85;
}

.advanced-stat-sublabel {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin-top: 2px;
}

/* Responsivo para estatísticas avançadas */
@media (max-width: 768px) {
    .advanced-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .advanced-stat-card {
        padding: 20px;
    }
    
    .advanced-stat-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .advanced-stat-icon {
        width: 24px;
        height: 24px;
    }
    
    .advanced-stat-value {
        font-size: 28px;
    }
}

/* Data Table */
.table-wrapper {
    overflow-x: auto !important;
    border: 1px solid var(--border) !important;
    margin-top: 24px !important;
    background: white !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}

.table-wrapper .data-table thead,
.data-table thead {
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%) !important;
    border-bottom: 2px solid rgba(30, 64, 175, 0.4) !important;
}

.table-wrapper .data-table th,
.data-table th {
    padding: 20px 24px !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap !important;
}

.data-table th:first-child {
    padding-left: 28px !important;
}

.data-table th:last-child {
    border-right: none !important;
    padding-right: 28px !important;
}

.data-table td {
    padding: 18px 24px !important;
    border-bottom: 1px solid #2a2f3e !important;
    color: #ffffff !important;
    border-right: 1px solid #2a2f3e !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.6 !important;
    font-family: 'Inter', 'Roboto', sans-serif !important;
}

.data-table td .decimal {
    font-weight: 200 !important;
    opacity: 0.85;
}

.data-table td:first-child {
    padding-left: 28px !important;
}

.data-table td:last-child {
    border-right: none !important;
    padding-right: 28px !important;
}

.table-wrapper .data-table tbody tr,
.data-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #1a1f2e !important;
    background-color: #1a1f2e !important;
}

.table-wrapper .data-table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even) {
    background: #1f2433 !important;
    background-color: #1f2433 !important;
}

.table-wrapper .data-table tbody tr:hover,
.data-table tbody tr:hover {
    background: #252a3a !important;
    background-color: #252a3a !important;
    transform: translateX(2px) !important;
    box-shadow: -2px 0 0 0 #1e40af !important;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1.5px solid;
    border-radius: var(--radius-md);
    border-radius: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.badge.frequent {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge.moderate {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge.occasional {
    background: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.badge.rare {
    background: #64748b;
    color: #ffffff;
    border-color: #475569;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

/* Info Box */
.info-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    border-radius: 0;
}

.info-btn .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.info-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--text-primary);
}

.info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    display: none;
    animation: slideDown 0.2s ease-out;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.info-box.active {
    display: block;
}

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

.info-box-header {
    background: linear-gradient(135deg, #1e3a8f 0%, #1e40af 100%);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.3);
    font-family: 'Roboto', sans-serif;
}

.info-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    letter-spacing: -0.01em;
}

.info-close {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0;
}

.info-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.info-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-box-content {
    padding: 24px;
    color: var(--text-primary);
    line-height: 1.7;
}

.info-box-content p {
    margin-bottom: 12px;
    font-size: 14px;
}

.info-box-content p:last-child {
    margin-bottom: 0;
}

.info-box-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.info-box-content li {
    margin-bottom: 8px;
    font-size: 14px;
}

.info-box-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-card {
    animation: fadeInUp 0.4s ease-out;
}

.kpi-card {
    animation: fadeInUp 0.3s ease-out;
}

/* Tecnologia - Gráficos de Pizza - Layout Corporativo */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 0;
    border: 1px solid #D1D5DB;
}

.analytics-chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    border-radius: var(--radius-lg);
    flex-direction: column;
    border-radius: 0;
}

.analytics-chart-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    border-color: rgba(30, 64, 175, 0.5);
    background: var(--surface-elevated);
}

.analytics-chart-card .chart-title {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    padding: 18px 24px;
    text-align: left;
    letter-spacing: 0.1em;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    border-radius: 0;
}

.analytics-chart-card .chart-wrapper {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    background: var(--surface);
    z-index: 3;
    flex-direction: row;
    gap: 30px;
}

.analytics-chart-card .chart-wrapper::before {
    display: none;
}

.analytics-chart-card canvas {
    position: relative;
    z-index: 2;
    max-width: 220px;
    max-height: 220px;
    filter: none;
}

.analytics-chart-card.corporate-layout {
    flex-direction: column;
    padding: 0;
}

.analytics-chart-card.corporate-layout .chart-title {
    position: static;
    padding: 18px 24px;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
    z-index: 1;
    color: #ffffff;
}

.analytics-chart-card.corporate-layout .chart-wrapper {
    flex: 0 0 auto;
    height: 280px;
    padding: 20px;
    border-right: 1px solid var(--border);
    border-bottom: none;
    background: var(--surface);
    position: relative;
    overflow: visible;
    justify-content: center;
    flex-direction: row;
    gap: 30px;
}

.analytics-chart-card.corporate-layout .chart-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
    color: #ffffff;
    gap: 0;
}

.analytics-chart-card.corporate-layout .chart-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.analytics-chart-card.corporate-layout .chart-info-item:last-child {
    border-bottom: none;
}

.analytics-chart-card.corporate-layout .chart-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
}

.analytics-chart-card.corporate-layout .chart-info-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

.analytics-chart-card.corporate-layout .chart-info-percentage {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 0;
    margin-right: 0;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.analytics-chart-card[style*="grid-column"] {
    max-width: 100%;
    grid-column: 1 / -1 !important;
    border-left: none;
    border-right: none;
}

.analytics-chart-card[style*="grid-column"] .chart-wrapper {
    height: 360px;
    padding: 30px;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
}

.analytics-chart-card[style*="grid-column"] .chart-wrapper::before {
    display: none;
}

/* Responsivo */
@media (max-width: 1200px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .top-bar {
        padding: 20px 32px;
    }
    
    .filters-bar {
        padding: 24px 32px;
    }
    
    .dashboard-content {
        padding: 32px;
    }
    
    .report-tabs-container {
        padding: 0 24px;
    }
    
    .report-tab {
        padding: 14px 20px;
        font-size: 13.5px;
    }
}

@media (max-width: 768px) {
    /* Esconder elementos no mobile */
    .mobile-hide {
        display: none !important;
    }
    
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
        margin-right: 12px;
    }
    
    .top-bar {
        padding: 12px 16px;
    }
    
    .top-bar-content {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        width: 100%;
        overflow: hidden;
    }
    
    .top-bar-left {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .client-name-display {
        margin-left: 0;
        display: none;
    }
    
    .page-title {
        font-size: 18px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Prevenir vazamentos */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .dashboard-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .main-content {
        width: 100%;
        max-width: 100vw;
        margin-left: 0 !important;
        overflow-x: hidden;
        padding: 0;
    }
    
    .dashboard-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 16px;
        box-sizing: border-box;
    }
    
    /* Cards e seções */
    .section-card {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .kpi-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 16px;
    }
    
    /* Gráficos */
    .analytics-chart-card,
    .chart-card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .chart-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Jornadas */
    .journey-card {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .journey-arrows {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    .arrow-wrapper {
        flex-shrink: 0;
    }
    
    /* Tabelas */
    .table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Filtros */
    .filters-bar {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .filters-container {
        width: 100%;
        max-width: 100%;
    }
    
    .filter-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    input, select, button {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Textos menores no mobile */
    .kpi-label {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .kpi-value {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .nav-text {
        font-size: 13px;
    }
    
    .report-tab {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .chart-title {
        font-size: 11px !important;
    }
    
    /* Ajustes adicionais para evitar vazamentos */
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .top-bar-actions {
        flex-shrink: 0;
    }
    
    .btn-icon {
        padding: 8px;
        min-width: 36px;
    }
    
    /* Info boxes e tooltips */
    .info-box {
        max-width: 100%;
        padding: 16px;
        font-size: 13px;
    }
    
    /* Chart info (legendas) */
    .chart-info {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }
    
    .chart-info-item {
        width: 100%;
        max-width: 100%;
        padding: 8px 0;
    }
    
    /* Journey flow específico */
    .journey-flow-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
    
    .journey-header-production {
        padding: 0 0 12px 0;
    }
    
    .journey-title-production {
        font-size: 12px;
    }
    
    .journey-summary-production {
        font-size: 18px;
    }
    
    .arrow-emblem {
        font-size: 9px;
        padding: 4px 8px;
        min-width: 50px;
    }
    
    .journey-arrow {
        width: 80px;
        height: 45px;
    }
    
    .arrow-count {
        font-size: 18px;
    }
    
    /* Analytics grid - uma coluna no mobile */
    .analytics-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .analytics-chart-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .analytics-chart-card[style*="grid-column"] {
        grid-column: 1 !important;
    }
    
    .sidebar-header {
        padding: 20px 16px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .logo-title {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
    
    .sidebar-nav {
        padding: 16px 12px;
    }
    
    .nav-item {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
    }
    
    .report-tabs-container {
        padding: 0 16px;
    }
    
    .report-tab {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .report-tab .tab-icon {
        width: 16px;
        height: 16px;
    }
    
    .filters-bar {
        padding: 20px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-item {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-input,
    .filter-select {
        width: 100%;
        min-width: 100%;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .dashboard-content {
        padding: 20px 16px;
        gap: 24px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .kpi-card {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .kpi-icon {
        width: 52px;
        height: 52px;
    }
    
    .kpi-content {
        width: 100%;
        align-items: center;
    }
    
    .kpi-value {
        font-size: 24px;
    }
    
    .section-card {
        padding: 24px 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .journey-card {
        padding: 24px 20px;
    }
    
    .journey-arrows {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .arrow-wrapper {
        margin-right: 0;
        margin-bottom: 16px;
        flex-direction: row;
        width: 100%;
        align-items: center;
    }

    .arrow-emblem {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .journey-arrow {
        width: 120px;
        height: 70px;
    }

    .arrow-count {
        font-size: 28px;
    }

    .arrow-connector {
        position: static;
        transform: rotate(90deg);
        width: 24px;
        margin: 6px 0;
}

.analytics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
}

.analytics-chart-card {
        border-radius: var(--radius-md);
}

    .analytics-chart-card .chart-wrapper {
        height: 280px;
        padding: 16px;
}

    .analytics-chart-card[style*="grid-column"] {
        grid-column: 1 !important;
    }
    
    .modelos-tabs {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .modelo-tab {
        padding: 10px 16px;
        font-size: 12.5px;
}

    .data-table {
        font-size: 12px !important;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 16px !important;
}

    /* Login screen mobile */
    #loginScreen {
        padding: 16px !important;
    }
    
    #loginScreen > div {
        padding: 32px 24px !important;
        max-width: 100% !important;
}

    #loginScreen .logo-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
}

    #loginScreen h1 {
        font-size: 24px !important;
    }
    
    #loginScreen p {
        font-size: 14px !important;
}
}

/* Funil de Conversão */
.funil-container {
    padding: 60px 40px 60px 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    overflow: visible;
}

.funil-triangular {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    gap: 0;
    position: relative;
    overflow: visible;
}

/* Estágios do funil - formato triangular */
.funil-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    z-index: 2;
}

.funil-stage-top {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.funil-stage-middle {
    width: 75%;
    max-width: 75%;
}

.funil-stage-bottom {
    width: 50%;
    max-width: 50%;
}

/* Estágio simples e limpo */
.funil-stage-simple {
    width: 100%;
    text-align: center;
    padding: 32px 0;
    position: relative;
}

.funil-stage-title {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-secondary);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    opacity: 0.7;
}

.funil-stage-number {
    font-size: 56px;
    font-weight: 200;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* Número grande na borda esquerda para os estágios top e middle */
.funil-stage-top .funil-stage-simple,
.funil-stage-middle .funil-stage-simple {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.funil-stage-top .funil-stage-title,
.funil-stage-middle .funil-stage-title {
    text-align: left;
    margin-left: 0;
    position: relative;
    z-index: 3;
}

.funil-stage-top .funil-stage-number,
.funil-stage-middle .funil-stage-number {
    font-size: 180px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.12);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.08em;
    line-height: 0.75;
    position: absolute;
    left: -80px;
    top: -60px;
    z-index: 0;
    pointer-events: none;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
    user-select: none;
}

/* Ajuste para o estágio do meio (menor largura) */
.funil-stage-middle .funil-stage-number {
    left: -60px;
    font-size: 150px;
}

/* Estágio de vendas - design elegante e limpo */
.funil-stage-bottom .funil-stage-simple {
    text-align: center;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.funil-stage-bottom .funil-stage-number {
    font-size: 120px;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.08em;
    line-height: 1;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    display: block;
    text-align: center !important;
    width: 100%;
    left: 0;
    right: 0;
}

.funil-stage-bottom .funil-stage-label {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-secondary);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    opacity: 0.7;
    text-align: center;
    width: 100%;
    display: block;
}

/* Valor estilizado abaixo do número */
.funil-stage-value {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    margin-top: 16px;
    position: relative;
    z-index: 3;
    text-align: left;
}

/* Valor estilizado para o estágio final */
.funil-stage-bottom .funil-stage-value {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    text-align: center;
    margin-top: 8px;
}

.funil-stage-bottom .funil-stage-value::before {
    content: 'R$ ';
    font-weight: 700;
    font-size: 38px;
    color: #ffffff;
    margin-right: 8px;
    display: inline-block;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

/* Parte decimal fininha */
.funil-stage-bottom .funil-stage-value {
    font-variant-numeric: tabular-nums;
}

.funil-stage-bottom .funil-stage-value .funil-decimal {
    font-weight: 200;
    font-size: 28px;
    opacity: 0.7;
    letter-spacing: 0.01em;
}

/* Resultado final (substitui tudo que estava redundante) */
.funil-result-final {
    width: 100%;
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    margin-top: 20px;
    position: relative;
    overflow: visible;
}

.funil-result-count {
    position: relative;
    z-index: 3;
}

/* Número grande para o resultado final */
.funil-result-final::before {
    content: attr(data-count);
    font-size: 200px;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.08);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.08em;
    line-height: 0.75;
    position: absolute;
    left: -100px;
    top: -80px;
    z-index: 0;
    pointer-events: none;
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
    user-select: none;
}

.funil-result-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.funil-result-count {
    font-size: 80px;
    font-weight: 200;
    color: #10b981;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.funil-result-value {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.funil-stage-bar {
    height: 60px;
    min-height: 60px;
    width: 100%;
    border-radius: 0;
    transition: width 1s ease-out;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.funil-stage-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

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

/* Conexões triangulares entre estágios - design profissional */
.funil-connector {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0;
    height: 70px;
    z-index: 1;
}

.funil-connector-line {
    width: 0;
    height: 0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
    animation: slideDown 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Texto da taxa dentro da seta triangular */
.funil-connector-line .funil-connector-rate {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.funil-connector-line .funil-connector-rate strong {
    color: #bfdbfe;
    font-weight: 700;
    font-size: 14px;
}

/* Setinha pulsante abaixo da seta triangular */
.funil-connector-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.funil-arrow-icon {
    font-size: 24px;
    color: var(--primary-light);
    font-weight: bold;
    animation: bounce 2s infinite;
}

/* Conexão do topo para o meio (de 100% para 75%) - seta elegante */
.funil-connector-1 .funil-connector-line {
    width: 0;
    height: 0;
    border-left: 260px solid transparent;
    border-right: 260px solid transparent;
    border-top: 70px solid #3b82f6;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}

.funil-connector-1 .funil-connector-line::before {
    content: '';
    position: absolute;
    top: -70px;
    left: -250px;
    width: 500px;
    height: 70px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(96, 165, 250, 0.9) 100%);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
    z-index: -1;
}

/* Conexão do meio para o fundo (de 75% para 50%) - seta elegante */
.funil-connector-2 .funil-connector-line {
    width: 0;
    height: 0;
    border-left: 195px solid transparent;
    border-right: 195px solid transparent;
    border-top: 70px solid #60a5fa;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.5));
}

.funil-connector-2 .funil-connector-line::before {
    content: '';
    position: absolute;
    top: -70px;
    left: -185px;
    width: 370px;
    height: 70px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.9) 0%, rgba(147, 197, 253, 0.9) 100%);
    clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
    z-index: -1;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.15);
}
}


/* Responsividade */
@media (max-width: 768px) {
    .funil-stage-top {
        width: 100%;
}

    .funil-stage-middle {
        width: 85%;
}

    .funil-stage-bottom {
        width: 70%;
    }
    
    .funil-stage-value {
        font-size: 22px;
    }
    
    .funil-stage-bar {
        height: 50px;
        min-height: 50px;
    }
    
    .funil-summary {
        flex-direction: column;
        gap: 24px;
    }
}

/* Force Graph Styles */
.force-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.journey-flow-container svg {
    width: 100%;
    height: 100%;
}

.journey-flow-container .links line {
    transition: stroke-opacity 0.2s, stroke-width 0.2s;
}

.journey-flow-container .nodes circle {
    transition: r 0.2s, stroke-width 0.2s;
    cursor: grab;
}

.journey-flow-container .nodes circle:active {
    cursor: grabbing;
}

.journey-flow-container .labels text {
    pointer-events: none;
    user-select: none;
}

/* Insight Modal Styles */
.insight-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.insight-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.insight-btn .icon {
    width: 18px;
    height: 18px;
}

.insight-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.insight-modal-content {
    background: var(--bg-primary, #1a1f2e);
    border: 1px solid var(--border, #2a2f3e);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.insight-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border, #2a2f3e);
}

.insight-modal-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
}

.insight-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.insight-modal-close:hover {
    background: var(--bg-secondary, #2a2f3e);
    color: var(--text-primary, #ffffff);
}

.insight-modal-close svg {
    width: 20px;
    height: 20px;
}

.insight-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    position: relative;
    min-height: 400px;
}

.insight-data-preview {
    background: var(--bg-secondary, #2a2f3e);
    border: 1px solid var(--border, #374151);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary, #cbd5e1);
}

.insight-data-preview strong {
    color: var(--text-primary, #ffffff);
    display: block;
    margin-bottom: 8px;
}

.insight-data-preview ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.insight-form-group {
    margin-bottom: 20px;
}

.insight-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #ffffff);
    margin-bottom: 8px;
}

.insight-textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary, #2a2f3e);
    border: 1px solid var(--border, #374151);
    border-radius: 6px;
    color: var(--text-primary, #ffffff);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.insight-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.insight-hint {
    font-size: 12px;
    color: var(--text-tertiary, #64748b);
    margin-top: 6px;
    margin-bottom: 0;
}

.insight-result {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-secondary, #2a2f3e);
    border: 1px solid var(--border, #374151);
    border-radius: 8px;
    border-left: 4px solid #8b5cf6;
}

.insight-result h4 {
    color: var(--text-primary, #ffffff);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.insight-result-content {
    color: var(--text-secondary, #cbd5e1);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.insight-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border, #2a2f3e);
}

.insight-modal-footer .btn-primary {
    min-width: 140px;
}

/* Loading Overlay dentro do Modal de Insight */
.insight-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 46, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.insight-loading-content {
    text-align: center;
    padding: 40px;
}

.insight-loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.insight-loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin-bottom: 8px;
}

.insight-loading-subtext {
    font-size: 13px;
    color: var(--text-secondary, #94a3b8);
}

/* Login Screen Styles - Isolado das configurações do dashboard */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0f172a !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.login-screen[style*="display: none"] {
    display: none !important;
}

.login-card {
    background: #1a1f2e !important;
    border: 1px solid #2a2f3e !important;
    padding: 56px;
    width: 100%;
    max-width: 440px;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8f 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF !important;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 15.5px;
    color: #94a3b8 !important;
    font-weight: 400;
}

.login-error-message {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
    padding: 14px 18px;
    border: 1px solid #991b1b !important;
    font-size: 14px;
    margin-bottom: 24px;
    display: none;
    border-radius: 0;
}

.login-form {
    margin: 0;
}

.login-form-group {
    margin-bottom: 24px;
}

.login-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin-bottom: 10px;
}

.login-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #374151 !important;
    font-size: 15px;
    font-family: 'Inter', system-ui, sans-serif;
    background: #1a1f2e !important;
    color: #ffffff !important;
    border-radius: 0;
    transition: all 0.25s ease;
}

.login-input:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-input::placeholder {
    color: #64748b !important;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8f 100%) !important;
    color: #FFFFFF !important;
    border: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    margin-top: 8px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
    transition: all 0.25s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #1e3a8f 0%, #1e3a8f 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.login-button:active {
    transform: translateY(0);
}
