/* =============================================================
   COMPOUND INTEREST CALCULATOR - CalcLeaf light theme
   All classes prefixed "cic-" to avoid collisions with other tools.
   ============================================================= */

.cic-tool {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    color: #1e2a4a;
}

.cic-card {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.cic-hint {
    background: #1e2a4a;
    color: #ffffff;
    font-size: 13px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cic-hint-icon {
    font-size: 11px;
}

.cic-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 20px 8px 20px;
}

.cic-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.cic-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.cic-input,
.cic-select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1e2a4a;
    background: #ffffff;
    width: 100%;
}

.cic-input:focus,
.cic-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.cic-input-suffix {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.cic-input-suffix .cic-input {
    border: none;
    border-radius: 0;
}

.cic-input-suffix .cic-input:focus {
    box-shadow: none;
}

.cic-suffix {
    padding: 0 10px;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    border-left: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.cic-equals {
    font-size: 20px;
    font-weight: 700;
    color: #6b7280;
    padding-bottom: 8px;
}

.cic-output-box {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    min-height: 36px;
    display: flex;
    align-items: center;
}

/* ---------- Buttons ---------- */
.cic-actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px 22px 20px;
}

.cic-btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.15s;
}

.cic-btn:hover {
    opacity: 0.9;
}

.cic-btn-primary {
    background: #10b981;
    color: #ffffff;
}

.cic-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .cic-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cic-equals {
        display: none;
    }

    .cic-actions {
        flex-direction: column;
    }

    .cic-btn {
        width: 100%;
    }
}
