/* Reset & Root Variables */
:root {
  --primary-teal: #0d9488;
  --primary-teal-dark: #0f766e;
  --dark-navy: #1e293b;
  --light-bg: #f8fafc;
  --border-color: #cbd5e1;
  --text-primary: #334155;
  --text-muted: #64748b;
  --success-green: #16a34a;
  --warning-amber: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* BETA TESTER FULL SCREEN LOCK OVERLAY */
.beta-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.beta-lock-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.beta-lock-icon {
  width: 72px;
  height: 72px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.beta-lock-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #ffffff;
}

.beta-lock-subtitle {
  font-size: 0.9rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 12px;
}

.beta-lock-notice {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Header Navbar */
.app-header {
  background-color: var(--dark-navy);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-teal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--primary-teal);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
}

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

.user-badge-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Shareable View Banner */
.shareable-banner {
  background-color: #0369a1;
  color: #ffffff;
  padding: 6px 16px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #0284c7;
}

/* Public Landing Container */
.public-landing-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.public-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.location-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.public-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 28px;
}

.hero-action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Showcase */
.services-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.section-heading {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.service-card.featured {
  border-color: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary-teal);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 10px;
}

.service-icon-svg {
  width: 48px;
  height: 48px;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--dark-navy);
  margin-bottom: 6px;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-teal);
  margin-bottom: 12px;
}

.service-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: normal;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  margin-bottom: 16px;
}

/* Subtle Footer & Staff Access Link */
.public-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subtle-footer-staff {
  margin-top: 4px;
}

.subtle-staff-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.75rem;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.subtle-staff-link:hover {
  opacity: 1;
  color: #94a3b8;
  text-decoration: underline;
}

