/* ===========================================
    Paycheck Calculator - Tool Specific Styles
    =========================================== */

.pc-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Form Styling */
.pc-form {
    padding: 30px;
    border: 1px solid #cce5ff; 
    border-radius: 8px;
    background-color: #f8faff; /* Very light blue background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.pc-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #007bff; /* Primary Blue */
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.pc-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
}

.pc-input-group label {
    font-weight: 500;
    color: #343a40;
    flex: 1;
    padding-right: 15px;
}

.pc-input-group input, .pc-input-group select {
    width: 150px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

.pc-fixed-value {
    font-weight: 600;
    color: #28a745; /* Green for fixed tax rates */
    width: 150px;
    text-align: right;
    padding-right: 8px;
}

/* Button Styles */
.pc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 30px;
    background-color: #20c997; /* Teal color for calculating */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pc-calculate-btn:hover {
    background-color: #1aae88;
}

/* Results Display */
.pc-results {
    margin-top: 40px;
    padding: 30px;
    border: 2px solid #20c997; 
    border-radius: 8px;
    background-color: #f0fdf9; /* Very light teal background */
    text-align: center;
}

.pc-results-title {
    color: #1aae88;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pc-result-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 25px;
}

.pc-data-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.pc-data-segment {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px 10px;
    width: 45%;
    min-width: 150px;
}

/* Specific styling for the NET PAY result */
.pc-data-segment.income-net {
    border: 3px solid #20c997;
    background-color: #e6fff5;
}

.pc-data-segment.deduction-total {
    border: 1px solid #ffc107;
}

.pc-data-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #007bff;
    line-height: 1.1;
}

.pc-data-segment.income-net .pc-data-value {
    color: #20c997; /* Green for Net Pay */
}

.pc-data-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

.pc-recalculate-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pc-recalculate-btn:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .pc-form {
        padding: 20px;
    }
    .pc-input-group label {
        flex: 0 0 55%;
    }
    .pc-input-group input, .pc-input-group select, .pc-fixed-value {
        width: 40%;
    }
    .pc-data-grid {
        gap: 10px;
    }
    .pc-data-segment {
        width: 100%;
        min-width: unset;
    }
}