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