/* SoCalculadoras – Juros Compostos – layout clean azul */

.socalc-ci-wrapper {
    max-width: 960px;
    margin: 0 auto 32px auto;
    padding: 24px 24px 28px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.socalc-ci-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

@media (max-width: 768px) {
    .socalc-ci-wrapper {
        padding: 20px 16px 24px;
        border-radius: 14px;
    }
    .socalc-ci-grid {
        grid-template-columns: 1fr;
    }
}

.socalc-ci-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.socalc-ci-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.socalc-ci-input,
.socalc-ci-select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #111827;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.socalc-ci-input:focus,
.socalc-ci-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background-color: #ffffff;
}

.socalc-ci-input::placeholder {
    color: #9ca3af;
}

.socalc-ci-input-prefix {
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    overflow: hidden;
}

.socalc-ci-prefix {
    padding: 10px 10px 10px 12px;
    font-size: 0.9rem;
    color: #6b7280;
    background-color: #f3f4f6;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

.socalc-ci-input-prefix .socalc-ci-input {
    border: none;
    border-radius: 0;
    background: transparent;
}

.socalc-ci-input-group {
    display: grid;
    grid-template-columns: 1.4fr auto auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
}

.socalc-ci-input-group .socalc-ci-input {
    border: none;
    border-radius: 0;
    background: transparent;
}

.socalc-ci-sufix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 0.9rem;
    color: #6b7280;
    background-color: #f3f4f6;
    border-left: 1px solid #e5e7eb;
    white-space: nowrap;
}

.socalc-ci-input-group .socalc-ci-select {
    border: none;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    background-color: #f9fafb;
}

.socalc-ci-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.socalc-ci-button,
.socalc-ci-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.socalc-ci-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.socalc-ci-button:hover {
    filter: brightness(1.05);
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.socalc-ci-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.socalc-ci-button-outline {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.socalc-ci-button-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.socalc-ci-error {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.socalc-ci-result {
    margin-top: 28px;
}

.socalc-ci-result-header {
    margin-bottom: 16px;
}

.socalc-ci-result-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.socalc-ci-result-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .socalc-ci-result-cards {
        grid-template-columns: 1fr;
    }
}

.socalc-ci-metric {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 14px 16px;
    box-sizing: border-box;
    text-align: center;
}

.socalc-ci-metric-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.socalc-ci-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.socalc-ci-metric-highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.06);
}

.socalc-ci-metric-highlight .socalc-ci-metric-value {
    color: #1d4ed8;
}

.socalc-ci-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.socalc-ci-brand {
    font-size: 0.8rem;
    color: #9ca3af;
}
