/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais do Site da Bind */
    --background: #faf9f6;
    --foreground: oklch(14.5% 0 0);
    --primary: #fc5404;
    --primary-foreground: #faf9f6;
    --secondary: oklch(97% 0 0);
    --secondary-foreground: oklch(20.5% 0 0);
    --accent: #fc5404;
    --accent-foreground: #faf9f6;
    --muted: oklch(97% 0 0);
    --muted-foreground: oklch(55.6% 0 0);
    --destructive: oklch(57.7% .245 27.325);
    --border: oklch(92.2% 0 0);
    --input: oklch(92.2% 0 0);
    --ring: #fc5404;
    
    /* Cores Específicas */
    --text-primary: #34322D;
    --text-secondary: oklch(55.6% 0 0);
    --text-tertiary: #858481;
    --success-color: #1E8B2E;
    --error-color: #f44336;
    --warning-color: oklch(82.8% .189 84.429);
    
    /* Cores de Gráficos */
    --chart-1: oklch(64.6% .222 41.116);
    --chart-2: oklch(60% .118 184.704);
    --chart-3: oklch(39.8% .07 227.392);
    --chart-4: oklch(82.8% .189 84.429);
    --chart-5: oklch(76.9% .188 70.08);
    
    /* Cores Específicas do Site */
    --green-100: oklch(96.2% .044 156.743);
    --green-400: oklch(65.2% .209 151.711);
    --green-600: oklch(62.7% .194 149.214);
    --green-700: oklch(52.7% .154 150.069);
    --red-100: oklch(93.6% .032 17.717);
    --red-400: oklch(70.4% .191 22.216);
    --red-700: oklch(50.5% .213 27.518);
    --orange-500: oklch(70.5% .213 47.604);
    --blue-600: oklch(54.6% .245 262.881);
    --purple-600: oklch(55.8% .288 302.321);
    --slate-50: oklch(98.4% .003 247.858);
    --gray-50: oklch(98.5% .002 247.839);
    --gray-300: oklch(87.2% .01 258.338);
    
    /* Sombras e Efeitos */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
    --border-main: rgba(0, 0, 0, 0.06);
    --border-btn: rgba(0, 0, 0, 0.12);
    --overlay-light: rgba(0, 0, 0, 0.05);
    --overlay-medium: rgba(0, 0, 0, 0.3);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(-45deg, #fc5404, #ff7b3d, #fc5404, #ff9966);
    --gradient-success: linear-gradient(135deg, var(--success-color), var(--green-400));
    --gradient-chart: linear-gradient(135deg, var(--chart-1), var(--chart-2));
    
    /* Raios e Transições */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Results Section */
.results-section {
    padding: 48px 0;
    background-color: var(--background);
    width: 100%;
}

.results-section .container {
    max-width: 100%;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 24px 0 12px 0;
    background: var(--background);
}

.main-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
    line-height: 1.2;
}

.main-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 8px auto;
    border-radius: 2px;
}

.subtitle {
    font-size: 12px;
    color: var(--muted-foreground);
    max-width: 400px;
    margin: 0 auto;
    font-weight: 400;
}

/* Simulator Section */
.simulator-section {
    padding: 24px 0 40px 0;
    background-color: var(--background);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

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

.form-container {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.form-group {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.9s; }
.form-group:nth-child(2) { animation-delay: 1.1s; }
.form-group:nth-child(3) { animation-delay: 1.3s; }

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-family: inherit;
    background-color: var(--background);
    color: var(--foreground);
    transition: var(--transition);
    appearance: none;
    transform: scale(1);
}

.form-select:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.form-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(252, 84, 4, 0.1);
}

/* Range Input */
.slider-container {
    position: relative;
}

.form-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-light);
}

.range-value {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.area-input {
    width: 100%;
    padding: 6px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-family: inherit;
    background-color: var(--background);
    color: var(--foreground);
    transition: var(--transition);
    margin-top: 8px;
}

.area-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(252, 84, 4, 0.1);
}

/* Methods Grid */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.method-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.method-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.method-card.selected {
    border-color: var(--primary);
    background: rgba(252, 84, 4, 0.05);
}

.method-card.bind-card {
    border-color: var(--primary);
    background: rgba(252, 84, 4, 0.08);
}

