/* ═══════════════════════════════════════════════════════════════════════════
   EDUCAPLAY - DASHBOARD TEMPLATE
   CSS Principal - Responsivo para Desktop, Tablet e Mobile
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --primary-dark: #0d1b3e;
  --primary-blue: #1a2a6c;
  --primary-royal: #2255cc;
  --accent-orange: #FF6B00;
  --accent-orange-light: #FFB800;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border-light: #e0e0e0;
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────
   RESET E TIPOGRAFIA
   ───────────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

a {
  color: var(--primary-royal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-orange);
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT PRINCIPAL - SIDEBAR + MAIN
   ───────────────────────────────────────────────────────────────────────── */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  color: white;
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.sidebar-logo img {
  width: 40px;
  height: 40px;
}

.sidebar-logo span {
  background: linear-gradient(90deg, white 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu-item {
  margin-bottom: 0.5rem;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.sidebar-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Ativo: fundo laranja sólido + texto branco (contraste WCAG frente ao “laranja claro + branco”) */
.sidebar-menu-link.active {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-weight: 700;
  border-left-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sidebar-menu-link.active svg,
.sidebar-menu-link:hover svg {
  stroke: currentColor;
}

.sidebar-menu-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.main-container {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  background-color: var(--bg-white);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-search {
  flex: 1;
  max-width: 400px;
  margin: 0 2rem;
}

.topbar-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 25px;
  background-color: var(--bg-light);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.topbar-search input:focus {
  outline: none;
  border-color: var(--accent-orange);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text-dark);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--accent-orange);
  color: #c2410c;
  background: var(--bg-white);
}

.topbar-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.topbar-back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  white-space: nowrap;
}

.topbar-back-link:hover {
  border-color: var(--accent-orange);
  color: #c2410c;
  background: var(--bg-white);
}

.topbar-logout-form {
  margin: 0;
  display: inline-block;
}

.topbar-logout-btn {
  margin: 0;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #dc2626;
  background: var(--bg-white);
  color: #991b1b;
}

.topbar-logout-btn:hover {
  background: #fef2f2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-gray);
  font-size: 1.25rem;
  transition: color 0.3s ease;
  position: relative;
}

.topbar-icon-btn:hover {
  color: var(--accent-orange);
}

.topbar-icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.topbar-user:hover {
  background-color: var(--bg-light);
}

.topbar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.topbar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-user-name {
  font-weight: 600;
  color: var(--text-dark);
}

.topbar-user-role {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* layout.php usa só <span> dentro de .topbar-user */
.topbar-user > span {
  font-weight: 600;
  color: var(--text-dark);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-logout-form {
  margin: 0.85rem 0 0;
  width: 100%;
}

.sidebar-logout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.sidebar-logout-btn .menu-icon,
.sidebar-logout-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Pílulas do painel do aluno — “Pendente” legível (texto escuro, não branco em azul claro) */
.aluno-dashboard-inner .aluno-status-pill--pendente {
  background: #dbeafe;
  color: #0f172a;
  border: 1px solid #1d4ed8;
}

.aluno-dashboard-inner .aluno-status-pill--em_andamento {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #d97706;
}

.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   WELCOME BANNER
   ───────────────────────────────────────────────────────────────────────── */

.welcome-banner {
  background: linear-gradient(135deg, var(--primary-royal) 0%, var(--primary-blue) 100%);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  color: white;
}

.welcome-banner-icon {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.welcome-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-banner-content h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.welcome-banner-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   SEÇÕES E CARDS
   ───────────────────────────────────────────────────────────────────────── */

.section {
  margin-bottom: 2rem;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.section-link {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.section-link:hover {
  color: var(--accent-orange-light);
}

/* Cards grid (temas) — mobile first */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-royal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-orange);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  flex: 1;
}

.card-progress {
  margin-bottom: 1rem;
}

.card-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.card-progress-bar {
  width: 100%;
  min-width: 0;
  height: 8px;
  background-color: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

/* Rotina do dia: evita sumir em viewports muito estreitas */
.aluno-rotina-progress-wrap {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 380px) {
  .aluno-rotina-progress-wrap .card-progress-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

.card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.card-footer {
  display: flex;
  gap: 0.75rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-orange-light);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--border-light);
}

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

.btn-outline:hover {
  background: rgba(13, 27, 62, 0.06);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg,
.btn-large {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Texto secundário — evitar cinza demasiado claro sobre branco */
.text-muted {
  color: var(--text-gray) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   ESTATÍSTICAS
   ───────────────────────────────────────────────────────────────────────── */

/* Stats grid — mobile first */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE - TABLET
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
    padding: 1.5rem 1rem;
  }

  .main-container {
    margin-left: 240px;
  }

  .content {
    padding: 1.5rem;
  }

  .topbar-search {
    max-width: 300px;
    margin: 0 1rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-banner {
    flex-direction: column;
    text-align: center;
  }

  .welcome-banner-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .welcome-banner {
    flex-direction: column;
    text-align: center;
  }

  .welcome-banner-icon {
    margin-bottom: 0.75rem;
  }

  .welcome-banner-icon img {
    width: 80px;
    height: 80px;
  }

  .aluno-welcome-actions {
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE - MOBILE
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    box-shadow: var(--shadow-sm);
  }

  .sidebar-logo {
    margin-bottom: 0;
  }

  .sidebar-menu {
    display: none;
  }

  .sidebar.active .sidebar-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
  }

  .main-container {
    margin-left: 0;
  }

  .topbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .topbar-search {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .content {
    padding: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }

  .welcome-banner {
    padding: 1.5rem;
    gap: 1rem;
  }

  .welcome-banner-icon {
    width: 80px;
    height: 80px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   SCROLLBAR CUSTOMIZADO
   ───────────────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange-light);
}

/* ─────────────────────────────────────────────────────────────────────────
   UTILITÁRIOS
   ───────────────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ── Aliases de compatibilidade com design anterior ── */
/* --primary-dark / --primary-blue / --primary-royal já estão definidos no :root inicial acima */
:root {
  --primary:        var(--primary-royal);
  --success-light:  #D1FAE5;
  --warning-light:  #FEF3C7;
  --danger-light:   #FEE2E2;
  --info:           var(--primary-royal);
  --info-light:     #DBEAFE;
  --gray-50:        var(--bg-light);
  --gray-100:       #F3F4F6;
  --gray-200:       var(--border-light);
  --gray-300:       #D1D5DB;
  --gray-400:       #9CA3AF;
  --gray-500:       var(--text-light);
  --gray-600:       var(--text-gray);
  --gray-700:       #374151;
  --gray-800:       var(--text-dark);
  --gray-900:       #111827;
}

/* ── Sidebar user footer ── */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-user {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-orange);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: white; overflow: hidden;
}
.sidebar-user-avatar img { width:100%; height:100%; object-fit:cover; }
.sidebar-user-name { display:block; font-size:.9rem; font-weight:600; color:white; }
.sidebar-user-role { display:block; font-size:.75rem; color:rgba(255,255,255,.6); }
/* ── Topbar search input ── */
.topbar-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,.15);
}

.sidebar {
  display: flex;
  flex-direction: column;
}

/* ── Capacitor / WebView — safe area (mockup mobile, notch, gesture bar) ── */
html.capacitor-native,
body.capacitor-native {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

body.capacitor-native .auth-page-shell,
body.capacitor-native .auth-reg-shell {
  padding-top: calc(1.5rem + var(--safe-top));
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  padding-left: calc(1.5rem + var(--safe-left));
  padding-right: calc(1.5rem + var(--safe-right));
}

body.capacitor-native.app-page .sidebar {
  padding-top: calc(2rem + var(--safe-top));
  padding-bottom: calc(2rem + var(--safe-bottom));
  padding-left: calc(1.5rem + var(--safe-left));
  padding-right: calc(1.5rem + var(--safe-right));
  height: 100vh;
  height: 100dvh;
}

body.capacitor-native.app-page .main-container .topbar {
  padding-top: calc(1rem + var(--safe-top));
  padding-left: calc(2rem + var(--safe-left));
  padding-right: calc(2rem + var(--safe-right));
}

body.capacitor-native.app-page .content {
  padding-bottom: calc(1.5rem + var(--safe-bottom));
}

@media (max-width: 768px) {
  body.capacitor-native.app-page .sidebar {
    padding-top: calc(1rem + var(--safe-top));
    padding-left: calc(1rem + var(--safe-left));
    padding-right: calc(1rem + var(--safe-right));
  }

  body.capacitor-native.app-page .main-container .topbar {
    padding-top: calc(1rem + var(--safe-top));
    padding-left: calc(1rem + var(--safe-left));
    padding-right: calc(1rem + var(--safe-right));
  }

  body.capacitor-native.app-page .content {
    padding-bottom: calc(1rem + var(--safe-bottom));
  }
}
