:root {
    --bg: #000000;
    --surface: #111111;
    --surface-hover: #1A1A1A;
    --border: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --accent: #FFFFFF;
    --danger: #FF4444;
    --radius-sm: 6px;
    --radius-md: 12px;
    --font-sans: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

body {
    background: var(--bg);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* 4-Column Layout */
#builder-layout {
    display: grid;
    grid-template-columns: 60px 350px 1fr 320px;
    height: 100vh;
    width: 100vw;
}

/* Column 1: Navigation Rail */
.nav-rail {
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    z-index: 10;
}

.rail-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.nav-rail-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.rail-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.rail-item:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.rail-item.active {
    color: var(--bg);
    background: var(--accent);
}

/* Column 2: Editor Panel */
.editor-panel {
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 5;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.add-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--surface-hover);
    border-color: var(--text-secondary);
}

.builder-section {
    padding: 1.5rem;
}

.builder-section.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.premium-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.premium-input:focus {
    outline: none;
    border-color: var(--text-secondary);
    background: var(--surface-hover);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.builder-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
}

.remove-btn:hover {
    opacity: 1;
}

/* RTE Styles */
.rte-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.rte-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-hover);
}

.rte-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.rte-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.rte-editor {
    min-height: 100px;
    padding: 12px;
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.rte-editor ul, .rte-editor ol {
    padding-left: 20px;
}

/* Column 3: Preview Pane */
.preview-pane {
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    overflow: hidden;
    position: relative;
}

.paper-preview {
    background: white;
    width: 210mm;
    min-height: 297mm;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform-origin: top center;
    transition: transform 0.1s ease-out;
}

.zoom-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.zoom-controls button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
}

#zoom-level {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* Column 4: Settings Sidebar */
.settings-sidebar {
    background: var(--bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.5rem;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.settings-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.reset-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

.reset-btn:hover {
    color: var(--text-primary);
}

.layout-group {
    margin-bottom: 2rem;
}

.layout-group h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.layout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: grab;
}

.drag-handle {
    color: var(--text-secondary);
    cursor: grab;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 0.5;
}

.layout-item.drag-over {
    border: 1px dashed var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--text-primary);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

/* Typography Grid */
.font-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.font-option {
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.font-option:hover {
    background: var(--surface-hover);
    border-color: var(--text-secondary);
}

.font-option.active {
    background: var(--text-primary);
    color: var(--bg);
    border-color: var(--text-primary);
}

.css-editor {
    width: 100%;
    height: 150px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    resize: vertical;
}

.css-editor:focus {
    outline: none;
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
<<<<<<< HEAD
=======
}

/* Home Page Specifics */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.dot {
    color: var(--accent);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

#onboarding-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.step-container {
    max-width: 600px;
    width: 100%;
    padding: 2rem;
}

.hero-text {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.gradient-text-animated {
    background: linear-gradient(to right, #fff, #888, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    to { background-position: 200% center; }
}

.input-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.amoled-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1.2rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.amoled-input:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}

.glow-btn {
    background: var(--text-primary);
    color: var(--bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.glow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.mt-large {
    margin-top: 3rem;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.text-btn:hover {
    color: var(--text-primary);
>>>>>>> parent of b0aba26 (Bug Fix)
}