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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed #667eea;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    background: #e9ecef;
    border-color: #5568d3;
}

.drop-zone.drag-over {
    background: #d1ecf1;
    border-color: #0c5460;
    border-style: solid;
    transform: scale(1.02);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-icon {
    color: #667eea;
    margin-bottom: 16px;
}

.drop-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.drop-subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.file-label {
    flex: 1;
    min-width: 200px;
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
}

.file-label:hover {
    background: #5568d3;
}

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

.upload-btn {
    padding: 12px 32px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.upload-btn:hover:not(:disabled) {
    background: #218838;
}

.upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pause-btn, .resume-btn, .cancel-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 24px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.pause-btn {
    background: #ffc107;
    color: #333;
}

.pause-btn:hover {
    background: #e0a800;
}

.resume-btn {
    background: #17a2b8;
}

.resume-btn:hover {
    background: #138496;
}

.cancel-btn {
    background: #dc3545;
}

.cancel-btn:hover {
    background: #c82333;
}

.progress-section {
    margin-bottom: 30px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.upload-stats {
    text-align: center;
    color: #333;
    font-size: 13px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.upload-stats span {
    margin: 0 8px;
    font-weight: 600;
}

.upload-stats .uploaded-count {
    color: #28a745;
}

.upload-stats .skipped-count {
    color: #17a2b8;
}

.elapsed-time {
    text-align: center;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-speed {
    text-align: center;
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.file-item.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.file-item.uploading {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.file-status {
    font-size: 14px;
    color: #666;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.file-info {
    margin-top: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-info span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.file-info #fileCount {
    font-weight: 600;
    color: #667eea;
}

