/* ==========================================================================
   ZeusCorp Cloud - Letterhead Studio Web Application Stylesheet (studio.css)
   SaaS Studio Workspace, Collapsible Inspector, Zoom Viewport & Presentation Mode
   ========================================================================== */

:root {
  --studio-bg: #090c10;
  --studio-surface: #10151f;
  --studio-surface-hover: #171d2b;
  --studio-surface-active: #1e2638;
  --studio-border: #1c2333;
  --studio-border-focus: #388bfd;
  --studio-text: #e6edf3;
  --studio-text-muted: #8b949e;
  --studio-text-dim: #6e7681;
  --studio-accent: #0066cc;
  --studio-accent-hover: #0052a3;
  --studio-radius: 6px;
  --sidebar-width: 340px;
  --navbar-height: 52px;
  --zoom-scale: 1;
}

/* Custom App Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: #252e3f;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38455e;
}

/* Base Body in App Mode */
body.app-mode {
  margin: 0;
  padding: 0;
  background-color: var(--studio-bg);
  color: var(--studio-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   1. Top Application Navigation Bar
   ========================================================================== */
.app-navbar {
  height: var(--navbar-height);
  background: #0d1117;
  border-bottom: 1px solid var(--studio-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 0 12px;
  z-index: 100;
  flex-shrink: 0;
  user-select: none;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid var(--studio-border);
  color: var(--studio-text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--studio-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sidebar-toggle-btn:hover {
  background: var(--studio-surface-hover);
  color: #fff;
  border-color: #2f3a4f;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.app-brand-logo {
  width: 22px;
  height: 22px;
  color: var(--studio-accent);
  flex-shrink: 0;
}
.app-brand-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f0f6fc;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.app-brand-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 102, 204, 0.18);
  color: #58a6ff;
  border: 1px solid rgba(0, 102, 204, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.app-brand-subtitle {
  font-size: 10px;
  color: var(--studio-text-muted);
  display: none;
}
@media (min-width: 1200px) {
  .app-brand-subtitle {
    display: inline;
  }
}

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

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Preset Selector in Navbar */
.preset-select-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  padding: 2px 6px;
  border-radius: var(--studio-radius);
}
.preset-select-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--studio-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-select {
  background: transparent;
  color: var(--studio-text);
  border: none;
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  padding: 3px 4px;
}
.app-select option {
  background: #161b24;
  color: #f0f6fc;
}

/* Navbar Buttons */
.nav-btn {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--studio-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.nav-btn:hover {
  background: var(--studio-surface-hover);
  border-color: #303b50;
  color: #fff;
}
.nav-btn.active {
  background: rgba(0, 102, 204, 0.2);
  border-color: #0066cc;
  color: #58a6ff;
  font-weight: 600;
}
.nav-btn-primary {
  background: #0066cc;
  border-color: #0066cc;
  color: #ffffff;
  font-weight: 600;
}
.nav-btn-primary:hover {
  background: #0052a3;
  border-color: #0052a3;
  color: #ffffff;
}

/* ==========================================================================
   2. Main Workspace Layout (Sidebar + Canvas)
   ========================================================================== */
.app-main {
  display: flex;
  flex-grow: 1;
  height: calc(100vh - var(--navbar-height));
  position: relative;
  overflow: hidden;
}

/* Collapsible Sidebar Dock */
.studio-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  background: #0c1017;
  border-right: 1px solid var(--studio-border);
  overflow-y: auto;
  overflow-x: hidden;
  transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  z-index: 50;
  flex-shrink: 0;
}

.sidebar-collapsed .studio-sidebar {
  margin-left: calc(-1 * var(--sidebar-width));
}

/* Sidebar Section Headers */
.sidebar-section {
  padding: 14px 16px;
  border-bottom: 1px solid #161c27;
}
.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-badge {
  font-size: 9.5px;
  font-weight: 600;
  background: #1b2333;
  color: #79c0ff;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Layout Grid Cards */
.layout-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.layout-card-btn {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  border-radius: 5px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--studio-text);
  font-family: inherit;
}
.layout-card-btn:hover {
  background: var(--studio-surface-hover);
  border-color: #313c52;
}
.layout-card-btn.active {
  background: rgba(0, 102, 204, 0.15);
  border-color: var(--color-primary, #0066cc);
  box-shadow: 0 0 0 1px var(--color-primary, #0066cc);
}
.layout-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #f0f6fc;
}
.layout-card-desc {
  font-size: 9.5px;
  color: var(--studio-text-muted);
  line-height: 1.25;
}

/* Paper Size Selector Controls */
.paper-pills-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.paper-pill-btn {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.paper-pill-btn:hover {
  background: var(--studio-surface-hover);
  border-color: #313c52;
}
.paper-pill-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}
.paper-dropdown-select {
  width: 100%;
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  color: #f0f6fc;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.paper-dropdown-select:hover, .paper-dropdown-select:focus {
  border-color: #3b82f6;
}

/* Swatches Grid */
.swatch-group-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--studio-text-muted);
  margin: 8px 0 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.swatches-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.swatch-item-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.swatch-item-btn:hover {
  transform: scale(1.25);
}
.swatch-item-btn.active {
  border-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}
.swatch-pill-auto {
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  color: var(--studio-text);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  height: 20px;
  display: inline-flex;
  align-items: center;
}
.swatch-pill-auto.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Custom Color Wheel Button */
.swatch-color-picker-box {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #4a5568;
  cursor: pointer;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.swatch-color-picker-box:hover {
  transform: scale(1.25);
}
.swatch-native-picker {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 30px;
  height: 30px;
  opacity: 0;
  cursor: pointer;
}

/* Range Slider */
.app-range-slider {
  width: 100%;
  accent-color: #0066cc;
  cursor: pointer;
  margin-top: 4px;
}

/* Form Fields for Content Inspector */
.form-field-group {
  margin-bottom: 9px;
}
.form-field-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--studio-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  display: block;
}
.form-field-input, .form-field-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--studio-surface);
  border: 1px solid var(--studio-border);
  color: #f0f6fc;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.form-field-input:focus, .form-field-textarea:focus {
  border-color: #3b82f6;
  background: #141a24;
}

/* Toggle Switch Group */
.toggle-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 11.5px;
  color: var(--studio-text);
}
.toggle-switch-desc {
  font-size: 9.5px;
  color: var(--studio-text-muted);
}
.switch-control {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}
.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #242c3d;
  transition: 0.2s;
  border-radius: 18px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
.switch-control input:checked + .switch-slider {
  background-color: #0066cc;
}
.switch-control input:checked + .switch-slider:before {
  transform: translateX(14px);
}

/* ==========================================================================
   3. Canvas Viewport & Zoom Container
   ========================================================================== */
.canvas-viewport {
  flex-grow: 1;
  height: 100%;
  background: #090c10;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.03) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  overflow: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 20px 80px 20px;
  box-sizing: border-box;
}

.zoom-container {
  transform: scale(var(--zoom-scale, 1));
  transform-origin: top center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  will-change: transform;
}

/* Floating Zoom Dock in Viewport Corner */
.zoom-dock {
  position: fixed;
  bottom: 20px;
  right: 24px;
  background: rgba(16, 21, 31, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--studio-border);
  border-radius: 20px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 60;
  user-select: none;
}
.zoom-dock-btn {
  background: transparent;
  border: none;
  color: var(--studio-text);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.zoom-dock-btn:hover {
  background: var(--studio-surface-hover);
  color: #fff;
}
.zoom-dock-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--studio-text-muted);
  min-width: 44px;
  text-align: center;
  font-family: monospace;
}
.zoom-dock-divider {
  width: 1px;
  height: 14px;
  background: var(--studio-border);
  margin: 0 2px;
}
.zoom-dock-action-btn {
  background: transparent;
  border: none;
  color: var(--studio-text-muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.zoom-dock-action-btn:hover {
  background: var(--studio-surface-hover);
  color: #fff;
}

/* ==========================================================================
   4. Client Presentation Mode
   ========================================================================== */
.presentation-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 21, 31, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--studio-border);
  border-radius: 24px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

body.in-presentation .app-navbar,
body.in-presentation .studio-sidebar,
body.in-presentation .zoom-dock {
  display: none !important;
}
body.in-presentation .canvas-viewport {
  height: 100vh !important;
  padding-top: 40px;
}
body.in-presentation .presentation-bar {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   5. Toast Notification
   ========================================================================== */
.studio-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #1f6feb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   6. Print Optimization Override
   ========================================================================== */
@media print {
  body.app-mode, .app-container, .app-main, .canvas-viewport {
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .app-navbar,
  .studio-sidebar,
  .zoom-dock,
  .presentation-bar,
  .studio-toast,
  .sidebar-toggle-btn {
    display: none !important;
  }

  .zoom-container {
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }
}

/* ==========================================================================
   7. Mobile & Tablet Responsive Architecture (Phones, Tablets & Small Laptops)
   ========================================================================== */

/* Mobile Elements Default Hidden on Desktop */
.mobile-bottom-bar,
.sidebar-mobile-header,
.sidebar-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .app-brand-subtitle {
    display: none !important;
  }
  .preset-select-label {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 48px;
    --sidebar-width: 88vw;
  }

  /* 1. Navbar adjustments on Mobile */
  .app-navbar {
    padding: 0 10px;
    height: var(--navbar-height);
  }
  .navbar-left {
    gap: 8px;
  }
  .app-brand {
    gap: 8px;
  }
  .app-brand-logo {
    width: 22px;
    height: 22px;
  }
  .app-brand-title {
    font-size: 13px;
    letter-spacing: -0.01em;
  }
  .app-brand-badge {
    font-size: 8px;
    padding: 1px 4px;
  }
  .sidebar-toggle-btn {
    width: 32px;
    height: 32px;
  }

  /* Hide overflowing desktop navbar clusters on mobile */
  .navbar-center {
    display: none !important;
  }
  .navbar-right #presentBtn,
  .navbar-right #shareBtn {
    display: none !important;
  }
  .navbar-right {
    gap: 6px;
  }
  .navbar-right .nav-btn {
    padding: 5px 8px;
    font-size: 11px;
    gap: 4px;
  }

  /* 2. Mobile Drawer Off-Canvas Sidebar */
  .studio-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    width: 86vw;
    max-width: 360px;
    min-width: 0;
    height: calc(100vh - var(--navbar-height));
    z-index: 300;
    background: #0d121c;
    border-right: 1px solid var(--studio-border);
    box-shadow: 14px 0 45px rgba(0, 0, 0, 0.8);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 0 !important;
    padding-bottom: 80px;
    box-sizing: border-box;
  }

  body:not(.sidebar-collapsed) .studio-sidebar {
    transform: translateX(0);
  }

  .sidebar-collapsed .studio-sidebar {
    transform: translateX(-100%);
  }

  /* Mobile Drawer Header */
  .sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--studio-border);
    background: #111824;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .sidebar-mobile-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--studio-text);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .sidebar-mobile-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--studio-border);
    color: var(--studio-text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
  }
  .sidebar-mobile-close:hover {
    background: var(--studio-surface-hover);
    color: #fff;
  }

  /* Backdrop */
  .sidebar-backdrop {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 290;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: block;
  }
  body:not(.sidebar-collapsed) .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* 3. Mobile Canvas Viewport & Scaling */
  .app-main {
    height: calc(100vh - var(--navbar-height));
  }
  .canvas-viewport {
    padding: 16px 8px 84px 8px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Floating Zoom Dock - Positioned neatly above bottom bar */
  .zoom-dock {
    bottom: 68px;
    right: 12px;
    padding: 3px 6px;
    border-radius: 16px;
    background: rgba(16, 21, 31, 0.92);
  }
  .zoom-dock-action-btn:nth-child(n+6) {
    display: none; /* Hide 100% button on small screens */
  }

  /* 4. Mobile Bottom Bar Dock */
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--studio-border);
    z-index: 150;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    user-select: none;
  }

  .mobile-bar-btn {
    background: transparent;
    border: none;
    color: var(--studio-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    flex: 1;
    max-width: 72px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-bar-btn:active {
    transform: scale(0.92);
  }
  .mobile-bar-icon {
    font-size: 15px;
    line-height: 1.1;
  }
  .mobile-bar-label {
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9.5px;
  }
  .mobile-bar-btn.active {
    color: #58a6ff;
  }
  .mobile-bar-btn-primary {
    color: #58a6ff;
    font-weight: 600;
  }

  /* 5. Touch Friendly Tap Targets in Sidebar */
  .form-field-input,
  .form-field-textarea {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    min-height: 38px;
    box-sizing: border-box;
  }
  .layout-cards-grid {
    gap: 6px;
  }
  .layout-card-btn {
    padding: 8px 9px;
  }
  .paper-pills-row {
    flex-wrap: wrap;
  }
  .paper-pill-btn {
    padding: 5px 9px;
    font-size: 11px;
  }

  /* Presentation Mode Mobile adjustment */
  .presentation-bar {
    width: 92vw;
    max-width: 360px;
    justify-content: space-around;
    padding: 6px 8px;
    bottom: 16px;
    border-radius: 18px;
  }
  .presentation-bar .nav-btn {
    font-size: 10.5px;
    padding: 4px 8px;
  }
  body.in-presentation .mobile-bottom-bar {
    display: none !important;
  }
}

@media print {
  .mobile-bottom-bar,
  .sidebar-backdrop,
  .sidebar-mobile-header {
    display: none !important;
  }
}
