/* ===========================================
    Net Profit Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.profit-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.profit-form {
    padding: 25px; 
    border: 1px solid #7CB342; /* Light Green Border */
    border-radius: 8px;
    background-color: #F1F8E9; /* Very Light Green Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.profit-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #558B2F; /* Dark Green */
    border-bottom: 2px solid #C5E1A5;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.profit-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; /* Minimize space between groups */
}

.profit-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.profit-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.profit-input-group input {
    padding: 12px;
    border: 1px solid #9CCC65;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
}

/* Button Styles */
.profit-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #558B2F; /* Primary Dark Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.profit-calculate-btn:hover {
    background-color: #33691E;
}

/* --- Results Display --- */
.profit-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #7CB342; 
    border-radius: 8px;
    background-color: #DCEDC8; /* Medium Light Green */
    text-align: center;
}

.profit-results-title {
    color: #558B2F;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #C5E1A5;
    padding-bottom: 5px;
}

/* Results Table (Income Statement View) */
.profit-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.profit-results-table th, .profit-results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #C5E1A5;
    text-align: left;
}
.profit-results-table th {
    background-color: #E8F5E9; /* Very light background for labels */
    color: #558B2F;
    font-weight: 600;
    width: 45%;
}

/* Highlighted Profit Rows */
.profit-results-table tr.gross-profit,
.profit-results-table tr.operating-profit,
.profit-results-table tr.net-profit {
    border-bottom: 3px double #558B2F; /* Stronger separation for profit lines */
    font-weight: 700;
}

/* Profit Margin Value Styling */
.profit-margin-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00796B; /* Teal for margins */
    margin-left: 10px;
}

/* Net Profit Value Highlight */
.profit-results-table tr.net-profit td {
    font-size: 1.4rem;
    color: #E91E63; /* Pink/Red for final result */
}

/* Recalculate Button (Global Style Reuse) */
.bc-recalculate-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #9E9E9E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bc-recalculate-btn:hover {
    background-color: #616161;
}

/* --- Responsive Adjustments --- */
@media (max-width: 550px) {
    .profit-input-group {
        flex-basis: 100%; /* Stack inputs on small screens */
    }
}