/* ============================================================
   TrainHub – Sistema de Gestão de Treinamentos
   Design: Refinado / Corporativo Moderno
   Paleta: Azul marinho profundo + Âmbar vibrante
   ============================================================ */

:root {
  --bg:         #0d1117;
  --bg-card:    #161b22;
  --bg-hover:   #1c2330;
  --border:     #30363d;
  --text:       #e6edf3;
  --text-muted: #7d8590;
  --primary:    #ffffff;
  --primary-d:  #96101f;
  --primary-bg: rgba(192, 21, 42, 0.12);
  --accent:     #e63946; 
  --accent-bg:  rgba(47, 129, 247, 0.12);
  --success:    #3fb950;
  --danger:     #f85149;
  --warning:    #d29922;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --sidebar-w:  240px;
  --topbar-h:   60px;
  --font-head: 'Source Sans 3', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --transition: 0.18s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.hidden { display: none !important; }
.flex   { display: flex; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── PAGE SYSTEM ─────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* ─── LOGIN ──────────────────────────────────────────────── */
#page-login {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#page-login.active {
  display: flex;
}

.login-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, #1a2744 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, #1a1a00 0%, transparent 50%),
              var(--bg);
}

.login-blobs { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: var(--accent); bottom: -80px; left: -80px; animation-delay: -3s; }
.blob-3 { width: 200px; height: 200px; background: var(--primary); top: 50%; left: 50%; animation-delay: -5s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-10px, 15px) scale(0.95); }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  background: rgba(22, 27, 34, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow), 0 0 0 1px rgba(240,165,0,0.05);
}

.login-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.8rem; margin-bottom: 2rem;
  color: var(--primary);
}

.brand-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.login-title {
  font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 800;
  margin-bottom: 0.4rem;
}

.login-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ─── FORM ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #000; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-d); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-hover); }
.btn-danger   { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover   { background: rgba(248,81,73,0.12); }
.btn-success  { background: var(--success); color: #000; }
.btn-ghost    { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--bg-hover); }
.btn-full     { width: 100%; }
.btn-sm       { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem; border-radius: var(--radius);
  font-size: 0.88rem; margin-bottom: 1rem;
}
.alert-error   { background: rgba(248,81,73,0.12); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: rgba(63,185,80,0.12); border: 1px solid var(--success); color: var(--success); }
.alert-info    { background: var(--accent-bg); border: 1px solid var(--accent); color: var(--accent); }

/* ─── APP LAYOUT ─────────────────────────────────────────── */
#page-app {
  display: none;
  min-height: 100vh;
}

#page-app.active { display: flex; }

#page-app:not(.active) .sidebar,
#page-app:not(.active) .topbar {
  display: none;
}

/* ─── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.2rem 1.2rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-h);
}

.sidebar-nav {
  flex: 1; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.8rem 0.5rem 0.3rem;
}

.nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer; font-size: 0.9rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: rgba(240,165,0,0.2);
}
.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

.sidebar-user {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
}
.user-info { display: flex; align-items: center; gap: 0.7rem; }
.user-avatar {
  width: 34px; height: 34px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}
.user-name   { font-size: 0.85rem; font-weight: 500; }
.user-role   { font-size: 0.72rem; color: var(--text-muted); }

/* ─── MAIN CONTENT ────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 1rem;
  position: sticky; top: 0; z-index: 50;
}

.hamburger {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.2rem; cursor: pointer; padding: 0.2rem;
}

.topbar-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  flex: 1;
}

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

.content-area {
  padding: 1.8rem;
  flex: 1;
}

/* ─── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.8rem; gap: 1rem;
  flex-wrap: wrap;
}
.page-header h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.page-header p  { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.2rem; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem;
}

/* ─── STATS GRID ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin: 0.2rem 0; }
.stat-sub   { font-size: 0.78rem; color: var(--text-muted); }
.stat-primary { border-top: 2px solid var(--primary); }
.stat-accent  { border-top: 2px solid var(--accent); }
.stat-success { border-top: 2px solid var(--success); }
.stat-warning { border-top: 2px solid var(--warning); }

/* ─── TRAINING GRID ──────────────────────────────────────── */
.trainings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.training-card:hover { border-color: rgba(240,165,0,0.3); transform: translateY(-2px); }

.training-thumbnail {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #1a2030, #0d1117);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-muted);
  position: relative; overflow: hidden;
}
.training-thumbnail::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    linear-gradient(90deg, transparent 50%, #c0152a 100%),
    linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.5));
}
.play-btn {
  width: 52px; height: 52px;
  background: #c0152a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 1.1rem;
  transition: transform var(--transition), background var(--transition);
}
.training-card:hover .play-btn { transform: scale(1.08); background: var(--primary); }

