* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #101828;
    color: #101828;
}

.snt-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.snt-card {
    width: 100%;
    max-width: 820px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.snt-header {
    text-align: center;
    margin-bottom: 28px;
}

.snt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3538cd;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
}

.snt-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.1;
}

.snt-header p {
    margin: 0;
    color: #667085;
    font-size: 16px;
}

.snt-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

.snt-alert-warning {
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #93370d;
}

.snt-form {
    display: grid;
    gap: 16px;
}

.snt-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    border: 2px dashed #98a2b3;
    border-radius: 20px;
    background: #f9fafb;
    cursor: pointer;
    text-align: center;
    padding: 22px;
    transition: 0.2s ease;
}

.snt-upload:hover {
    background: #f2f4f7;
    border-color: #3538cd;
}

.snt-upload input {
    display: none;
}

.snt-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    color: #3538cd;
    font-size: 28px;
    font-weight: 700;
}

.snt-upload strong {
    font-size: 18px;
}

.snt-upload small {
    max-width: 520px;
    color: #667085;
    line-height: 1.5;
}

.snt-file-info {
    color: #475467;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.snt-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #3538cd;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.snt-button:hover {
    filter: brightness(0.95);
}

.snt-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.snt-progress {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    padding: 16px;
}

.snt-progress[hidden] {
    display: none;
}

.snt-progress p {
    margin: 4px 0 0;
    color: #667085;
}

.snt-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #d0d5dd;
    border-top-color: #3538cd;
    border-radius: 999px;
    animation: snt-spin 0.8s linear infinite;
}

@keyframes snt-spin {
    to {
        transform: rotate(360deg);
    }
}

.snt-result {
    margin-top: 22px;
}

.snt-result[hidden] {
    display: none;
}

.snt-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.snt-result-header h2 {
    margin: 0;
    font-size: 22px;
}

.snt-actions {
    display: flex;
    gap: 8px;
}

.snt-actions button,
.snt-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    color: #344054;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

#transcriptionText {
    width: 100%;
    min-height: 320px;
    resize: vertical;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #d0d5dd;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #101828;
}

@media (max-width: 640px) {
    .snt-card {
        padding: 22px;
        border-radius: 18px;
    }

    .snt-header h1 {
        font-size: 28px;
    }

    .snt-result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .snt-actions {
        width: 100%;
    }

    .snt-actions button,
    .snt-actions a {
        flex: 1;
    }
}

.snt-alert-success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.snt-alert a {
    color: inherit;
    font-weight: 800;
}

.snt-config-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 700;
}

.snt-config-form input,
.snt-config-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 15px;
    color: #101828;
    background: #fff;
}

.snt-config-form small {
    color: #667085;
    font-weight: 500;
}

.snt-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #101828;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}