/* Main App Workarea Container */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Sidebar (Editor Form) */
.editor-sidebar {
  width: 450px;
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 12px 16px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  font-size: 0.95rem;
  color: var(--dark-navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Form Styling */
.form-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-teal-dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.form-group input,
.form-group select {
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

/* Quick Fill Card */
.quick-fill-card {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 10px;
}

.quick-fill-card h4 {
  font-size: 0.8rem;
  color: #15803d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Lesson Items Log Editor */
.lessons-editor-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lesson-row-item {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr auto;
  gap: 4px;
  align-items: center;
  background: #f8fafc;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.lesson-row-item input {
  padding: 4px;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

/* Right Main Workarea (Preview) */
.preview-container {
  flex: 1;
  background-color: #525659;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.preview-toolbar {
  width: 210mm;
  background: #323639;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px 4px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* A4 Printable Page Container */
.a4-page {
  width: 210mm;
  height: 297mm;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 15mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.35;
  color: #222222;
  position: relative;
}

/* Document Header Banner */
.doc-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px double #0d9488;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.doc-business-name {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.doc-tagline {
  font-size: 11px;
  color: #0d9488;
  font-weight: 600;
}

.doc-invoice-title-block {
  text-align: right;
}

.doc-title {
  font-size: 18px;
  font-weight: 900;
  color: #0d9488;
  letter-spacing: 1px;
}

.doc-meta-table {
  margin-top: 4px;
  font-size: 11px;
}

.doc-meta-table td.label {
  font-weight: bold;
  color: #555555;
  padding-right: 6px;
  text-align: right;
}

.doc-meta-table td.value {
  font-weight: bold;
  color: #111111;
}

/* Contact Details Bar */
.doc-contact-bar {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  font-size: 10.5px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Grid Box Details */
.doc-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.doc-info-box {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.doc-box-title {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: bold;
  font-size: 10.5px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.doc-box-body {
  padding: 6px 8px;
  font-size: 11px;
}

.highlight-student-name {
  font-size: 13px;
  font-weight: bold;
  color: #0d9488;
}

/* Table Styling */
.doc-table-section {
  margin-bottom: 10px;
}

.doc-table-title {
  font-size: 11px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.doc-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 5px 6px;
  font-weight: bold;
  text-align: left;
}

.doc-table th.center, .doc-table td.center {
  text-align: center;
}

.doc-table td {
  border: 1px solid #e2e8f0;
  padding: 4px 6px;
}

.doc-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Summary Wrapper */
.doc-summary-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  align-items: flex-start;
}

.doc-payment-notes {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 10.5px;
}

.doc-payment-notes h5 {
  font-size: 11px;
  color: #1e293b;
  margin-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
}

.totals-and-stamp-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.doc-totals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.doc-totals-table td {
  padding: 2px 4px;
}

.doc-totals-table td.label {
  text-align: right;
  font-weight: bold;
  color: #555555;
}

.doc-totals-table td.value {
  text-align: right;
  font-weight: bold;
  width: 80px;
}

.doc-totals-table tr.total-row td {
  border-top: 1px solid #1e293b;
  border-bottom: 2px solid #1e293b;
  font-size: 13px;
  color: #0d9488;
  padding: 4px 0;
}

/* Authentic Dynamic Rubber Stamp Styling */
.paid-stamp {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 900;
  padding: 3px 12px;
  text-transform: uppercase;
  border-radius: 6px;
  transform: rotate(-7deg);
  letter-spacing: 1.5px;
  display: inline-block;
  transition: all 0.2s ease;
}

.paid-stamp.stamp-paid {
  border: 3px solid #16a34a;
  color: #15803d;
  background-color: rgba(220, 252, 231, 0.6);
  box-shadow: 0 0 2px rgba(22, 163, 74, 0.4);
}

.paid-stamp.stamp-unpaid {
  border: 3px solid #dc2626;
  color: #dc2626;
  background-color: rgba(254, 226, 226, 0.6);
  box-shadow: 0 0 2px rgba(220, 38, 38, 0.4);
}

/* Footer Section */
.doc-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.doc-signature-block {
  width: 220px;
}

.signature-line {
  border-bottom: 1px solid #1e293b;
  height: 24px;
  font-style: italic;
  display: flex;
  align-items: flex-end;
  font-size: 11px;
  color: #0f766e;
}

.signature-caption {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

.doc-footer-legal {
  font-size: 9px;
  color: #94a3b8;
  text-align: right;
}

/* Buttons */
.btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-teal);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-teal-dark);
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--dark-navy);
}

.btn-secondary:hover:not(:disabled) {
  background-color: #cbd5e1;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background-color: #dc2626;
}

.btn-success {
  background-color: var(--success-green);
  color: #ffffff;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

/* Smooth Drag-to-Verify Slide Bar (Frictionless Anti-Spam) */
.slider-captcha-container {
  position: relative;
  width: 100%;
  height: 44px;
  background-color: #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.slider-captcha-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0d9488 0%, #16a34a 100%);
  border-radius: 22px;
}

.slider-captcha-label {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  pointer-events: none;
  letter-spacing: 0.5px;
  z-index: 2;
  transition: color 0.2s ease;
}

.slider-captcha-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: #0d9488;
  font-weight: bold;
  font-size: 1.1rem;
  z-index: 3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.slider-captcha-container.verified {
  border-color: #16a34a;
  background-color: #dcfce7;
}

.slider-captcha-container.verified .slider-captcha-track {
  width: 100% !important;
}

.slider-captcha-container.verified .slider-captcha-thumb {
  background: #16a34a;
  color: #ffffff;
  cursor: default;
  left: calc(100% - 42px) !important;
}

.slider-captcha-container.verified .slider-captcha-label {
  color: #ffffff;
  font-weight: 800;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-card.wide {
  max-width: 750px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.modal-header h3 {
  font-size: 1rem;
  color: var(--dark-navy);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #94a3b8;
}

.modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.tab-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #64748b;
}

.tab-btn.active {
  border-bottom-color: var(--primary-teal);
  color: var(--primary-teal);
  font-weight: bold;
}

.modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: #94a3b8;
  font-size: 0.75rem;
}

.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.modal-divider span {
  padding: 0 8px;
}

.auth-error-text {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 6px;
}

/* Payment Metrics Bar */
.metrics-summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 2px;
}

.text-success { color: var(--success-green); }
.text-warning { color: var(--warning-amber); }
.text-info { color: #0284c7; }

/* Saved Invoices List */
.saved-invoices-list {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-invoice-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.saved-invoice-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-no {
  font-weight: bold;
  color: var(--dark-navy);
  font-size: 0.85rem;
}

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

.badge-status {
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-paid {
  background: #dcfce7;
  color: #15803d;
}

.badge-unpaid {
  background: #fef3c7;
  color: #b45309;
}

.badge-waiver-signed {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.saved-invoice-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Touch Signature Pad Canvas */
.signature-pad-wrapper {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

.signature-pad-wrapper label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

#signature-pad-canvas {
  width: 100%;
  height: 120px;
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  background-color: #f8fafc;
  touch-action: none;
  cursor: crosshair;
}

.waiver-terms-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.4;
}

.waiver-terms-box h4 {
  font-size: 0.8rem;
  color: var(--dark-navy);
  margin-bottom: 4px;
}

/* iPhone Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 60px;
  background: var(--dark-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}

.mnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 6px 0;
  cursor: pointer;
}

.mnav-item.active {
  color: var(--primary-teal);
}

.mnav-label {
  font-size: 0.65rem;
  margin-top: 2px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .editor-sidebar {
    width: 100%;
    height: 50vh;
  }
  .preview-container {
    height: 50vh;
    padding: 10px;
  }
  .preview-toolbar, .a4-page {
    width: 100%;
  }
}

@media print {
  body {
    background: #ffffff;
    overflow: visible;
  }
  .app-header, .editor-sidebar, .preview-toolbar, .shareable-banner, .mobile-bottom-nav, .beta-lock-overlay {
    display: none !important;
  }
  .preview-container {
    background: #ffffff;
    padding: 0;
    overflow: visible;
  }
  .a4-page {
    box-shadow: none;
    padding: 0;
    width: 100%;
    height: 100%;
  }
}
