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

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}
h1 { font-size: 2em; color: #00d4aa; }
.subtitle { color: #888; margin-top: 5px; }
.status-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.85em;
}
.status-badge.online { background: #1a3a2a; color: #00d4aa; }
.status-badge.offline { background: #3a1a1a; color: #ff4444; }
.status-badge.checking { background: #2a2a1a; color: #ffd700; }

/* Drop zone */
.drop-zone {
    border: 2px dashed #444;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.05);
}
.drop-icon { font-size: 3em; display: block; margin-bottom: 10px; }
.drop-hint { font-size: 0.85em; color: #666; margin-top: 5px; }

/* Section titles */
h2 {
    font-size: 1.1em;
    color: #aaa;
    margin-bottom: 12px;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
}

/* File cards */
.file-list { margin-bottom: 10px; }
.file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 6px;
    border-left: 4px solid #444;
    transition: all 0.3s;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.file-card.queued { border-left-color: #666; }
.file-card.processing { border-left-color: #ffd700; }
.file-card.done { border-left-color: #00d4aa; }
.file-card.error { border-left-color: #ff4444; }

.file-icon { font-size: 1.2em; flex-shrink: 0; }
.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95em;
}
.file-status { font-size: 0.85em; white-space: nowrap; color: #aaa; }
.file-status .claim-num { color: #00d4aa; font-weight: bold; }
.file-status .err-text { color: #ff4444; }

/* Spinner for processing */
.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Batch summary */
.batch-summary {
    display: flex;
    gap: 24px;
    padding: 14px 18px;
    background: #1a1a2e;
    border-radius: 10px;
    margin-top: 4px;
    justify-content: center;
}
.batch-stat { text-align: center; }
.batch-stat .value { font-size: 1.6em; font-weight: bold; }
.batch-stat .label { font-size: 0.8em; color: #888; margin-top: 2px; }
.batch-stat.green .value { color: #00d4aa; }
.batch-stat.red .value { color: #ff4444; }
.batch-stat.gray .value { color: #888; }

/* History */
.history-list { margin-top: 4px; }
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #1a1a2e;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.9em;
}
.history-item .h-time { color: #666; font-size: 0.85em; }
.history-item .h-result { font-size: 0.9em; }
.empty-hint { color: #555; text-align: center; padding: 20px; }

/* Utilities */
.hidden { display: none; }
