@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #343633;
    --bg-surface: #2d2d2d;
    --bg-surface-elevated: #3b3d3a;
    --bg-glass: rgba(45, 45, 45, 0.88);
    
    --border-color: rgba(237, 225, 209, 0.12);
    --border-color-hover: rgba(237, 225, 209, 0.25);
    --border-active: #67755b;

    --primary: #67755b;
    --primary-hover: #4e5945;
    --primary-glow: rgba(103, 117, 91, 0.35);

    --accent: #b4b897;
    --accent-light: #ede1d1;
    --success: #67755b;
    --warning: #d97706;
    --danger: #ef4444;

    --text-main: #ede1d1;
    --text-muted: #b4b897;
    --text-dim: rgba(237, 225, 209, 0.5);

    --font-heading: 'Plus Jakarta Sans', 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --header-height: 64px;
    --console-height-collapsed: 36px;
    --console-height-expanded: 200px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;

    --shadow-subtle: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Header */
.app-header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-info h1 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-engine {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-ready {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-compiling {
    background: rgba(245, 158, 11, 0.15);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: #e2e8f0;
}

.btn-logout-icon {
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout-icon:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

.template-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.form-select {
    background-color: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px 8px 36px;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:hover {
    border-color: var(--border-color-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    margin-left: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #67755b 0%, #4e5945 100%);
    color: #ede1d1;
    box-shadow: 0 4px 12px rgba(103, 117, 91, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(103, 117, 91, 0.45);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-icon {
    padding: 8px 12px;
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-icon:hover:not(:disabled) {
    color: var(--text-main);
    border-color: var(--border-color-hover);
}

.btn:disabled, .btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
}

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

.workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    background-color: #343633;
    background-image: linear-gradient(180deg, rgba(52, 54, 51, 0.85) 0%, rgba(45, 45, 45, 0.95) 100%), url('/static/images/mango_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(45, 45, 45, 0.75);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

.pane-viewer {
    border-right: none;
    background: #232422;
}

.pane-header {
    height: 44px;
    padding: 0 16px;
    background: rgba(39, 40, 38, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pane-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pane-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.render-time {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    width: 32px;
    height: 18px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.toggle-switch input:checked + .slider::before {
    transform: translateX(14px);
    background: white;
}

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

/* Editor Container */
.editor-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

#latex-editor {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
}

/* Viewer Container */
.viewer-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0e17;
}

.viewer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.placeholder-content {
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 4px;
}

.placeholder-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.placeholder-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #525659;
}

.pdf-canvas-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 18px 80px 18px;
    background: #0b0f19;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.pdf-page-canvas,
#pdf-render-canvas {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    background: white;
    margin: 0 auto;
    display: block;
}

.hidden {
    display: none !important;
}

/* Mode Tabs */
.mode-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface-elevated);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mode-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-tab:hover {
    color: var(--text-main);
}

.mode-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Form Container & Controls */
.form-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
}

.form-section {
    background: rgba(45, 45, 45, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(237, 225, 209, 0.15);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    scroll-margin-top: 68px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.section-title i {
    color: var(--primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.span-2 {
    grid-column: 1 / -1 !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(237, 225, 209, 0.15);
    border-radius: var(--radius-md);
    padding: 9px 13px;
    font-size: 0.88rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 117, 91, 0.25);
    background-color: rgba(255, 255, 255, 0.07);
}

textarea.form-control {
    resize: vertical;
    min-height: 42px;
    line-height: 1.5;
}

/* Sticky Section Nav Pills for Form */
.form-nav-pills {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    background: rgba(39, 40, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px;
    margin: 0 -16px 4px -16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(237, 225, 209, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.form-nav-pills::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #b4b897;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(237, 225, 209, 0.12);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill i {
    font-size: 0.85rem;
    color: #8b927a;
    transition: color 0.2s ease;
}

.nav-pill:hover {
    color: #ede1d1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(237, 225, 209, 0.25);
}

.nav-pill:hover i {
    color: #b4b897;
}

.nav-pill.active {
    background: linear-gradient(135deg, #67755b 0%, #4e5945 100%);
    color: #ede1d1;
    border-color: rgba(180, 184, 151, 0.4);
    box-shadow: 0 4px 12px rgba(103, 117, 91, 0.35);
}

.nav-pill.active i {
    color: #ede1d1;
}

.pill-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Input Icon Wrappers */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    font-size: 0.88rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-icon-wrapper .form-control {
    padding-left: 36px !important;
}

.input-icon-wrapper:focus-within .input-icon {
    color: var(--primary);
}

/* Card Collapsibility & Modern Form Cards */
.card-item {
    background: #272826;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-item:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.card-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding-bottom: 2px;
}

.card-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: hidden;
}

.card-drag-handle {
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: grab;
}

.card-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-item-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 6px;
    font-weight: 400;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-card {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-card:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

.card-item.collapsed .card-item-body {
    display: none !important;
}

.card-item.collapsed .btn-toggle-card i {
    transform: rotate(180deg);
}

.bullet-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.bullet-input-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bullet-prefix {
    color: var(--primary);
    font-weight: 700;
    margin-top: 8px;
    font-size: 1.1rem;
}

textarea.bullet-input,
.bullet-input-group .form-control {
    flex: 1;
    resize: none;
    overflow-y: hidden;
    min-height: 42px;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    padding: 8px 12px;
}

.btn-accent {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-icon-danger {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: white;
}

/* Mobile Quick Preview Floating Action Button */
.mobile-fab-btn {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 18px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-sans);
    box-shadow: 0 8px 24px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-fab-btn:active {
    transform: scale(0.95);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 48px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid var(--primary);
    font-size: 0.88rem;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-only-tab {
    display: none;
}

.mobile-nav-bar {
    display: none;
}

/* Responsive Media Queries for Mobile & Touch Devices */
@media (max-width: 768px) {
    :root {
        --header-height: 54px;
    }

    body {
        overflow: hidden;
    }

    .mobile-only-tab {
        display: flex;
    }

    .app-header {
        padding: 0 10px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .brand-info h1 {
        font-size: 0.95rem;
    }

    .badge-engine {
        display: none;
    }

    .header-actions .btn span,
    .header-actions .btn kbd {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        padding: 8px 10px;
    }

    /* Workspace Mobile Layout */
    .workspace {
        flex-direction: column;
        padding-bottom: 56px;
    }

    .pane {
        width: 100% !important;
        height: 100% !important;
        border-right: none;
    }

    .pane-viewer.mobile-hidden,
    .pane-editor.mobile-hidden {
        display: none !important;
    }

    .pane-viewer {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 54px - 56px) !important;
        overflow: hidden;
    }

    .viewer-container {
        flex: 1;
        overflow: hidden;
    }

    .pdf-canvas-container {
        padding: 16px 18px 80px 18px;
    }

    .pane-editor .pane-header {
        display: none;
    }

    .pane-header {
        padding: 0 10px;
        height: 38px;
    }

    .header-actions .toggle-switch {
        padding: 4px 6px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .toggle-label {
        display: none;
    }

    /* Form Mobile Ergonomics */
    .form-container {
        padding: 12px;
        gap: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .form-section {
        padding: 12px;
        gap: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .span-2 {
        grid-column: span 1 !important;
    }

    /* Set font size to 16px to prevent iOS Safari auto-zoom */
    .form-control, 
    input[type="text"], 
    input[type="email"], 
    textarea,
    select {
        font-size: 16px !important;
        padding: 10px 12px;
        min-height: 44px;
    }

    .card-item {
        padding: 10px;
        gap: 10px;
    }

    .bullet-input-group {
        gap: 6px;
    }

    .bullet-input-group .form-control {
        font-size: 15px !important;
    }

    /* Mobile Bottom Navigation Bar */
    .app-console {
        display: none;
    }

    .mobile-nav-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 9999;
        align-items: center;
        justify-content: space-around;
        padding: 0 6px;
    }

    .mobile-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        height: 100%;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 600;
        cursor: pointer;
        pointer-events: auto;
        transition: all 0.2s ease;
    }

    .mobile-nav-btn i {
        font-size: 1.1rem;
    }

    .mobile-nav-btn.active {
        color: var(--primary);
    }

    .mobile-nav-btn.primary {
        color: #38bdf8;
    }

    .mobile-nav-btn.primary i {
        color: #38bdf8;
    }

    /* Toast Container spacing for mobile nav */
    .toast-container {
        bottom: 68px;
        right: 12px;
        left: 12px;
    }

    .toast {
        width: 100%;
    }

    .mobile-fab-btn {
        display: flex !important;
    }
}

