:root {
    --bg: #0f1724;
    --card: #0b1220;
    --accent: #60a5fa;
    --muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03)
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #071127 0%, #071730 100%);
    color: #e6eef8
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #0b1220;
    position: relative;
    top: 0;
    z-index: 1000;
}

.navbar .title {
    font-weight: 600;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #e6eef8;
    font-size: 15px;
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-icon span {
    width: 22px;
    height: 2px;
    background: white;
    display: block;
    border-radius: 1px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #0b1220;
    padding: 10px 20px;
}

.mobile-menu a {
    text-decoration: none;
    color: #e6eef8;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .mobile-menu.show {
        display: flex;
    }
}

.wrap {
    max-width: 980px;
    margin: 32px auto;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.6)
}

h1 {
    margin: 0 0 8px;
    font-size: 20px
}

p.lead {
    margin: 0 0 18px;
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 18px
}

.card {
    background: var(--card);
    padding: 14px;
    border-radius: 10px
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px
}

input[type=file],
select,
input[type=number],
button,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: inherit
}

textarea {
    min-height: 160px;
    font-family: monospace;
    resize: vertical
}

.controls {
    display: flex;
    gap: 8px;
    margin-top: 10px
}

button.primary {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border: none;
    color: white;
    padding: 10px 12px;
    cursor: pointer
}

button.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer
}

.preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px
}

canvas {
    max-width: 100%;
    border-radius: 8px;
    background: var(--glass)
}

.meta {
    font-size: 13px;
    color: var(--muted)
}

.footer {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted)
}

.row {
    display: flex;
    gap: 8px
}

.small {
    font-size: 13px
}

.drop {
    border: 2px dashed rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    color: var(--muted)
}

@media (max-width:920px) {
    .grid {
        grid-template-columns: 1fr
    }
}