* {
    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: 2rem;
}

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

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

/* 드롭존 스타일 */
.upload-section {
    margin-bottom: 2rem;
}

.dropzone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dropzone:hover,
.dropzone.dragover {
    background: #eef1ff;
    border-color: #764ba2;
    transform: scale(1.02);
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-icon {
    width: 80px;
    height: 80px;
    color: #667eea;
    margin: 0 auto 1rem;
}

.dropzone-text {
    font-size: 1.3rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dropzone-subtext {
    font-size: 0.95rem;
    color: #888;
}

.url-input {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
}

/* 형식 선택 */
.format-selection {
    margin: 2rem 0;
}

.format-selection h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.format-buttons {
    display: flex;
    gap: 1rem;
}

.format-btn {
    flex: 1;
    padding: 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.format-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

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

.format-icon {
    font-size: 2rem;
}

.format-label {
    font-weight: 600;
    font-size: 1rem;
}

/* 다운로드 버튼 */
.download-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

/* 상태 메시지 */
.status {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status.loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    display: block;
}

/* 최근 파일 목록 */
.recent-files {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.recent-files h3 {
    color: #333;
    margin-bottom: 1rem;
}

#fileList {
    list-style: none;
}

#fileList li {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: #f8f9ff;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#fileList li a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

#fileList li a:hover {
    text-decoration: underline;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.delete-btn {
    padding: 0.35rem 0.65rem;
    color: #c0392b;
    background: white;
    border: 1px solid #e6b0aa;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.delete-btn:hover {
    color: white;
    background: #c0392b;
}

/* 반응형 */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .format-buttons {
        flex-direction: column;
    }
}