:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0284c7;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f1f5f9;
    color: var(--text);
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Studio Header */
.studio-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f766e 100%);
    color: white;
    padding: 1.25rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.studio-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.brand-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 3px;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.header-quick-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.header-quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-quick-btn.highlight {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
}

.header-quick-btn.highlight:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Tool Container */
.tool-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
}

.converter-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.75rem;
    align-items: start;
}

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

.panel {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: fit-content;
}

/* Step Card Architecture */
.steps-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.step-number-pill {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.step-number-pill.optional {
    background: #e2e8f0;
    color: #475569;
    box-shadow: none;
}

.step-number-pill.output {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.step-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Right Panel: Sticky Live Preview */
.preview-panel-sticky {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.preview-panel-sticky::-webkit-scrollbar {
    width: 6px;
}

.preview-panel-sticky::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

h2 {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-badge {
    font-size: 0.72rem;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.section-badge.new {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Templates Section */
.templates-strip {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: 1.25rem;
}

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

.templates-header h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.65rem;
}

.template-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.template-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.template-card.active {
    border-color: var(--primary);
    background: #f0fdf4;
    box-shadow: 0 0 0 2px var(--primary);
}

.tpl-icon {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.tpl-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.tpl-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

/* Visual UI Component Inserter Toolbar */
.component-toolbar {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toolbar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.insert-chip {
    background: white;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.insert-chip:hover {
    background: #ecfdf5;
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Editor */
.editor-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.code-editor {
    width: 100%;
    height: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    padding: 1rem;
    resize: vertical;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    tab-size: 2;
}

.code-editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Upload & URL */
.file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 2.25rem 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: var(--primary);
    background: #f0fdf4;
}

.file-upload input[type="file"] {
    display: none;
}

.url-input-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Form Controls */
.config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

input[type="text"],
input[type="number"],
input[type="url"],
select {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: white;
    transition: border-color 0.2s;
    width: 100%;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.color-picker-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

input[type="color"] {
    width: 44px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: white;
}

/* Checkbox Items */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.checkbox-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-item-content {
    display: flex;
    flex-direction: column;
}

.checkbox-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.checkbox-item-desc {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

/* Feature Cards */
.feature-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    margin-bottom: 0.85rem;
}

/* Icon Studio */
.icon-studio-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 0.85rem;
}

.icon-studio-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: center;
}

@media (max-width: 600px) {
    .icon-studio-grid {
        grid-template-columns: 1fr;
    }
}

.icon-live-canvas-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#iconPreviewCanvas {
    width: 96px;
    height: 96px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

#iconPreviewCanvas:hover {
    transform: scale(1.05);
}

.icon-studio-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.icon-glyph-strip {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 4px;
}

.glyph-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.15s;
}

.glyph-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.glyph-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.gradient-presets {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.grad-pill {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s;
}

.grad-pill:hover,
.grad-pill.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--primary);
}

/* Nav tabs builder */
.nav-tabs-builder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

@media (max-width: 500px) {
    .nav-tabs-builder {
        grid-template-columns: 1fr;
    }
}

.nav-tab-input-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
}

/* Action Buttons */
.action-buttons-group {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.primary-actions-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .primary-actions-row {
        grid-template-columns: 1fr;
    }
}

.secondary-actions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

@media (max-width: 600px) {
    .secondary-actions-row {
        grid-template-columns: 1fr;
    }
}

.btn {
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: #334155;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
}

.btn-info:hover {
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-outline {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: #f0fdf4;
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    border: 1px solid var(--border);
}

.loading.active {
    display: block;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.75rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Right Panel: Phone Mockup */
.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.device-picker-group {
    display: flex;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 3px;
    border-radius: var(--radius-sm);
}

.preview-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.preview-btn.active {
    background: white;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.preview-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0 1.5rem 0;
}

.phone-mockup {
    width: 320px;
    height: 620px;
    background: #0f172a;
    border-radius: 38px;
    border: 10px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.phone-mockup.landscape {
    width: 580px;
    height: 360px;
    border-radius: 28px;
}

.phone-status-bar {
    height: 24px;
    background: #0f172a;
    color: white;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.phone-action-bar {
    height: 48px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.phone-progress-bar {
    height: 3px;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: none;
    transition: opacity 0.3s ease;
}

.phone-progress-bar.active {
    display: block;
    background: rgba(0,0,0,0.06);
}

.phone-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    transition: width 0.4s ease-out;
}


.phone-content {
    flex: 1;
    background: white;
    position: relative;
    overflow: hidden;
}

.phone-bottom-nav {
    height: 52px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
}

.phone-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #64748b;
    cursor: pointer;
    gap: 2px;
}

.phone-bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.phone-ad-banner {
    height: 44px;
    background: #f8fafc;
    border-top: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.phone-toast {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 50;
    white-space: nowrap;
}

.phone-toast.show {
    opacity: 1;
}

/* QR Code Card */
.qr-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.qr-img-box {
    width: 80px;
    height: 80px;
    background: white;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.qr-img-box img {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.qr-info p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
}

/* File Structure */
.file-structure {
    background: #0f172a;
    color: #94a3b8;
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    max-height: 240px;
    overflow-y: auto;
}

.folder {
    color: #38bdf8;
    font-weight: 600;
}

.folder-content {
    margin-left: 1.25rem;
    border-left: 1px dashed rgba(255,255,255,0.15);
    padding-left: 0.5rem;
}

.file-item {
    color: #e2e8f0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #1e293b;
}

.code-snippet {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 0.75rem 0;
}

/* Toast Notification */
#notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    max-width: 400px;
    border-left: 4px solid var(--primary);
}

#notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-icon {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 50;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