.method-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Method Card Icons */
.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background: var(--muted);
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.method-card:hover .method-icon {
    border-color: var(--primary);
    background: rgba(252, 84, 4, 0.05);
}

.method-card.selected .method-icon {
    border-color: var(--primary);
    background: rgba(252, 84, 4, 0.1);
}

.method-card.bind-card .method-icon {
    border-color: var(--primary);
    background: rgba(252, 84, 4, 0.1);
}

.method-icon svg {
    width: 20px;
    height: 20px;
}

.method-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 6px;
    padding-right: 32px;
}

.method-card.bind-card .method-name {
    color: var(--primary);
}

.method-details {
    font-size: 12px;
    color: var(--muted-foreground);
    line-height: 1.3;
}

/* Simulate Button */
.simulate-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: var(--shadow-light);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 1.5s forwards;
}

.simulate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-icon {
    transition: var(--transition);
}

.simulate-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(4px);
}

/* Results Section */
.results-section {
    padding: 80px 0;
    background-color: var(--background);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.2s ease-out 0.2s forwards;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 16px auto;
    border-radius: 2px;
}

/* ROI Highlight */
.roi-highlight {
    background: linear-gradient(
        90deg,
        var(--success-color) 0%,
        var(--green-400) 25%,
        var(--success-color) 50%,
        var(--green-400) 75%,
        var(--success-color) 100%
    );
    background-size: 200% 100%;
    animation: gradientShift 10s linear infinite;
    color: var(--primary-foreground);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-medium);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.roi-icon {
    flex-shrink: 0;
}

/* Utilitário para inverter ícone claro no destaque de ROI */
.invert-light {
    filter: brightness(0) invert(1);
}

.roi-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.roi-text {
    font-size: 18px;
    opacity: 0.95;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.result-card {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-chart);
}

.result-card.bind-card::before {
    background: var(--gradient-primary);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

/* Card Icons */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--muted);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

.bind-card .card-icon {
    border-color: var(--primary);
    background: rgba(252, 84, 4, 0.1);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
}

.card-metrics {
    display: grid;
    gap: 16px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 14px;
    color: var(--muted-foreground);
    font-weight: 500;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
}

.card-feature {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-warning {
    background: var(--red-100);
    color: var(--red-700);
}

.feature-success {
    background: var(--green-100);
    color: var(--green-700);
}

/* Table */
.table-container {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.table-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-icon {
    color: var(--muted-foreground);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.info-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.info-icon .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--foreground);
    color: var(--background);
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--foreground);
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.table-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.table-btn {
    padding: 8px 16px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.table-btn:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.table-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(252, 84, 4, 0.3);
}

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--secondary);
}

.comparison-table th {
    background: var(--muted);
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: var(--foreground);
    border-bottom: 2px solid var(--border);
    font-size: 14px;
    position: relative;
}

.comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    text-align: center;
}

.comparison-table tr:hover {
    background: var(--muted);
}

.comparison-table tr.bind-row {
    background: rgba(252, 84, 4, 0.05);
}

.comparison-table tr.bind-row:hover {
    background: rgba(252, 84, 4, 0.08);
}

.method-name-cell {
    font-weight: 600;
    color: var(--foreground);
}

.bind-row .method-name-cell {
    color: var(--primary);
}

.esg-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-foreground);
}

.esg-low { background: var(--destructive); }
.esg-medium { background: var(--warning-color); }
.esg-high { background: var(--success-color); }

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--foreground);
    color: var(--primary-foreground);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 400;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--foreground) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Combined Section */
.combined-section {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.4s forwards;
}

/* ESG Section */
.esg-section {
    margin-bottom: 0;
    display: block;
}

.esg-container {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    grid-column: 1;
    aspect-ratio: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.esg-container .section-title {
    margin: 0 0 12px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--foreground);
}

.esg-container .section-title .info-icon {
    margin-left: 8px;
    vertical-align: middle;
}

.esg-method-selector {
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    margin-top: -35px;
}

.esg-selector-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.esg-method-selector-hidden {
    display: none;
}

.esg-back-button {
    position: absolute;
    top: 14px;
    left: 22px;
    z-index: 10;
}

.esg-back-button-hidden {
    display: none;
}

