* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f5f5; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.container { background: #fff; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.08); padding: 40px; max-width: 520px; width: 100%; }
.page-logo { display: block; max-width: 180px; height: auto; margin-bottom: 24px; }
h1 { color: #333; font-size: 22px; margin-bottom: 8px; text-align: center; }
.subtitle { text-align: center; }
.subtitle { color: #888; font-size: 14px; margin-bottom: 30px; text-align: center; }
.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; }
.file-name { color: #333; font-weight: bold; margin-top: 10px; display: none; font-size: 14px; word-break: break-all; max-width: 100%; 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; }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 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-text { margin-top: 20px; font-size: 18px; color: #333; font-weight: 600; }
.progress-msg { margin-top: 8px; font-size: 14px; color: #888; }
.progress-bar-wrap { width: 260px; height: 8px; background: #e0e0e0; border-radius: 4px; margin-top: 16px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: #4CAF50; border-radius: 4px; transition: width 0.4s ease; }

.error-msg { color: #d32f2f; margin-top: 15px; font-size: 14px; display: none; }
