* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
}

header {
    background: #2c3e50;
    color: #fff;
    padding: 25px 30px;
    border-bottom: 3px solid #1a252f;
}

h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-box {
    background: #34495e;
    padding: 12px 18px;
    display: inline-block;
    border-left: 3px solid #27ae60;
}

.info-box p {
    margin: 3px 0;
    font-size: 0.95rem;
    color: #ecf0f1;
}

.info-box strong {
    color: #fff;
    font-weight: 600;
}

main {
    padding: 30px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Upload Section */
.upload-section {
    text-align: center;
}

.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #27ae60;
    background: #f0fcf5;
}

.drop-zone.dragover {
    border-color: #27ae60;
    background: #e8fce8;
    border-style: solid;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drop-zone-content svg {
    color: #999;
}

.drop-text {
    color: #666;
    font-size: 1rem;
}

.file-label {
    display: inline-block;
    padding: 10px 24px;
    background: #27ae60;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 4px;
}

.file-label:hover {
    background: #219a52;
}

.file-hint {
    color: #999;
    font-size: 0.85rem;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 20px;
}

.file-icon {
    color: #c0392b;
}

.file-details {
    flex: 1;
    text-align: left;
}

.file-name {
    display: block;
    font-weight: 500;
    color: #333;
    word-break: break-all;
}

.file-size {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.remove-btn {
    padding: 8px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #c0392b;
}

/* Convert Button */
.convert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
    margin-top: 25px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.convert-btn:hover:not(:disabled) {
    background: #219a52;
}

.convert-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    text-align: center;
    padding: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    width: 0%;
    transition: width 0.3s;
    animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    color: #666;
    font-size: 0.95rem;
}

/* Complete Section */
.complete-section {
    text-align: center;
    padding: 20px 0;
}

.complete-icon {
    color: #27ae60;
    margin-bottom: 15px;
}

.complete-section h2 {
    color: #27ae60;
}

.complete-text {
    color: #666;
    margin-bottom: 25px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #219a52;
}

.new-convert-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 15px auto 0;
    padding: 10px 20px;
    background: none;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.new-convert-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 20px 0;
}

.error-icon {
    color: #c0392b;
    margin-bottom: 15px;
}

.error-section h2 {
    color: #c0392b;
}

.error-text {
    color: #666;
    margin-bottom: 25px;
}

.error-text a {
    color: #3498db;
    text-decoration: none;
}

.error-text a:hover {
    text-decoration: underline;
}

.retry-btn {
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #c0392b;
}

/* Notice Section */
.notice-section {
    background: #fffbe6;
    border: 1px solid #e6d8a8;
    border-left: 4px solid #d4a017;
    padding: 20px;
    margin: 0 30px 25px 30px;
}

.notice-section h2 {
    color: #5d4e00;
    margin-bottom: 12px;
    font-size: 1.1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.notice-content p {
    color: #665500;
    margin: 8px 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.notice-content strong {
    color: #4a4000;
}

.notice-content .warning {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d4a017;
    color: #8b6914;
}

.notice-content a {
    color: #3498db;
    text-decoration: none;
}

.notice-content a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #f8f9fa;
    text-align: center;
    padding: 15px 20px;
    color: #777;
    font-size: 0.85rem;
    border-top: 1px solid #ddd;
}

/* Home Link */
.home-link {
    display: inline-block;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-weight: 500;
}

.home-link:hover {
    opacity: 1;
    color: #fff;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2c3e50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.3rem;
    }

    header {
        padding: 20px;
    }

    main {
        padding: 20px;
    }

    .notice-section {
        margin: 0 20px 20px 20px;
    }

    .drop-zone {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .convert-btn, .download-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .file-info {
        flex-wrap: wrap;
    }

    .file-details {
        width: calc(100% - 60px);
    }
}