.training-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--success); color: #000;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  z-index: 1;
}
.training-badge.in-progress { background: var(--accent); color: #fff; }

.training-info { padding: 1.1rem; }
.training-category {
  font-size: 0.72rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem;
}
.training-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 0.4rem; line-height: 1.3;
}
.training-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.8rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.training-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-muted);
}
.progress-bar-wrap { background: var(--border); border-radius: 999px; height: 4px; margin: 0.6rem 0; }
.progress-bar      { height: 4px; border-radius: 999px; background: var(--primary); transition: width 0.5s ease; }

/* ─── VIDEO PLAYER PAGE ──────────────────────────────────── */
.video-page { display: flex; flex-direction: column; gap: 1.5rem; }
.video-wrap {
  width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; position: relative;
  aspect-ratio: 16 / 9;
}
.video-wrap video { width: 100%; height: 100%; }
.video-wrap iframe { width: 100%; height: 100%; border: none; }

.video-info { max-width: 860px; }
.video-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.video-meta  { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; }
.video-desc  { margin-top: 1rem; color: var(--text-muted); line-height: 1.7; }

.completion-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.completion-info { font-size: 0.9rem; }
.completion-info strong { font-family: var(--font-head); }
.completion-info .pct { color: var(--primary); font-size: 1.1rem; font-weight: 700; }

/* ─── TABLE ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
thead th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(48,54,61,0.5);
  vertical-align: middle;
}
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-success { background: rgba(63,185,80,0.15); color: var(--success); }
.badge-danger  { background: rgba(248,81,73,0.15); color: var(--danger); }
.badge-warning { background: rgba(210,153,34,0.15); color: var(--warning); }
.badge-info    { background: var(--accent-bg); color: var(--accent); }
.badge-muted   { background: var(--bg-hover); color: var(--text-muted); }
.badge-primary { background: var(--primary-bg); color: var(--primary); }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1rem; cursor: pointer; padding: 0.2rem 0.4rem;
  border-radius: 6px; transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 9999;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  min-width: 240px; max-width: 340px;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
  display: flex; gap: 0.6rem; align-items: flex-start;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--accent); }

/* ─── SEARCH BAR ─────────────────────────────────────────── */
.search-bar {
  display: flex; gap: 0.7rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-bar input {
  flex: 1; min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color var(--transition);
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  outline: none; cursor: pointer;
}

/* ─── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--text); margin-bottom: 0.4rem; }

/* ─── AUDIT LOG ──────────────────────────────────────────── */
.audit-item {
  display: flex; gap: 1rem; padding: 0.75rem 0;
  border-bottom: 1px solid rgba(48,54,61,0.4);
  font-size: 0.85rem;
}
.audit-time { color: var(--text-muted); white-space: nowrap; font-size: 0.78rem; }
.audit-action { font-weight: 600; color: var(--primary); }
.audit-detail { color: var(--text-muted); flex: 1; }

/* ─── TABS ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab {
  padding: 0.6rem 1rem; font-size: 0.88rem; cursor: pointer;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  transition: all var(--transition); margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 99;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; }
  .hamburger { display: block; }
  .content-area { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .trainings-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { flex-direction: column; }
  .page-header .topbar-actions,
  .page-header > div { flex-wrap: wrap; }

  /* Tabs com scroll horizontal para não quebrar linha */
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }

  /* Tabelas: fonte menor e célula com padding reduzido */
  thead th,
  tbody td { padding: 0.65rem 0.7rem; font-size: 0.82rem; }

  /* Barra de busca: select ocupa linha inteira */
  .search-bar { flex-direction: column; }
  .search-bar select { width: 100%; }

  /* Topbar actions */
  .topbar-actions { gap: 0.3rem; }
  .topbar-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.82rem; }

  /* Modal footer com wrap para botões não transbordarem */
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-width: 100px; }

  /* Video meta em coluna */
  .video-meta { flex-direction: column; gap: 0.3rem; }

  /* Completion box em coluna */
  .completion-box { flex-direction: column; align-items: flex-start; }

  /* Toast no centro-inferior */
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    align-items: stretch;
  }
  .toast { min-width: unset; max-width: unset; width: 100%; }
}

/* Telas muito pequenas (smartphones compactos) */
@media (max-width: 480px) {
  html { font-size: 14px; }

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

  .login-card { padding: 1.8rem 1.4rem; margin: 0.5rem; }
  .login-brand { font-size: 1.4rem; }
  .login-title { font-size: 1.4rem; }

  .topbar { padding: 0 0.9rem; }
  .topbar-title { font-size: 0.9rem; }

  .content-area { padding: 0.75rem; }

  .card { padding: 1rem; }
  .stat-value { font-size: 1.6rem; }

  .page-header h2 { font-size: 1.25rem; }

  /* Grids de 2 colunas colapsam para 1 */
  .modal { border-radius: var(--radius); }
  .modal-body { padding: 1rem; }
  .modal-header,
  .modal-footer { padding: 0.9rem 1rem; }

  /* Blobs pesados: desativa animação para poupar bateria */
  .blob { animation: none; }
}
