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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

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

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.upload-label {
    display: inline-block;
    padding: 20px 40px;
    background: #4CAF50;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    border: 3px dashed transparent;
}

.upload-label:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

#slideCount {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#slideCount:hover {
    opacity: 1;
}

#slideCount::-webkit-slider-thumb {
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

#slideCount::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

.action-btn {
    width: 100%;
    padding: 15px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.preview {
    margin-top: 30px;
}

.preview-item {
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.preview-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.format-select {
    margin: 20px 0;
    text-align: left;
}
.format-select label {
    margin-right: 10px;
    font-weight: bold;
}
