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

body {
    font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.content {
    padding: 30px;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f1ff;
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8e9ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

#fileInput {
    display: none;
}

.file-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    background: #f5f5f5;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item .name {
    font-weight: 500;
}

.file-item .remove {
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
}

.actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #d0d0d0;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #229954;
}

.log-section {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.log-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.log-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 13px;
    line-height: 1.6;
}

.log-item {
    margin: 3px 0;
}

.log-info { color: #4ec9b0; }
.log-warn { color: #dcdcaa; }
.log-error { color: #f48771; }
.log-success { color: #6a9955; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 14px;
    opacity: 0.9;
}

.options-section {
    margin-top: 20px;
}

.option-card {
    background: #fff9e6;
    border: 2px solid #ffd966;
    border-radius: 8px;
    padding: 20px;
}

.option-card.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.option-header h4 {
    margin: 0;
    color: #856404;
    font-size: 16px;
}

.warning-icon {
    font-size: 24px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.option-item:hover {
    background: rgba(255, 193, 7, 0.1);
}

.option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-item strong {
    color: #d32f2f;
    font-size: 18px;
}

.option-note {
    color: #856404;
    font-size: 12px;
    font-style: italic;
}
