/* Global Variables & Color Palette */
:root {
    --bg-dark: #070a13;
    --panel-bg: rgba(13, 20, 38, 0.55);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-hint: #64748b;
    
    /* Neon Glow Accent Gradients */
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-purple-gradient: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
    --accent-glow: 0 0 20px rgba(79, 172, 254, 0.45);
    
    /* Background Glow Colors */
    --glow-1-color: rgba(0, 242, 254, 0.4);
    --glow-2-color: rgba(127, 0, 255, 0.4);
    
    /* Section Colors */
    --color-intro: #3b82f6;
    --color-verse: #10b981;
    --color-pre-chorus: #8b5cf6;
    --color-chorus: #ec4899;
    --color-post-chorus: #f43f5e;
    --color-breakdown: #f59e0b;
    --color-middle-8: #06b6d4;
    --color-outro: #64748b;
}

/* Reset & Base Elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Decorative Glow Spots */
.glass-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
    transition: all 0.8s ease;
}

.glow-1 {
    background: radial-gradient(circle, var(--glow-1-color) 0%, rgba(0, 242, 254, 0) 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    background: radial-gradient(circle, var(--glow-2-color) 0%, rgba(225, 0, 255, 0) 70%);
    bottom: -150px;
    right: -100px;
}

/* --- SEASONAL VISUAL THEME OVERRIDES --- */

/* Spring: Soft Cherry Blossom Pink and Fresh Leaf Green */
body.theme-spring {
    --accent-cyan: #ffb5a7;
    --accent-blue: #52b788;
    --accent-gradient: linear-gradient(135deg, #ffb5a7 0%, #52b788 100%);
    --accent-glow: 0 0 20px rgba(82, 183, 136, 0.45);
    --glow-1-color: rgba(255, 181, 167, 0.35);
    --glow-2-color: rgba(82, 183, 136, 0.35);
}

/* Summer: Golden Sand and Turquoise Ocean */
body.theme-summer {
    --accent-cyan: #2a9d8f;
    --accent-blue: #f4a261;
    --accent-gradient: linear-gradient(135deg, #2a9d8f 0%, #f4a261 100%);
    --accent-glow: 0 0 20px rgba(244, 162, 97, 0.45);
    --glow-1-color: rgba(244, 162, 97, 0.35);
    --glow-2-color: rgba(42, 157, 143, 0.35);
}

/* Autumn: Terracotta Rust and Slate Blue */
body.theme-autumn {
    --accent-cyan: #3d5a80;
    --accent-blue: #e07a5f;
    --accent-gradient: linear-gradient(135deg, #e07a5f 0%, #3d5a80 100%);
    --accent-glow: 0 0 20px rgba(224, 122, 95, 0.45);
    --glow-1-color: rgba(224, 122, 95, 0.35);
    --glow-2-color: rgba(61, 90, 128, 0.35);
}

/* Winter: Icy Crystal Blue and Dark Slate */
body.theme-winter {
    --accent-cyan: #94a3b8;
    --accent-blue: #4a90e2;
    --accent-gradient: linear-gradient(135deg, #4a90e2 0%, #1e293b 100%);
    --accent-glow: 0 0 20px rgba(74, 144, 226, 0.45);
    --glow-1-color: rgba(74, 144, 226, 0.35);
    --glow-2-color: rgba(30, 41, 59, 0.50);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* App Container Layout */
.app-container {
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px 0 10px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 32px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
}

.header-logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-logo p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Status Badge */
.engine-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-orange {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.dot-green {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dot-blue {
    background-color: #3b82f6;
    box-shadow: 0 0 8px #3b82f6;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 1; }
}

/* Panel Defaults */
.panel {
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    background-color: var(--panel-bg);
}

.glassmorphism {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.panel h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

.header-icon {
    font-size: 18px;
    color: var(--accent-blue);
}

/* Main Grid Layout */
.app-main {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: stretch;
}

.panel-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Control Elements */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 12px;
}

.control-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select, input[type="text"], input[type="number"] {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

select:focus, input[type="text"]:focus, input[type="number"]:focus {
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hide HTML5 spin buttons for clean modern appearance */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

/* Sidebar Console Terminal */
.sidebar-console {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    margin-top: 10px;
    overflow: hidden;
    min-height: 180px;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--panel-border);
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.console-header button {
    background: none;
    border: none;
    color: var(--text-hint);
    cursor: pointer;
    transition: color 0.2s ease;
}

.console-header button:hover {
    color: var(--text-primary);
}

.console-body {
    flex-grow: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.5;
    color: #38bdf8;
    padding: 12px;
    overflow-y: auto;
    word-break: break-all;
    user-select: text;
    max-height: 250px;
}

/* Tabs Navigation Styling */
.tabs-nav {
    display: flex;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--panel-border);
}

.tab-btn {
    flex-grow: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 18px 24px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Tab Panels styling */
.tabs-content {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 600px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 26px;
    font-weight: 300;
}

/* Grid parameters inside tabs */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel-divider {
    border: 0;
    height: 1px;
    background: var(--panel-border);
    margin: 26px 0;
}

/* Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 13px;
    background-color: rgba(79, 172, 254, 0.1);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.slider-hint {
    font-size: 11px;
    color: var(--text-hint);
    font-weight: 300;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Custom Switches/Checkboxes Grid for generators */
.generators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.generator-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.generator-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

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

.generator-info span {
    font-size: 14px;
    font-weight: 500;
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    pointer-events: none; /* Let parent card catch the click */
}

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

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

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

input:checked + .slider-switch {
    background-color: #3b82f6;
}

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

.generators-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

/* Structure Overrides Styling */
.structure-presets-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.row-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-info {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.2);
}

.btn-info:hover {
    background: rgba(56, 189, 248, 0.1);
}

.btn-warning {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

.btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.add-section-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto auto;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.compact-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-add {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 10px;
    height: 40px;
}

.btn-add:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-reset {
    height: 40px;
}

.overrides-status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: #60a5fa;
    margin-bottom: 20px;
}

.overrides-status-banner.customized {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Sections overrides list (no longer scrollable individually) */
.sections-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.section-override-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    padding: 8px 16px;
    border-radius: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-hint);
    font-weight: 500;
}

.section-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 30px;
    border: 1px solid transparent;
}

/* Colors for specific badges */
.badge-intro { background-color: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.badge-verse { background-color: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.badge-pre_chorus { background-color: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.3); color: #a78bfa; }
.badge-chorus { background-color: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.3); color: #f472b6; }
.badge-post_chorus { background-color: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.3); color: #fb7185; }
.badge-breakdown { background-color: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.badge-middle_8 { background-color: rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.3); color: #22d3ee; }
.badge-outro { background-color: rgba(100, 116, 139, 0.15); border-color: rgba(100, 116, 139, 0.3); color: #94a3b8; }

.section-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bars-input {
    width: 65px;
    padding: 5px 8px;
    font-size: 13px;
    text-align: center;
    border-radius: 6px;
}

.order-actions {
    display: flex;
    gap: 4px;
}

.btn-icon-only {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

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

.btn-icon-only.btn-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Footer & Output Options Layout */
.panel-footer {
    padding: 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: center;
}

.footer-options {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 20px;
    align-items: center;
}

.toggle-control-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-control-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.toggle-control-checkbox label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.footer-actions {
    display: flex;
    justify-content: flex-end;
}

/* Generate Button Call to Action */
.btn-action {
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-generate {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
    box-shadow: 0 0 25px rgba(225, 0, 255, 0.2);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(225, 0, 255, 0.45), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-generate:disabled {
    background: #1e1b29;
    color: var(--text-hint);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
}

/* Results Section styling */
.result-card {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 16px 20px;
    border-radius: 12px;
    animation: slideUp 0.4s ease-out;
}

.result-card.hidden {
    display: none !important;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.success-icon {
    font-size: 28px;
    color: #10b981;
}

.result-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #34d399;
}

.result-info p {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    margin-top: 2px;
}

.result-downloads {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download {
    background: var(--accent-gradient);
    color: white;
    border: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
}

.btn-download:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-download-section {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

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

/* Loading Overlay Card */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-card {
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--panel-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 242, 254, 0.1);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

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

.loading-card h2 {
    font-size: 20px;
    font-weight: 600;
}

.loading-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

.loading-bar-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.loading-bar {
    width: 10%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.loading-details {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-hint);
    background-color: rgba(0, 0, 0, 0.25);
    padding: 6px 12px;
    border-radius: 6px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compact layout for inputs on structure panel */
.compact-row {
    margin-top: 10px;
}

/* App Page Footer styling */
.app-page-footer {
    text-align: center;
    padding: 10px 0 20px 0;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.app-page-footer a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.app-page-footer a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}

