body {
    font-family: Arial, sans-serif;
    background: #0a0f2c;
    color: gold;
    margin: 0;
}

header {
    background: #09102b;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    font-weight: bold;
    font-size: 24px;
    color: gold;
}

header nav a {
    color: gold;
    text-decoration: none;
    margin: 0 5px;
}

main { padding: 30px; }

.editor {
    max-width: 1000px;
    margin: auto;
    background: rgba(255,215,0,0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.tools {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tools button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: gold;
    color: black;
    cursor: pointer;
    font-weight: bold;
}
.tools button:hover { background: #ffc700; }

.drop-area {
    border: 2px dashed gold;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 30px;
    font-size: 18px;
    color: gold;
    transition: border-color 0.3s, background 0.3s;
}

.drop-area:hover {
    background: rgba(255,215,0,0.05);
    border-color: #ffc700;
}

.drop-area p { margin: 0; font-weight: bold; }
.drop-area input { display: none; }

#previewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.preview-card {
    background: rgba(255,215,0,0.05);
    padding: 10px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}

.preview-card img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.preview-card p {
    margin: 2px 0;
    font-size: 12px;
}

.convert-section {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.convert-section select, .convert-section button {
    margin: 5px;
    padding: 10px;
    border-radius: 8px;
    border: none;
}

.convert-section button {
    background: gold;
    color: black;
    font-weight: bold;
    cursor: pointer;
}
.convert-section button:hover { background: #ffc700; }

.progress {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: none;
    margin-bottom: 20px;
}
.progress-bar {
    width: 0%;
    height: 20px;
    background: gold;
    border-radius: 10px;
}

#result a.download {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background: gold;
    color: black;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
#result a.download:hover { background: #ffc700; }