:root {
    /* Color Palette */
    --primary: #F59E0B;
    --primary-hover: #D97706;
    --secondary: #FCD34D;
    --accent: #FFFBEB;
    --background: #1A1500;
    --surface-dark: #2A2200;
    --surface-light: rgba(255, 255, 255, 0.05);

    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(245, 158, 11, 0.2);

    /* Variables */
    --border-radius: 12px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--background);
    background-image:
        radial-gradient(ellipse at 10% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 90%, rgba(252, 211, 77, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(26, 21, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    gap: 1.5rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    color: var(--primary);
    display: flex;
    align-items: center;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Workspace Grid */
.workspace {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

.pane-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.pane-header h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Wizard Content */
.wizard-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wizard-content {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wizard-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Common form elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.glass-input {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.glass-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Radio Cards */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.radio-card input {
    display: none;
}

.radio-card .card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

.radio-card input:checked+.card-content {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.card-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Checkboxes */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-item input {
    display: none;
}

.check-box {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.check-box::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    transform: scale(0);
    transition: transform 0.2s;
}

.checkbox-item input:checked+.check-box {
    border-color: var(--primary);
}

.checkbox-item input:checked+.check-box::after {
    transform: scale(1);
}

.check-label {
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Toggles */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.toggle-item.hidden {
    display: none;
}

.toggle-info {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.toggle-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
    background-color: var(--primary);
}

/* Preview Pane */
.preview-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-container {
    flex: 1;
    overflow: auto;
    background: rgba(0, 0, 0, 0.3);
}

.preview-container pre {
    margin: 0;
    padding: 1.5rem;
    min-height: 100%;
}

/* overriding prism styles slightly */
code[class*="language-"],
pre[class*="language-"] {
    background: transparent !important;
    text-shadow: none !important;
    font-family: var(--font-mono) !important;
    font-size: 0.85rem !important;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

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

    .wizard-pane {
        max-height: 50vh;
    }
}