/* Basic structure adapted */
.calcufacil-profit_margin_calculator.calcufacil-container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    font-family: 'Arial', sans-serif;
}

.calcufacil-profit_margin_calculator .calcufacil-left,
.calcufacil-profit_margin_calculator .calcufacil-right {
    flex: 1;
    min-width: 280px;
}

.calcufacil-profit_margin_calculator .calculator-form h2 {
    font-size: 22px;
    color: #27ae60; /* Profit theme color (green) */
    margin-bottom: 15px;
    text-align: center;
}

.calcufacil-profit_margin_calculator .input-group {
    margin-bottom: 15px;
}

.calcufacil-profit_margin_calculator .input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.calcufacil-profit_margin_calculator .input-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: #f9f9f9;
}

.calcufacil-profit_margin_calculator button {
    background: #27ae60; /* Profit theme color */
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
}

.calcufacil-profit_margin_calculator button:hover {
    background: #1e8449;
}

.calcufacil-profit_margin_calculator .form-note {
     font-size: 12px;
     color: #555;
     margin-top: 15px;
     background: #e8f8f5;
     padding: 8px;
     border-radius: 4px;
     line-height: 1.4;
}


.calcufacil-profit_margin_calculator .results {
    background: #e8f8f5; /* Light green background */
    padding: 20px;
    border-radius: 8px;
}

.calcufacil-profit_margin_calculator .results-header h2 {
    font-size: 24px;
    color: #27ae60;
    text-align: center;
    margin-bottom: 20px;
}

.calcufacil-profit_margin_calculator .result-section {
     background: #fff;
     padding: 15px;
     border-radius: 6px;
     margin-bottom: 20px;
     box-shadow: 0 2px 4px rgba(0,0,0,0.07);
}
.calcufacil-profit_margin_calculator .result-section:last-child {
     margin-bottom: 0;
}

.calcufacil-profit_margin_calculator .result-section h4 {
     margin-top: 0;
     margin-bottom: 15px;
     font-size: 16px;
     color: #1e8449;
     border-bottom: 1px solid #abe bc6;
     padding-bottom: 6px;
}


.calcufacil-profit_margin_calculator .result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px; /* Slightly less padding */
    margin-bottom: 6px;
    border-bottom: 1px dotted #eee;
    font-size: 14px;
}
.calcufacil-profit_margin_calculator .result-item:last-child {
     border-bottom: none;
     margin-bottom: 0;
}


.calcufacil-profit_margin_calculator .result-item span {
    color: #333;
    flex-basis: 60%;
    padding-right: 10px;
}

.calcufacil-profit_margin_calculator .result-item strong {
    font-weight: 600;
    text-align: right;
    flex-basis: 40%;
    color: #1e8449;
}


/* Specific styles for profit/margin results */
.calcufacil-profit_margin_calculator .result-item.result-profit,
.calcufacil-profit_margin_calculator .result-item.result-margin {
    font-weight: bold;
}

.calcufacil-profit_margin_calculator .result-item.positive strong {
    color: #27ae60; /* Green for positive */
}

.calcufacil-profit_margin_calculator .result-item.negative strong {
    color: #c0392b; /* Red for negative */
}

.calcufacil-profit_margin_calculator .errors {
    color: #d32f2f;
    font-size: 14px;
    background: #ffcdd2;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #d32f2f;
}

@media (max-width: 768px) {
    .calcufacil-profit_margin_calculator.calcufacil-container {
        flex-direction: column;
        padding: 15px;
    }
     .calcufacil-profit_margin_calculator .result-item {
         /* Keep flex row */
         text-align: left;
         font-size: 13px;
     }
     .calcufacil-profit_margin_calculator .result-item span {
        flex-basis: 55%;
    }
    .calcufacil-profit_margin_calculator .result-item strong {
        flex-basis: 45%;
    }
}