/* css/style.css */
.lec-calculator {
    max-width: 720px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 22px rgba(28,40,50,0.08);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #1c2732;
}

.lec-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lec-form .lec-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.lec-form label {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #34414a;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lec-form input[type="number"],
.lec-form select {
    padding: 10px 12px;
    border: 1px solid #e6eef3;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fbfdff;
}

.lec-form input[type="number"]:focus,
.lec-form select:focus {
    border-color: #6aa7ff;
    box-shadow: 0 6px 18px rgba(106,167,255,0.08);
}

.lec-tenure-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.lec-tenure-left { flex: 1; }
.lec-tenure-right { width: 120px; }

.lec-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.lec-btn {
    background: linear-gradient(90deg, #1677ff 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 6px 14px rgba(22,119,255,0.12);
}

.lec-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lec-loading {
    font-size: 1.1rem;
    color: #1677ff;
}

.lec-error {
    background: #fff3f3;
    color: #b00020;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #ffd6d6;
}

.lec-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

@media(min-width: 640px) {
    .lec-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

.lec-result-item {
    background: #f8fbff;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #e8f1fb;
}

.lec-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(22,119,255,0.12), rgba(14,165,233,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0d6efd;
}

.lec-result-text {
    display: flex;
    flex-direction: column;
}

.lec-result-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.lec-result-label {
    font-size: 0.85rem;
    color: #56636b;
}

.lec-hidden {
    display: none;
}

/* small tweaks */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
