/* Container and layout */
.snv-container {
    max-width: 620px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background-color: #ffffff;
    /* box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08); */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}

.snv-container#fa {
    font-family: "mitra" "Nazanin" system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.snv-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Form fields */
.snv-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.snv-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.snv-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

#fa .snv-label {
    text-align: right;
    margin-bottom:10px;
}

.snv-input {
    padding: 0.6rem 0.8rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.snv-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25) !important;
}

.snv-input::placeholder {
    color: #9ca3af;
}

/* Actions / button */
.snv-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.2rem;
}

.snv-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.snv-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.snv-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

.snv-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    box-shadow: none;
}

/* Spinner inside button */
.snv-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    animation: snv-spin 0.7s linear infinite;
}

.snv-button--loading .snv-spinner {
    display: inline-block;
}

.snv-button--loading .snv-button-text {
    opacity: 0.9;
}

@keyframes snv-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.snv-message {
    min-height: 1.1em;
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
    transition: color 0.15s ease;
}

.snv-message--info {
    color: #2563eb;
}

.snv-message--success {
    color: #16a34a;
}

.snv-message--error {
    color: #dc2626;
}

/* Result container + animation */
.snv-result-container {
    margin-top: 1.8rem;
    border-radius: 0.9rem;
    /* border: 1px dashed #e5e7eb; */
    padding: 1rem;
    /* background-color: #f9fafb; */
    color: #111827;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.2s ease-out,
        transform 0.2s ease-out,
        max-height 0.25s ease-out,
        padding-top 0.2s ease-out,
        padding-bottom 0.2s ease-out,
        border-color 0.2s ease-out,
        background-color 0.2s ease-out;
}

.snv-result-container--visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 900px; /* large enough for most content */
    /* border-color: #d1d5db; */
    /* background-color: #f3f4f6; */
}

/* Optional: style inner content if you control it */
.snv-result-container h2,
.snv-result-container h3 {
    margin-top: 0;
}
