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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 24px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.drop-zone {
    padding: 60px 20px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.drop-zone:hover { border-color: #4CAF50; background: #f9fff9; }
.drop-zone.dragover { background: #e8f5e9; border-color: #4CAF50; }
.drop-zone p { color: #888; font-size: 15px; }
.drop-zone .icon { font-size: 36px; margin-bottom: 10px; color: #aaa; }
.drop-zone .hint { font-size: 12px; color: #aaa; }

.file-name {
    color: #333;
    font-weight: bold;
    margin-top: 10px;
    display: none;
    font-size: 14px;
    word-break: break-all;
    overflow-wrap: break-word;
}

input[type="file"] { display: none; }

.btn {
    background: #4CAF50;
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
    transition: background 0.2s;
}

.btn:hover { background: #43a047; }
.btn:disabled { background: #ccc; cursor: not-allowed; }

.result-msg { margin-top: 16px; font-size: 14px; }
.result-ok { color: #2e7d32; }
.result-fail { color: #c62828; }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.overlay.active { display: flex; }

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.progress-msg { margin-top: 16px; font-size: 14px; color: #888; }
