/* =============================================================
   SALES TAX CALCULATOR - CalcLeaf light theme
   All classes prefixed "stc-" to avoid collisions with other tools.
   ============================================================= */

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

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

.stc-form {
    padding: 20px 18px;
}

.stc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.stc-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.stc-input {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1e2a4a;
    background: #ffffff;
    width: 160px;
}

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

.stc-input-prefix,
.stc-input-suffix {
    display: flex;
    align-items: center;
    width: 160px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.stc-input-prefix .stc-input,
.stc-input-suffix .stc-input {
    border: none;
    width: 100%;
    border-radius: 0;
}

.stc-input-prefix .stc-input:focus,
.stc-input-suffix .stc-input:focus {
    box-shadow: none;
}

.stc-prefix,
.stc-suffix {
    padding: 0 10px;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.stc-prefix {
    border-right: 1px solid #d1d5db;
}

.stc-suffix {
    border-left: 1px solid #d1d5db;
}

/* ---------- Buttons ---------- */
.stc-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

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

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

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

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

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .stc-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stc-input,
    .stc-input-prefix,
    .stc-input-suffix {
        width: 100%;
    }

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