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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Calculator Container */
.calculator-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Form Styles */
.calculator-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Input with Buttons */
.input-with-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-buttons input {
    flex: 1;
}

.info-btn, .calc-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.info-btn {
    background: #17a2b8;
    color: white;
    min-width: 50px;
}

.info-btn:hover {
    background: #138496;
    transform: translateY(-2px);
}

.calc-btn {
    background: #28a745;
    color: white;
}

.calc-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Dani Tip */
.dani-tip {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-calculate, .btn-clear {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-clear {
    background: #6c757d;
    color: white;
}

.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-3px);
}

/* Tab Content */
.tab-content {
    display: none;
}

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

/* Results */
.results {
    margin-top: 30px;
    text-align: center;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #667eea;
}

.result-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.price-display {
    margin: 20px 0;
}

.currency {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #28a745;
    margin-left: 5px;
}

.result-details {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-item {
    text-align: center;
}

.detail-item .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.detail-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* AI Tips */
.ai-tips {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.ai-tips h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tip-item {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.tip-item.warning {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.tip-item.success {
    border-left-color: #28a745;
    background: #d4edda;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    color: #333;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    color: #555;
}

.modal-body li i {
    color: #667eea;
    margin-right: 8px;
    width: 16px;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.dani-tip-large {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .calculator-container {
        padding: 25px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .input-with-buttons {
        flex-direction: column;
    }
    
    .result-details {
        flex-direction: column;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Informações do regime selecionado */
.regime-info-display {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8edff 100%);
    border: 2px solid #667eea;
    border-radius: 8px;
}

.info-regime {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.regime-selected {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.btn-edit-regime {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-edit-regime:hover {
    background: rgba(102, 126, 234, 0.1);
}

.regime-observacao {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Informações do serviço selecionado */
.servico-info-display {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
}

.info-servico {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.servico-selected {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-edit-servico {
    background: none;
    border: none;
    color: #28a745;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-edit-servico:hover {
    background: rgba(40, 167, 69, 0.1);
}

.servico-categoria {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Estados de validação dos campos */
input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: #fff5f5 !important;
}

input.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Botão de calcular destacado */
.btn-calculate {
    position: relative;
    overflow: hidden;
}

.btn-calculate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-calculate:hover::before {
    left: 100%;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Breakdown de Custos */
.breakdown-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    border: 2px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.breakdown-card h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-card h3 i {
    color: #667eea;
}

.breakdown-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-align: center;
}

.breakdown-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cores específicas para cada tipo de custo */
.breakdown-item.produto {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.breakdown-item.operacional {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.breakdown-item.impostos {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.breakdown-item.comissao {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
}

.breakdown-item.cartao {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #f8f5ff 0%, #ffffff 100%);
}

.breakdown-item.lucro {
    border-left-color: #20c997;
    background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%);
    border: 2px solid #20c997;
    font-weight: 600;
}

.breakdown-item.lucro-percent {
    border-left-color: #667eea;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    border: 2px solid #667eea;
    font-weight: 600;
}

.breakdown-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
}

.breakdown-label i {
    width: 18px;
    text-align: center;
}

.breakdown-value {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

/* Ícones coloridos */
.breakdown-item.produto .breakdown-label i {
    color: #28a745;
}

.breakdown-item.operacional .breakdown-label i {
    color: #17a2b8;
}

.breakdown-item.impostos .breakdown-label i {
    color: #ffc107;
}

.breakdown-item.comissao .breakdown-label i {
    color: #fd7e14;
}

.breakdown-item.cartao .breakdown-label i {
    color: #6f42c1;
}

.breakdown-item.lucro .breakdown-label i,
.breakdown-item.lucro-percent .breakdown-label i {
    color: #20c997;
}

/* Summary Total */
.breakdown-summary {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Responsive para breakdown */
@media (max-width: 768px) {
    .breakdown-card {
        padding: 20px;
        margin-top: 20px;
    }
    
    .breakdown-card h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .breakdown-item {
        padding: 12px 15px;
    }
    
    .breakdown-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breakdown-value {
        align-self: flex-end;
        font-size: 1rem;
    }
    
    .summary-total {
        flex-direction: column;
        gap: 5px;
    }
    
    .summary-label {
        font-size: 1rem;
    }
    
    .summary-value {
        font-size: 1.3rem;
    }
}

/* Seção de Comparação de Lucros - Seguindo Layout do Site */
.lucro-comparison-section {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.lucro-comparison-section h2 {
    color: #495057;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 0;
    background: none;
    color: #495057;
    text-shadow: none;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.lucro-comparison-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.comparison-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.comparison-header i {
    color: #3399ff;
    font-size: 1.4rem;
}

.comparison-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.current-lucro-analysis {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.lucro-atual-info,
.lucro-desejado-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.lucro-atual-info:last-child,
.lucro-desejado-info:last-child {
    margin-bottom: 0;
}

.lucro-atual-info h3,
.lucro-desejado-info h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.lucro-atual-info h3::before {
    content: "💰";
    font-size: 1.2rem;
    color: #28a745;
}

.lucro-desejado-info h3::before {
    content: "🎯";
    font-size: 1.2rem;
    color: #007bff;
}

.lucro-display,
.margem-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lucro-value,
.lucro-percent,
.margem-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #dee2e6;
    background: white;
    position: relative;
    transition: background-color 0.2s ease;
}

.lucro-value:last-child,
.lucro-percent:last-child,
.margem-value:last-child {
    border-bottom: none;
}

.lucro-value:hover,
.lucro-percent:hover,
.margem-value:hover {
    background: #f8f9fa;
}

.lucro-value::before,
.lucro-percent::before,
.margem-value::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28a745;
    opacity: 1;
}

.lucro-percent::before {
    background: #ffc107;
}

.margem-value::before {
    background: #007bff;
}

.lucro-value:last-child,
.lucro-percent:last-child,
.margem-value:last-child {
    border-bottom: none;
}

.lucro-value .label,
.lucro-percent .label,
.margem-value .label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.lucro-value strong,
.lucro-percent strong,
.margem-value strong {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.profit-value {
    color: #28a745 !important;
    font-weight: 700 !important;
}

.margin-value {
    color: #007bff !important;
    font-weight: 700 !important;
}



.profit-value {
    color: #27ae60 !important;
    font-weight: 700 !important;
}

.margin-value {
    color: #f39c12 !important;
}

.comparison-footer {
    border-top: 2px solid #f8f9fa;
    padding-top: 20px;
}



.recommendation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

/* Estilos removidos - seções não utilizadas */

/* Headers das seções - Seguindo Layout do Site */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    padding: 0;
    border-bottom: none;
    background: transparent;
}

.section-header i {
    color: #007bff;
    font-size: 1.1rem;
}

.section-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Grid de análise - Seguindo Layout do Site */
.analise-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.analise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.analise-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.analise-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28a745;
    border-radius: 6px 0 0 6px;
    opacity: 1;
}

.analise-item:nth-child(2)::before {
    background: #007bff;
}

.analise-item:nth-child(3)::before {
    background: #ffc107;
}

.analise-item:nth-child(4)::before {
    background: #dc3545;
}

.analise-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
}

.analise-value {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

/* Grid de custos - Seguindo Layout do Site */
.causa-intro {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 15px;
    padding: 0;
}

.custo-total {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.custos-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.custo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.custo-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.custo-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #6c757d;
    border-radius: 6px 0 0 6px;
    opacity: 1;
}

.custo-item i {
    color: #6c757d;
    font-size: 1rem;
    margin-right: 10px;
}

.custo-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
}

.custo-valor {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

/* Explicação texto - Seguindo Layout do Site */
.explicacao-texto {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.explicacao-texto:hover {
    border-color: #007bff;
}

.explicacao-texto::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #6c757d;
    border-radius: 6px 0 0 6px;
    opacity: 1;
}

.explicacao-texto i {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.explicacao-texto p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
}

.recommendation i {
    color: #dc3545;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.explicacao-detalhada {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
    backdrop-filter: none;
}

.explicacao-detalhada ul {
    margin: 15px 0;
    padding-left: 25px;
    list-style: none;
}

.explicacao-detalhada li {
    margin: 8px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.explicacao-detalhada li::before {
    content: "•";
    color: #2196f3;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.explicacao-detalhada strong {
    color: #1976d2;
    font-weight: 700;
}

.explicacao-detalhada p strong {
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

/* Responsivo para análise de lucro - Seguindo Layout do Site */
@media (max-width: 768px) {
    .lucro-comparison-section {
        margin-top: 15px;
        padding: 15px;
    }
    
    .lucro-comparison-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .lucro-atual-info,
    .lucro-desejado-info {
        margin-bottom: 12px;
    }
    
    .lucro-atual-info h3,
    .lucro-desejado-info h3 {
        padding: 12px 15px;
        font-size: 1rem;
        gap: 8px;
    }
    
    .lucro-atual-info h3::before,
    .lucro-desejado-info h3::before {
        font-size: 1.1rem;
    }
    
    .lucro-value,
    .lucro-percent,
    .margem-value {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .lucro-value .label,
    .lucro-percent .label,
    .margem-value .label {
        font-size: 0.9rem;
    }
    
    .lucro-value strong,
    .lucro-percent strong,
    .margem-value strong {
        font-size: 1rem;
    }
    
    .recommendation {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .recommendation i {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 12px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .section-header h4 {
        font-size: 1rem;
    }
    
    .analise-grid,
    .custos-grid {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .analise-item,
    .custo-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .analise-label,
    .custo-label {
        font-size: 0.9rem;
    }
    
    .analise-value,
    .custo-valor {
        font-size: 0.95rem;
    }
    
    .causa-intro {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }
    
    .explicacao-texto {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .explicacao-texto p {
        font-size: 0.9rem;
    }
}