:root {
    --purple: #a855f7;
    --dark: #0f172a;
    --glass: rgba(30, 41, 59, 0.6);
    --border: rgba(168, 85, 247, 0.3);
}

body {
    background-color: var(--dark);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.portal-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 80%);
    z-index: -1;
}

.container { width: 90%; max-width: 900px; padding: 50px 0; text-align: center; }

h1 { font-size: 3rem; margin-bottom: 5px; font-weight: 800; }
h1 span { color: var(--purple); text-shadow: 0 0 30px rgba(168, 85, 247, 0.5); }

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }

label { display: block; margin-bottom: 10px; font-size: 0.85rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; }

select, textarea {
    width: 100%; background: #020617; border: 1px solid #334155;
    padding: 15px; border-radius: 16px; color: white; font-size: 1rem;
    box-sizing: border-box; transition: 0.3s;
}

textarea { height: 120px; border-left: 5px solid var(--purple); font-family: inherit; }
select:focus, textarea:focus { border-color: var(--purple); outline: none; }

#generate-btn {
    width: 100%; padding: 18px; background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    border: none; border-radius: 16px; color: white; font-weight: 800; cursor: pointer;
    font-size: 1.2rem; transition: 0.4s; margin-bottom: 30px;
}

#generate-btn:hover { transform: scale(1.02); box-shadow: 0 0 40px rgba(168, 85, 247, 0.4); }

.output-area { background: #000; border-radius: 18px; overflow: hidden; border: 1px solid #334155; }

.code-header { background: #1e293b; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
#file-name { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #cbd5e1; }

pre { margin: 0; padding: 25px; color: #a5f3fc; font-family: 'JetBrains Mono', monospace; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }

#copy-btn { background: #334155; border: none; color: white; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; }
#copy-btn:hover { background: var(--purple); }

footer { margin-top: 30px; color: #475569; font-size: 0.8rem; }