/* Modern Premium CSS Reset & Variable Tokens */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #09070f;
    --bg-card: rgba(22, 17, 36, 0.65);
    --bg-card-hover: rgba(35, 27, 56, 0.85);
    --border-color: rgba(157, 78, 221, 0.2);
    --border-color-glow: rgba(0, 245, 212, 0.5);
    
    /* Neon gradients */
    --primary: #9d4edd;
    --primary-glow: #c77dff;
    --accent: #00f5d4;
    --accent-glow: #80ffdb;
    
    /* Text colors */
    --text-main: #f7f4f9;
    --text-muted: #bfaed4;
    --text-dark: #120e24;
    
    /* Fonts */
    --font-primary: 'Inter', 'Prompt', -apple-system, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Glowing Elements */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    opacity: 0.18;
    pointer-events: none;
}

.bg-purple {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-cyan {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(18, 14, 30, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 78, 221, 0.6);
}

/* App Container Layout */
.app-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

/* App Header */
.app-header {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: pulse 3s infinite ease-in-out;
}

.app-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Main Dashboard Layout */
.app-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr;
    }
}

/* Glassmorphism Panels */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass:hover {
    border-color: rgba(157, 78, 221, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(157, 78, 221, 0.05);
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-main);
}

/* Divider Line */
.separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 1.5rem 0;
}

/* File Upload & Dropzone styling */
.upload-container {
    margin-bottom: 1.2rem;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(18, 14, 30, 0.4);
    text-align: center;
    transition: var(--transition-smooth);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: rgba(0, 245, 212, 0.05);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.1);
}

.dropzone-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.dropzone:hover .dropzone-icon {
    transform: translateY(-4px);
}

.dropzone-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dropzone-text .highlight {
    color: var(--accent);
    font-weight: 600;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease-out;
}

.file-info.hidden {
    display: none;
}

.file-name {
    color: var(--accent-glow);
    font-weight: 500;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--text-muted);
}

/* Settings Inputs Styling */
.setting-group {
    margin-bottom: 1.5rem;
}

.setting-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

/* Select option wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "▼";
    font-size: 0.75rem;
    color: var(--text-muted);
    right: 15px;
    top: 13px;
    position: absolute;
    pointer-events: none;
}

select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(18, 14, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    appearance: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding: 10px;
}

/* Radio Card Selector (Orientation) */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.radio-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(18, 14, 30, 0.4);
    transition: var(--transition-smooth);
}

.radio-card:hover {
    border-color: rgba(157, 78, 221, 0.5);
    background: rgba(18, 14, 30, 0.7);
}

.radio-card.active {
    border-color: var(--primary);
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

.radio-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.radio-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

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

/* Segmented Buttons Control */
.segmented-control {
    display: flex;
    background: rgba(18, 14, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    width: 100%;
}

.segment-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.segment-btn:hover {
    color: var(--text-main);
}

.segment-btn.active {
    background: var(--primary);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.3);
}

/* Toggle Switch Control */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

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

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 14, 30, 0.8);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 24px;
}

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

input:checked + .slider {
    background-color: rgba(157, 78, 221, 0.2);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--primary-glow);
    box-shadow: 0 0 8px var(--primary);
}

/* Custom Buttons styling */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7b2cbf);
    color: #fff;
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.6), 0 0 15px rgba(157, 78, 221, 0.2);
}

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

.btn-primary.disabled, .btn-primary:disabled {
    background: rgba(35, 27, 56, 0.5);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: none !important;
}

