/* Compound Interest Calculator Specific Styles */

/* Input container */
.input-container {
    display: flex;
    gap: 8px;
}

/* Input control styling */
.input-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-control:hover {
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

.input-control:focus {
    outline: none;
    border-color: #003049;
    box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.1);
}

/* Custom select styling */
select.input-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background: white url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}

/* Optional label styling */
.optional-label {
    font-weight: 400;
    color: #666;
    font-size: 14px;
}

/* Error states */
.input-control.error {
    border-color: #dc2626;
    background-color: #fff;
}

.input-control.error:hover {
    border-color: #dc2626;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
}

.input-control.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px solid #bae6fd;
}

.result-item.highlight {
    grid-column: 1 / -1;
    background: rgba(0, 48, 73, 0.05);
    border-color: #003049;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.result-value {
    font-size: 18px;
    font-weight: 600;
    color: #003049;
}

.result-item.highlight .result-value {
    font-size: 24px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-item.highlight {
        grid-column: 1;
    }
}
