/* ===========================================
    Present Value Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.pv-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.pv-form {
    padding: 25px; 
    border: 1px solid #673AB7; /* Deep Purple Border */
    border-radius: 8px;
    background-color: #EDE7F6; /* Very Light Purple Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.pv-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #512DA8; /* Darker Purple */
    border-bottom: 2px solid #D1C4E9;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* --- Input Grid --- */
.pv-input-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%;
    margin-bottom: 10px; 
}

.pv-input-group {
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.pv-input-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 8px;
}

.pv-input-group input, .pv-input-group select {
    padding: 12px;
    border: 1px solid #9575CD;
    border-radius: 6px;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
}

/* Button Styles */
.pv-calculate-btn {
    display: block;
    width: 100%;
    padding: 16px; 
    margin-top: 30px; 
    background-color: #512DA8; /* Primary Dark Purple */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.pv-calculate-btn:hover {
    background-color: #311B92;
}

/* --- Results Display --- */
.pv-results {
    margin-top: 20px; 
    padding: 25px;
    border: 2px solid #673AB7; 
    border-radius: 8px;
    background-color: #D1C4E9; /* Light Purple */
    text-align: center;
}

.pv-results-title {
    color: #512DA8;
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #B39DDB;
    padding-bottom: 5px;
}

/* Results Table */
.pv-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.pv-results-table th, .pv-results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #B39DDB;
    text-align: left;
}
.pv-results-table th {
    background-color: #EDE7F6; 
    color: #512DA8;
    font-weight: 600;
    width: 55%;
}

/* Key Value Styling */
.pv-results-table td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00897B; /* Teal for money values */
}

/* Final Balance Highlight */
.pv-results-table tr.final-pv td {
    font-size: 1.6rem;
    color: #FF5722; /* Deep Orange for key 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) {
    .pv-input-group {
        flex-basis: 100%;
    }
}