/* Modern Glassmorphism + Neon Accent UI */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --bg-card: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #7c3aed;
    --accent-hover: #8b5cf6;
    --success: #22c55e;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --blur: blur(14px);
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 100px 24px 30px;
    color: var(--text-primary);

    background:
        radial-gradient(circle at top left, #7c3aed 0%, transparent 30%),
        radial-gradient(circle at bottom right, #06b6d4 0%, transparent 30%),
        linear-gradient(135deg, #0f172a, #111827, #1e293b);

    background-attachment: fixed;
}

/* Header */

header {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 24px;
    border-radius: 20px;

    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);

    border: 1px solid var(--border);
    box-shadow: var(--shadow);

    z-index: 1000;
}

header h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header a {
    position: absolute;
    right: 24px;

    text-decoration: none;
    color: #ffffff;

    padding: 10px 16px;
    border-radius: 12px;

    background: linear-gradient(135deg, var(--accent), #06b6d4);

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

header a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45);
}

/* Main Layout */

.container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;

    max-width: 1400px;
    margin: 0 auto;

    padding: 24px;
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);

    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Sidebar Controls */

.controls {
    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 24px;
    border-radius: 22px;

    background: var(--bg-card);
    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Labels */

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Inputs */

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;

    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.08);
    color: var(--text-primary);

    outline: none;
    transition: all 0.25s ease;

    font-size: 15px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.45);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(124, 58, 237, 0.8);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
    background: rgba(255,255,255,0.12);
}

/* Checkbox */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 0;
    color: var(--text-primary);
}

/* Output Section */

.output {
    padding: 24px;
    border-radius: 22px;

    background: var(--bg-card);
    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

/* Textarea */

textarea {
    min-height: 420px;

    font-family: 'Fira Code', monospace;
    line-height: 1.6;

    resize: vertical;
}

/* Buttons */

button {
    border: none;
    border-radius: 14px;

    padding: 14px 18px;

    background: linear-gradient(
        135deg,
        var(--accent),
        #06b6d4
    );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;

    cursor: pointer;

    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

button:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--accent-hover),
        #22d3ee
    );

    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
}

button:active {
    transform: scale(0.98);
}

/* SVG Preview */

.svg-container {
    margin-top: 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 200px;
    padding: 24px;

    border-radius: 22px;

    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.18);

    overflow: hidden;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--accent),
        #06b6d4
    );

    border-radius: 20px;
}

/* Responsive */

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

    header {
        padding: 16px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    header a {
        position: static;
        margin-left: auto;
    }
}


