*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f4f5f7;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    text-align: center;
    padding: 28px 20px 12px;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #16213e;
}

main {
    width: 100%;
    max-width: 560px;
    padding: 20px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Dropzone */

.dropzone {
    width: 100%;
    border: 2px dashed #c0c4cc;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.dropzone.dragover {
    border-color: #4a6cf7;
    background: #eef1ff;
}

.dropzone.has-file {
    border-style: solid;
    border-color: #4a6cf7;
}

.dropzone__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
}

.dropzone__icon {
    color: #8b8fa3;
    margin-bottom: 4px;
}

.dropzone p {
    color: #555;
    font-size: 15px;
}

.dropzone__or {
    font-size: 13px !important;
    color: #999 !important;
}

.dropzone__filename {
    font-weight: 500;
    color: #4a6cf7 !important;
    word-break: break-all;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--primary {
    background: #4a6cf7;
    color: #fff;
}

.btn--primary:hover:not(:disabled) {
    background: #3b5de7;
}

.btn--outline {
    background: transparent;
    color: #4a6cf7;
    border: 1.5px solid #4a6cf7;
}

.btn--outline:hover {
    background: #eef1ff;
}

.btn--success {
    background: #22c55e;
    color: #fff;
}

.btn--success:hover {
    background: #16a34a;
}

/* Actions */

.actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Spinner */

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* Result */

.result {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.result p {
    font-size: 15px;
    font-weight: 500;
    color: #16213e;
    word-break: break-all;
    text-align: center;
}

.result__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
