/* Calculadora de Combustível - Estilos */

.calc-comb-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calc-comb-header {
    background: linear-gradient(135deg, var(--calc-primary) 0%, var(--calc-secondary) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.calc-comb-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-comb-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.calc-comb-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.calc-comb-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.calc-comb-form {
    padding: 40px 30px;
}

.calc-comb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .calc-comb-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.calc-comb-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.calc-comb-section h3 svg {
    width: 20px;
    height: 20px;
    color: var(--calc-primary);
}

.calc-comb-input-group {
    margin-bottom: 20px;
}

.calc-comb-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.fuel-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.calc-comb-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.calc-comb-input-group input:focus {
    outline: none;
    border-color: var(--calc-primary);
    box-shadow: 0 0 0 3px rgba(33, 71, 166, 0.1);
}

.calc-comb-input-group small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.calc-comb-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
}

.calc-comb-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 16px 40px !important;
    background: #000000 !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.calc-comb-btn-primary:hover {
    background: #FC6C0A !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 108, 10, 0.4) !important;
}

.calc-comb-btn-primary svg {
    width: 20px;
    height: 20px;
}

/* Resultado */
.calc-comb-resultado {
    margin-top: 30px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.resultado-header h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1f2937;
    text-align: center;
}

.resultado-recomendacao {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.resultado-recomendacao.gasolina {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #fbbf24;
}

.resultado-recomendacao.etanol {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.resultado-recomendacao svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.resultado-detalhes {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detalhe-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detalhe-item:last-child {
    border-bottom: none;
}

.detalhe-item.destaque {
    font-weight: 600;
    color: var(--calc-primary);
}

.detalhe-label {
    color: #6b7280;
}

.detalhe-valor {
    font-weight: 600;
    color: #1f2937;
}

.economia-mensal {
    color: #10b981 !important;
    font-size: 18px;
}

.resultado-info {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #eff6ff;
    border-left: 4px solid var(--calc-primary);
    border-radius: 8px;
}

.resultado-info svg {
    width: 24px;
    height: 24px;
    color: var(--calc-primary);
    flex-shrink: 0;
}

.resultado-info p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.6;
}

/* Loading */
.calc-comb-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--calc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.calc-comb-loading p {
    color: #6b7280;
    font-size: 16px;
}

/* Responsivo */
@media (max-width: 600px) {
    .calc-comb-wrapper {
        margin: 20px;
        border-radius: 12px;
    }

    .calc-comb-header {
        padding: 30px 20px;
    }

    .calc-comb-form {
        padding: 30px 20px;
    }

    .calc-comb-btn-primary {
        width: 100%;
        justify-content: center;
    }
}