/* Student Dashboard - Professional Design System */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1f2a42;
  --bg-glass: rgba(26,34,54,0.85);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --accent: #4f6ef7;
  --accent-light: rgba(79,110,247,0.12);
  --accent-glow: rgba(79,110,247,0.25);
  --green: #22c55e;
  --green-light: rgba(34,197,94,0.12);
  --amber: #f59e0b;
  --amber-light: rgba(245,158,11,0.12);
  --red: #ef4444;
  --red-light: rgba(239,68,68,0.12);
  --purple: #a855f7;
  --purple-light: rgba(168,85,247,0.12);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --safe-top: env(safe-area-inset-top, 0px);
  --header-height: calc(72px + var(--safe-top));
}

@media (max-width: 768px) {
  :root {
    --header-height: calc(60px + var(--safe-top));
  }
}

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Topbar */
.topbar {
  position: fixed; top: 0; right: 0; left: 0;
  height: var(--header-height);
  z-index: 200;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  padding-top: var(--safe-top);
  box-sizing: border-box;
}
.topbar-right, .topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(var(--header-height) - var(--safe-top));
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; color: #fff; white-space: nowrap; }
.brand-icon {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 48%, #2563eb 100%);
  background-size: 200% 200%;
  animation: brandIconGradient 9s ease infinite;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 4px 14px var(--accent-glow);
}
.brand-icon::before {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  animation: brandIconSheen 4s ease-in-out infinite;
  pointer-events: none;
}
.brand-icon .logo-mark { display: block; position: relative; z-index: 1; }
.brand-icon .logo-mark__layer {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.brand-icon .logo-mark__layer--top { animation: logoLayerFloat 2.4s ease-in-out infinite; }
.brand-icon .logo-mark__layer--mid { animation: logoLayerFloat 2.4s ease-in-out infinite 0.14s; opacity: 0.93; }
.brand-icon .logo-mark__layer--bot { animation: logoLayerFloat 2.4s ease-in-out infinite 0.28s; opacity: 0.86; }
@keyframes brandIconGradient {
  0%, 100% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
}
@keyframes brandIconSheen {
  0%, 40% { transform: translateX(-35%) rotate(12deg); opacity: 0; }
  50% { opacity: 1; }
  60%, 100% { transform: translateX(35%) rotate(12deg); opacity: 0; }
}
@keyframes logoLayerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
.user-info { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; }
.user-name { font-weight: 600; font-size: 0.85rem; color: #fff; white-space: nowrap; }
.user-grade { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.btn-logout { display: flex; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 8px 14px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 0.8rem; transition: 0.2s; white-space: nowrap; }
.btn-logout:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--red); }

/* Notification Button */
.notif-btn { position: relative; background: transparent; border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.notif-btn:hover { background: var(--accent-light); color: var(--accent); }
.notif-badge { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: fixed; top: 72px; left: 20px; width: 340px; max-height: 400px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 300; display: none; flex-direction: column; overflow: hidden; }
.notif-panel.open { display: flex; }
.notif-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-header h3 { font-size: 0.9rem; font-weight: 700; margin: 0; }
.notif-header button { background: none; border: none; color: var(--accent); cursor: pointer; font-family: inherit; font-size: 0.75rem; }
.notif-list { overflow-y: auto; max-height: 340px; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: 0.15s; }
.notif-item:hover { background: rgba(255,255,255,0.02); }
.notif-item.unread { border-right: 3px solid var(--accent); }
.notif-item h4 { font-size: 0.82rem; font-weight: 600; margin-bottom: 2px; }
.notif-item p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.notif-empty { text-align: center; color: var(--text-muted); padding: 24px; font-size: 0.85rem; }

/* Layout */
.layout { display: flex; padding-top: var(--header-height); min-height: 100vh; }
.sidebar { position: fixed; right: 0; top: var(--header-height); bottom: 0; width: 200px; background: var(--bg-glass); backdrop-filter: blur(12px); border-left: 1px solid var(--border); padding: 16px 8px; overflow-y: auto; z-index: 100; height: calc(100vh - var(--header-height)); }
.main-content { margin-right: 200px; padding: 24px 28px 40px; flex: 1; width: calc(100% - 200px); }

/* Nav Items */
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.82rem; transition: 0.2s; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 2px 12px var(--accent-glow); }

/* Sections */
.section { display: none; animation: fadeUp 0.3s ease; }
.section.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
.section-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 20px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; transition: 0.25s; }
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; color: #fff; }
.stat-icon.blue { background: var(--accent-light); color: var(--accent); }
.stat-icon.blue svg { color: var(--accent); }
.stat-icon.green { background: var(--green-light); }
.stat-icon.green svg { color: var(--green); }
.stat-icon.amber { background: var(--amber-light); }
.stat-icon.amber svg { color: var(--amber); }
.stat-icon.purple { background: var(--purple-light); }
.stat-icon.purple svg { color: var(--purple); }
.stat-label { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.stat-value { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 0.9rem; font-weight: 700; color: #fff; margin: 0; }
.card-body { padding: 16px 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.empty-text { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 20px 0; }

/* Courses Grid */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.course-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: 0.25s; }
.course-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(79,110,247,0.15); }
.course-thumb { height: 110px; background: linear-gradient(135deg, #1a2440, #0d1525); display: flex; align-items: center; justify-content: center; position: relative; }
.course-thumb svg { width: 32px; height: 32px; color: #3a465e; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-badge { position: absolute; top: 8px; right: 8px; padding: 3px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 700; }
.course-badge.active { background: var(--green-light); color: var(--green); }
.course-badge.available { background: var(--accent-light); color: var(--accent); }
.course-info { padding: 14px; }
.course-info h3 { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.course-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--text-muted); }
.course-enter { color: var(--accent); font-weight: 700; font-size: 0.8rem; }

/* Tasks */
.tabs-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.tab { padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-family: inherit; font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.task-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: 0.15s; cursor: pointer; }
.task-item:hover { background: rgba(255,255,255,0.02); }
.task-item:last-child { border: none; }
.task-title { color: #fff; font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.task-sub { color: var(--text-muted); font-size: 0.75rem; }
.task-badge { padding: 4px 12px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.task-badge.exam { background: var(--accent-light); color: var(--accent); }
.task-badge.hw { background: var(--amber-light); color: var(--amber); }

/* Performance */
.perf-summary { display: flex; gap: 20px; margin-bottom: 20px; align-items: flex-start; }
.perf-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; min-width: 160px; }
.perf-circle { width: 100px; height: 100px; border-radius: 50%; border: 4px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; position: relative; }
.perf-circle span { font-size: 1.3rem; font-weight: 800; color: #fff; }
.perf-card p { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; margin: 0; }
.perf-details { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.perf-bar { margin-bottom: 12px; }
.perf-bar-header { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 0.78rem; }
.perf-bar-header span:first-child { color: var(--text); font-weight: 600; }
.perf-bar-header span:last-child { color: var(--text-muted); }
.perf-bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.perf-bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.perf-bar-fill.high { background: var(--green); }
.perf-bar-fill.mid { background: var(--amber); }
.perf-bar-fill.low { background: var(--red); }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.result-row:last-child { border: none; }
.result-name { color: #fff; font-weight: 600; font-size: 0.85rem; }
.result-date { color: var(--text-muted); font-size: 0.72rem; margin-top: 2px; }
.result-score { font-weight: 800; font-size: 0.95rem; }
.result-score.high { color: var(--green); }
.result-score.mid { color: var(--amber); }
.result-score.low { color: var(--red); }
.strength-item, .weakness-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); }
.strength-item:last-child, .weakness-item:last-child { border: none; }

/* Activation */
.activation-box { max-width: 480px; margin: 40px auto; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; }
.activation-icon { margin-bottom: 16px; color: var(--accent); }
.activation-box h2 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.activation-box > p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.code-input { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 14px; border-radius: var(--radius); color: #fff; font-size: 1.2rem; font-family: 'Courier New', monospace; letter-spacing: 4px; text-align: center; outline: none; transition: 0.2s; }
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.btn-activate { width: 100%; padding: 13px; margin-top: 14px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: 0.2s; }
.btn-activate:hover { background: #4060e0; box-shadow: 0 6px 20px var(--accent-glow); }
.activation-result { margin-top: 14px; padding: 12px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; }
.activation-result.success { background: var(--green-light); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.activation-result.error { background: var(--red-light); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* Chatbot */
.chat-fab { position: fixed; bottom: 24px; left: 24px; width: 50px; height: 50px; background: var(--accent); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px var(--accent-glow); cursor: pointer; z-index: 400; transition: 0.2s; }
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 22px; height: 22px; color: #fff; }
.chat-panel { position: fixed; bottom: 84px; left: 24px; width: 340px; max-height: 480px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.4); z-index: 400; display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: rgba(79,110,247,0.06); flex-shrink: 0; }
.chat-header-info { display: flex; align-items: center; gap: 8px; }
.chat-avatar { width: 30px; height: 30px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.chat-header-info span { font-weight: 700; font-size: 0.85rem; color: #fff; }
.chat-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.chat-body { flex: 1 1 auto; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; max-height: 340px; min-height: 0; -webkit-overflow-scrolling: touch; }
.chat-msg { padding: 10px 14px; border-radius: 10px; max-width: 85%; font-size: 0.82rem; line-height: 1.7; word-break: break-word; overflow-wrap: break-word; min-height: 18px; }
.chat-msg.bot { background: rgba(255,255,255,0.04); color: var(--text); align-self: flex-start; border-bottom-right-radius: 4px; white-space: pre-wrap !important; overflow-wrap: break-word !important; line-height: 1.9 !important; unicode-bidi: plaintext !important; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-left-radius: 4px; }
.chat-msg.typing { color: var(--text-muted); font-style: italic; }
.chat-input-area { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: rgba(0,0,0,0.15); flex-shrink: 0; }
.chat-input-area input { flex: 1; background: none; border: none; color: #fff; outline: none; font-family: inherit; font-size: 0.82rem; }
.chat-input-area button { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 12px; cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
.chat-input-area button:hover { background: #4060e0; }

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { 
    position: sticky; 
    top: var(--header-height); 
    width: 100%; 
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
    border-left: none; 
    border-bottom: 1px solid var(--border); 
    padding: 10px 14px; 
    background: #0a0e1a; /* Solid dark background to permanently resolve Xiaomi HyperOS/MIUI WebView backdrop-filter composition bugs */
    z-index: 150; 
    transform: translateZ(0);
    will-change: transform;
  }
  .main-content { 
    margin-right: 0; 
    padding: 20px 16px 40px; 
    min-width: 0; 
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .layout { 
    display: block !important;
  }
  .sidebar-nav { 
    flex-direction: row; 
    overflow-x: auto; 
    gap: 8px; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 0px; 
    scrollbar-width: none; /* Firefox */
    transform: translateZ(0);
    will-change: transform;
  }
  .sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .nav-item { white-space: nowrap; font-size: 0.78rem; padding: 10px 14px; flex-shrink: 0; border-radius: 8px; }
  .nav-item span { display: inline; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .courses-grid { grid-template-columns: 1fr; }
  .perf-summary { flex-direction: column; }
  .topbar-left .user-info { display: none; }
  .btn-logout span { display: none; }
  .btn-logout { padding: 8px; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
  .chat-panel { width: calc(100% - 32px); left: 16px; right: 16px; max-width: 420px; }
  .notif-panel { width: calc(100% - 32px); left: 16px; right: 16px; max-width: 400px; top: calc(var(--header-height) + 8px); }
  .brand span { font-size: 0.88rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right, .topbar-left { flex-wrap: nowrap; }
  /* Enforce 16px minimum font size to prevent iOS Safari auto-zooming on focus */
  .code-input, .chat-input-area input, input, select, textarea {
    font-size: 16px !important;
  }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .stat-card {
    padding: 12px 10px !important;
    gap: 8px !important;
  }
  .stat-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
  }
  .stat-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  .stat-value {
    font-size: 1.15rem !important;
  }
  .stat-label {
    font-size: 0.65rem !important;
  }
}

@media (max-width: 768px) {
  .tabs-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .tabs-bar::-webkit-scrollbar {
    display: none;
  }
  .tabs-bar .tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-icon { animation: none; background: var(--accent); box-shadow: none; }
  .brand-icon::before { display: none; }
  .brand-icon .logo-mark__layer--top,
  .brand-icon .logo-mark__layer--mid,
  .brand-icon .logo-mark__layer--bot { animation: none !important; opacity: 1; }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -120px;
  right: 12px;
  left: 12px;
  z-index: 10001;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: max(8px, env(safe-area-inset-top, 0px));
  outline: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-item:focus-visible,
.notif-btn:focus-visible,
.btn-logout:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Adaptive tips (overview) */
.adaptive-tips {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 110, 247, 0.35);
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.12), rgba(37, 99, 235, 0.06));
}
.adaptive-tips-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.adaptive-tips-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Dynamic viewport height support for mobile devices */
body, .layout, .sidebar {
  min-height: 100vh;
  min-height: 100dvh;
}

