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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.drop-zone:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.drop-zone.drag-over {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: scale(1.02);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #666;
    margin-bottom: 1rem;
}

.drop-zone p {
    color: #666;
    margin: 0.5rem 0;
}

.drop-zone p.small {
    font-size: 0.875rem;
    color: #999;
}

.progress {
    margin-top: 2rem;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.progress.uploading .progress-bar::before {
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 95%; }
}

.progress-text {
    text-align: center;
    color: #666;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.result {
    text-align: center;
    margin-top: 2rem;
}

.result h3 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

.download-btn, .new-upload-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    margin: 0.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.download-btn {
    background: #4CAF50;
    color: white;
}

.download-btn:hover {
    background: #45a049;
}

.new-upload-btn {
    background: #f0f0f0;
    color: #333;
}

.new-upload-btn:hover {
    background: #e0e0e0;
}

.error {
    margin-top: 2rem;
    padding: 1rem;
    background: #ffebee;
    border-radius: 6px;
}

.error-text {
    color: #c62828;
    text-align: center;
}

.hidden {
    display: none;
}

.text-options {
    margin-top: 1.5rem;
}

.text-options label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.text-options input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.text-options input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.start-btn {
    width: 100%;
    padding: 0.875rem;
    margin-top: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.start-btn:hover {
    background: #45a049;
}