.esg-nav-btn {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    box-shadow: none;
}

.esg-nav-btn:hover {
    background: #e04a03;
    transform: scale(1.05);
    box-shadow: none;
}



.esg-method-selector label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 6px;
}

.esg-select {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
}

.esg-select:hover {
    border-color: var(--primary);
}

.esg-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(252, 84, 4, 0.2);
}

.esg-grid {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 12px;
    flex: 1;
    margin-top: auto;
}

.esg-container:has(.esg-method-selector:not(.esg-method-selector-hidden)) .esg-grid {
    display: none;
}

.esg-card {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

/* ESG Icons */
.esg-icon {
    display: none; /* Remover ícones conforme solicitado */
}

.esg-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.esg-label {
    font-size: 12px;
    color: var(--muted-foreground);
    font-weight: 500;
    line-height: 1.2;
}

/* Timeline */
.timeline-section {
    margin-bottom: 32px;
    width: 100%;
}

.timeline-container {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    min-height: 40px;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-label {
    min-width: 200px;
    font-weight: 600;
    color: var(--foreground);
    font-size: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-bar-container {
    flex: 1;
    height: 40px;
    background: var(--muted);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    width: 100%;
}

.timeline-bar {
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 14px;
    transition: width 1.5s ease-out;
    position: relative;
    min-width: 80px;
    animation: slideInBar 1.5s ease-out forwards;
    transform-origin: left center;
}

.timeline-bar.bind-bar {
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(252, 84, 4, 0.3);
}

.timeline-bar.traditional-bar {
    background: linear-gradient(90deg, var(--chart-3), var(--gray-300));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-bar.cost-bar {
    background: linear-gradient(90deg, var(--destructive), var(--red-400));
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.timeline-bar-text {
    white-space: nowrap;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.timeline-value {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    color: var(--foreground);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@keyframes slideInBar {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.timeline-bar.cost-bar {
    background: linear-gradient(90deg, var(--destructive), var(--red-400));
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

/* Cost Breakdown - Pie Chart */
.cost-breakdown-section {
    margin-bottom: 0;
    display: block;
}

.pie-chart-container {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    grid-column: 2;
    aspect-ratio: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pie-chart-container .section-title {
    margin: 0 0 12px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--foreground);
}

.pie-chart-container .section-title .info-icon {
    margin-left: 8px;
    vertical-align: middle;
}

.cost-system-label {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 54px;
}

.pie-chart-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex: 1;
    margin-top: auto;
}

.pie-chart {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

.pie-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-label {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.legend-value {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Responsividade para gráfico de pizza */
@media (max-width: 768px) {
    .cost-breakdown-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pie-chart-container .section-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .pie-chart-container .section-title .info-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .pie-chart-container .section-title .info-icon .tooltip {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 110%;
    }
    
    .cost-system-label {
        font-size: 11px;
        margin-bottom: 6px;
        padding-left: 43px;
        text-align: center;
        padding-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pie-chart-container {
        grid-column: 1;
        aspect-ratio: auto;
    }
    
    .pie-chart-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .pie-chart {
        width: 160px;
        height: 160px;
    }
    
    .pie-chart-legend {
        min-width: auto;
        width: 100%;
    }
    
    .legend-item {
        justify-content: space-between;
    }
}

/* Estilos para as fatias do gráfico de pizza */
.pie-slice {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pie-slice:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
    transform-origin: center;
}

/* Bind Features */
.bind-features-section {
    margin-bottom: 32px;
}

.bind-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted-foreground);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    background: var(--muted);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    border: 2px solid var(--border);
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--muted-foreground);
    margin-bottom: 32px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
    text-align: left;
}

.contact-form .form-label {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background-color: var(--background);
    color: var(--foreground);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(252, 84, 4, 0.1);
}

.cta-btn {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-light);
    margin-top: 24px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 12px;
    }
    
    .form-container {
        padding: 20px 16px;
    }
    
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .combined-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .esg-container {
        aspect-ratio: auto;
    }
    
    /* Aumentar altura do container ESG quando o seletor está visível no mobile */
    .esg-container:has(.esg-method-selector:not(.esg-method-selector-hidden)) {
        min-height: 280px;
    }
    
    .esg-container .section-title {
        font-size: 18px;
        margin-bottom: 8px;
        padding-left: 48px;
        padding-right: 16px;
    }
    
    .esg-container .section-title .info-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .esg-container .section-title .info-icon .tooltip {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 110%;
    }
    
    .esg-back-button {
        top: 12px;
        left: 16px;
    }
    
    .esg-method-selector {
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .esg-selector-row {
        gap: 8px;
    }
    
    .esg-method-selector label {
        font-size: 11px;
        margin-bottom: 0;
    }
    
    .esg-select {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 120px;
    }
    
    .esg-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .esg-nav-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .esg-grid {
        grid-template-rows: 1fr 1fr 1fr;
        gap: 8px;
    }
    
    .pie-chart-container {
        aspect-ratio: auto;
    }
    
    .bind-features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-btn {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .info-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .info-icon .tooltip {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 110%;
    }
    
    .roi-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .timeline-label {
        min-width: auto;
        text-align: center;
    }
    
    .timeline-value {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 14px 0 8px 0;
    }
    
    .main-title {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 11px;
    }
    
    .simulator-section {
        padding: 20px 0 32px 0;
    }
    
    .results-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .esg-container .section-title {
        padding-left: 44px;
        padding-right: 12px;
    }
    
    .esg-back-button {
        top: 10px;
        left: 12px;
    }
    
    .esg-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .esg-nav-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .cta-section {
        padding: 16px 12px;
    }
    
    .cta-title {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cabeçalho dos Resultados */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.new-simulation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(252, 84, 4, 0.3);
}

.new-simulation-btn:hover {
    background: #e64a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 84, 4, 0.4);
}

.new-simulation-btn img {
    transition: transform 0.3s ease;
}

.new-simulation-btn:hover img {
    transform: rotate(180deg);
}



/* Seção de Gráfico Unificado */
.chart-section {
    margin-bottom: 32px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.chart-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 16px;
    text-align: center;
}

.chart-section .section-title .info-icon {
    margin-left: 8px;
    vertical-align: middle;
}

.chart-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.chart-btn {
    padding: 8px 16px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.chart-btn:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chart-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(252, 84, 4, 0.3);
}

.chart-container {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    min-height: 200px;
}

.unified-chart-content {
    width: 100%;
}

.chart-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
    min-height: 40px;
    width: 100%;
}

.chart-item:last-child {
    margin-bottom: 0;
}

.chart-label {
    min-width: 200px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    height: 40px;
    background: var(--muted);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.chart-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.chart-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* Responsividade para controles do gráfico */
@media (max-width: 768px) {
    .chart-section .section-title {
        font-size: 20px;
    }
    
    .chart-section .info-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .chart-section .info-icon .tooltip {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 110%;
    }
    
    .chart-controls {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .chart-btn {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .chart-label {
        min-width: 150px;
        font-size: 13px;
    }
    
    .chart-value {
        min-width: 60px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .chart-controls {
        gap: 4px;
    }
    
    .chart-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .table-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    /* Layout vertical para gráfico em mobile */
    .chart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .chart-label {
        min-width: unset;
        width: 100%;
        font-size: 14px;
        font-weight: 600;
        justify-content: flex-start;
    }
    
    .chart-bar {
        width: 100%;
        height: 36px;
    }
    
    .chart-fill {
        font-size: 12px;
    }
    
    .chart-value {
        display: none;
    }
    
    .chart-container {
        padding: 16px;
    }
}

/* Estilos das barras do gráfico unificado */
.chart-fill.bind-bar {
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(252, 84, 4, 0.3);
}

.chart-fill.cost-bar {
    background: linear-gradient(90deg, var(--destructive), var(--red-400));
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.chart-fill.time-bar {
    background: linear-gradient(90deg, var(--chart-3), var(--gray-300));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-fill.env-bar {
    background: linear-gradient(90deg, var(--green-600), var(--green-400));
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

/* Estilos para diferenças percentuais */
.positive-diff {
    color: var(--green-600);
    font-weight: 600;
}

.negative-diff {
    color: var(--destructive);
    font-weight: 700;
}

/* Destaque para valores de referência do Bind no modo percentual */
.bind-row td:not(.method-name-cell) {
    background-color: rgba(252, 84, 4, 0.05);
    font-weight: 500;
}