.btn-secondary {
    background: rgba(157, 78, 221, 0.1);
    color: var(--primary-glow);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(157, 78, 221, 0.25);
    color: #fff;
    border-color: var(--primary-glow);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    background: rgba(18, 14, 30, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.btn-small:hover {
    background: rgba(157, 78, 221, 0.2);
    color: var(--text-main);
    border-color: var(--primary-glow);
}

/* Workspace Board Container (Right Panel) */
.workspace {
    display: flex;
    flex-direction: column;
    min-height: 720px;
    padding: 0 !important; /* Keep borders clean */
    overflow: hidden;
}

/* Tab Headers styling */
.tabs-header {
    display: flex;
    background: rgba(12, 9, 21, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1.2rem 1.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.tab-btn.active {
    color: var(--primary-glow);
    border-bottom-color: var(--primary);
    background: rgba(157, 78, 221, 0.05);
}

.tab-btn .badge {
    background: rgba(0, 245, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Tab Contents */
.tab-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.hidden {
    display: none;
}

/* Workspace Toolbar Actions */
.workspace-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Pages Visual Workspace Grid */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
    flex: 1;
    align-content: start;
}

/* Page Card Item */
.page-card {
    position: relative;
    background: rgba(18, 14, 30, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.page-card:hover {
    border-color: var(--primary-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Canvas container representing page preview */
.page-canvas-container {
    width: 100%;
    aspect-ratio: 1 / 1.414; /* A4 aspect ratio */
    background: #110e1c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-canvas-container canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Placeholder for demo page */
.demo-page-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15) 0%, rgba(0, 245, 212, 0.05) 100%);
    font-weight: 700;
    font-size: 1.8rem;
    border-radius: 6px;
    border: 1px dashed rgba(157, 78, 221, 0.3);
}

.demo-page-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.page-number-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(18, 14, 30, 0.9);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Checkbox Toggle indicator overlay on Page Card */
.page-card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: rgba(18, 14, 30, 0.85);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 0.65rem;
    transition: var(--transition-smooth);
}

/* Excluded State styling */
.page-card.excluded {
    opacity: 0.4;
    border-color: rgba(255, 255, 255, 0.05);
}

.page-card.excluded:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.page-card.excluded .page-card-overlay {
    color: #ef476f;
    content: "❌";
    border-color: rgba(239, 71, 111, 0.5);
    background: rgba(239, 71, 111, 0.1);
}

/* Blank page representation */
.page-card.blank-card {
    opacity: 0.75;
    border-style: dashed;
    border-color: rgba(157, 78, 221, 0.3);
}

.page-card.blank-card .demo-page-placeholder {
    background: transparent;
    color: rgba(255, 255, 255, 0.15);
}

/* Empty Workspace State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    animation: bounce 4s infinite ease-in-out;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 320px;
}

/* Tab 2 Imposition Banner & Summary */
.layout-summary-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(18, 14, 30, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.banner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.banner-item:last-child {
    border-right: none;
}

.banner-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.banner-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Split Workspace layout for Tab 2 */
.sheets-workspace {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    flex: 1;
}

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

/* Printable Sheets Layout Grid */
.sheets-list-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.sheets-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Printable Sheet representation */
.sheet-container {
    background: rgba(18, 14, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sheet-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-glow);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
}

.sheet-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sheet-side-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

.sheet-paper-face {
    background: #110e1c;
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Vertical Left-Right booklet style layout */
.sheet-paper-face.style-portrait {
    aspect-ratio: 1.414 / 1; /* Landscape sheet */
    flex-direction: row;
}

.sheet-paper-face.style-landscape {
    aspect-ratio: 1 / 1.414; /* Portrait sheet */
    flex-direction: column;
}

.sheet-face-half {
    flex: 1;
    position: relative;
    border-right: 1px dashed rgba(157, 78, 221, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sheet-face-half:last-child {
    border-right: none;
}

.style-landscape .sheet-face-half {
    border-right: none;
    border-bottom: 1px dashed rgba(157, 78, 221, 0.15);
}

.style-landscape .sheet-face-half:last-child {
    border-bottom: none;
}

.sheet-face-half canvas, .sheet-face-half .demo-face-half {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.demo-face-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(0, 245, 212, 0.02) 100%);
    font-weight: 700;
    font-size: 1.4rem;
    height: 120px;
}

.demo-face-half.is-blank {
    color: rgba(255, 255, 255, 0.15);
    background: transparent;
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
}

.sheet-face-tag {
    position: absolute;
    bottom: 6px;
    background: rgba(18, 14, 30, 0.85);
    border: 1px solid var(--border-color);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

.sheet-face-tag.tag-left { left: 6px; }
.sheet-face-tag.tag-right { right: 6px; }
.sheet-face-tag.tag-top { top: 6px; left: 6px; }
.sheet-face-tag.tag-bottom { bottom: 6px; left: 6px; }

/* Folding Simulator Section */
.folding-simulator-panel {
    background: rgba(12, 9, 21, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-simulator-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin: 1.5rem 0;
}

.book-simulator {
    width: 260px;
    height: 180px;
    display: flex;
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.spine-line {
    width: 3px;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(255,255,255,0.1), rgba(0,0,0,0.7));
    height: 100%;
    z-index: 10;
}

.paper-page {
    flex: 1;
    background: #110e1c;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.page-left {
    border-radius: 4px 0 0 4px;
    transform-origin: right center;
    border-right: none;
}

.page-right {
    border-radius: 0 4px 4px 0;
    transform-origin: left center;
    border-left: none;
}

.sim-page-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), transparent);
}

.page-left .sim-page-content {
    align-items: flex-start;
}

.page-right .sim-page-content {
    align-items: flex-end;
}

.page-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

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

.simulator-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1rem;
}

.simulator-page-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.simulator-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
}

/* Status Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(18, 14, 30, 0.95);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 245, 212, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.hidden {
    display: none;
}

.toast-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 245, 212, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Animations declarations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px var(--primary)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--primary)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--primary)); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
