* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    line-height: 1.6;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2rem;
    color: #1d3557;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: #457b9d;
    margin-bottom: 2rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #457b9d;
    border-radius: 10px;
    padding: 2rem;
    background: #fff;
    margin-bottom: 2rem;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-area:hover {
    background: #f5f7fa;
}

#fileInput {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-text i {
    font-size: 2rem;
    color: #e63946;
    margin-bottom: 0.5rem;
}

.upload-text p {
    font-size: 1rem;
    color: #666;
}

/* Preview Area */
.preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.preview-item {
    background: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 150px;
}

.preview-item canvas {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.preview-item p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #666;
}

/* Convert Button */
.convert-btn {
    padding: 0.8rem 2rem;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.convert-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.convert-btn:hover:not(:disabled) {
    background: #d62828;
}

/* Status Message */
.status {
    margin-top: 1rem;
    font-size: 1rem;
    color: #1d3557;
}

/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .upload-area {
        padding: 1.5rem;
    }

    .convert-btn {
        padding: 0.6rem 1.5rem;
    }
}