body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.upload-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

h2 { margin-top: 0; color: #333; text-align: center; }

.form-group { margin-bottom: 1rem; }

label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #555; }

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-group input { margin-right: 10px; margin-top: 4px; }

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background-color: #0056b3; }

.progress-wrapper {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 20px;
    background-color: #28a745;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    transition: width 0.3s;
}

#fileList div { margin-top: 5px; font-size: 0.85rem; }

#statusMessage { margin-top: 15px; text-align: center; font-weight: bold; }
.success { color: green; }
.error { color: red; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 6px;
}

.preview-item {
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    font-size: 0.75rem;
}

.preview-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.video-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #555;
    padding: 5px;
    word-break: break-all;
}

.preview-item span {
    display: block;
    padding: 4px;
    color: #666;
}

input[type="file"] {
    display: block;
    margin-bottom: 5px;
}