/* ===========================================
   Inflation Calculator - Tool Specific Styles
   =========================================== */

/* Tool Layout */
.icf-box {
    max-width: 700px;
    margin: 0 auto;
}

/* Controls and Inputs */
.icf-controls {
    background: #fefce8; /* Light Yellow/Cream BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #fde68a;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for inputs */
    gap: 20px;
}

.icf-input-group {
    display: flex;
    flex-direction: column;
}

.icf-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a16207; /* Dark Gold/Brown Label */
    margin-bottom: 6px;
}

.icf-input {
    padding: 10px;
    border: 1px solid #fbbf24; /* Medium Gold Border */
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    width: 100%;
}

.icf-input-addon {
    display: flex;
    align-items: center;
}

/* Input addons for currency and percentage */
.icf-input-addon span {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-right: none;
    padding: 10px;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    color: #a16207;
}

.icf-input-addon .icf-input {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

/* Specific styling for the Calculate button outside the grid */
.icf-btn-calc-container {
    grid-column: 1 / 3; /* Spans both columns */
    padding-top: 10px;
}

.icf-btn-calc {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #f59e0b; /* Primary Amber/Gold Button */
    color: white;
    transition: background 0.2s;
}
.icf-btn-calc:hover {
    background: #d97706;
}

/* --- Results Summary --- */

.icf-results-section {
    margin-top: 30px;
}

.icf-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two results */
    gap: 20px;
    text-align: center;
    padding: 20px;
    background: #fefce8; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.icf-result-item {
    border-right: 1px solid #fde68a;
    padding: 0 10px;
}

.icf-result-item:last-child {
    border-right: none;
}

.icf-result-label {
    font-size: 0.9rem;
    color: #a16207;
    font-weight: 600;
    margin-bottom: 5px;
}

.icf-result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .icf-controls {
        grid-template-columns: 1fr; 
        padding: 20px;
    }
    .icf-btn-calc-container {
        grid-column: 1 / 2;
    }
    .icf-summary {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .icf-result-item {
        border-right: none;
        border-bottom: 1px solid #fde68a;
        padding-bottom: 15px;
    }
    .icf-result-item:last-child {
        border-bottom: none;
    }
    .icf-result-value {
        font-size: 1.8rem;
    }
}