/* ============================================================
   FitCore Design System v6 — Light & Clean
   Bootstrap 5.3 dark-mode desativado via data-bs-theme="light"
   no <html>. Este CSS não precisa mais de !important defensivos.
   Tokens CSS limpos · Verde · Plus Jakarta Sans
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:     #f7f8fc;
  --card:   #ffffff;
  --card-2: #f9fafb;
  --card-3: #f3f4f8;

  /* Green brand */
  --g500: #22c55e;
  --g600: #16a34a;
  --g700: #15803d;
  --g100: #dcfce7;
  --g200: #bbf7d0;
  --gbdr: #86efac;

  /* Neutrals */
  --ink:  #111827;
  --ink2: #374151;
  --ink3: #6b7280;
  --ink4: #9ca3af;
  --line: #e5e7eb;
  --line2: #f3f4f6;

  /* Accents */
  --orange: #f97316;
  --obg:    #fff7ed;
  --purple: #8b5cf6;
  --pbg:    #f5f3ff;
  --blue:   #3b82f6;
  --bbg:    #eff6ff;
  --red:    #ef4444;
  --rbg:    #fef2f2;
  --yellow: #eab308;
  --ybg:    #fefce8;

  /* Shadows */
  --s1: 0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
  --s2: 0 4px 12px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.04);
  --s3: 0 10px 30px rgba(0,0,0,.10),0 4px 8px rgba(0,0,0,.05);
  --s4: 0 20px 48px rgba(0,0,0,.12);

  /* Layout */
  --nav-h:  62px;
  --bnav-h: 68px;
  --r1: 8px;
  --r2: 14px;
  --r3: 20px;
  --r4: 28px;
  --px: 20px;

  /* Bootstrap overrides — aplica nosso tema claro no sistema do BS */
  --bs-body-bg:          #f7f8fc;
  --bs-body-color:       #111827;
  --bs-border-color:     #e5e7eb;
  --bs-link-color:       #16a34a;
  --bs-link-hover-color: #15803d;

  /* BS secondary bg/text system — garante componentes brancos */
  --bs-secondary-bg:       #f9fafb;
  --bs-tertiary-bg:        #f3f4f8;
  --bs-emphasis-color:     #111827;
  --bs-secondary-color:    #6b7280;
  --bs-border-color-translucent: rgba(0,0,0,.1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans','Inter',system-ui,sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--bnav-h);
}
@media(min-width:992px) { body { padding-bottom: 0; } }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans',sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

a { color: var(--g600); text-decoration: none; }
a:hover { color: var(--g700); }

/* ── TOP BAR ────────────────────────────────────────────────── */
.fc-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.fc-topbar-inner {
  max-width: 1320px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  gap: 16px;
}

/* Logo */
.fc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fc-logo-mark {
  background: linear-gradient(135deg,var(--g500),var(--g700));
  color: #fff;
  font-weight: 900; font-size: 11px; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(22,163,74,.35);
  font-family: 'Plus Jakarta Sans',sans-serif;
}
.fc-brand-name {
  font-family: 'Plus Jakarta Sans',sans-serif;
  font-weight: 800; font-size: 18px; color: var(--ink);
  letter-spacing: -.02em;
}

/* Desktop nav */
.fc-desktop-nav { display: none; align-items: center; gap: 2px; }
@media(min-width:992px) { .fc-desktop-nav { display: flex; } }

.fc-nav-lnk {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: var(--r1);
  font-size: 14px; font-weight: 500; color: var(--ink3);
  text-decoration: none; transition: all .15s ease;
  white-space: nowrap;
}
.fc-nav-lnk i { font-size: 14px; }
.fc-nav-lnk:hover { color: var(--ink); background: var(--line2); }
.fc-nav-lnk.active { color: var(--g700); background: var(--g100); font-weight: 600; }

/* Right actions */
.fc-topbar-right { display: flex; align-items: center; gap: 8px; }

/* Notif button */
.fc-notif-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink2); font-size: 17px;
  transition: all .15s; box-shadow: var(--s1);
}
.fc-notif-btn:hover { background: var(--line2); border-color: #d1d5db; }
.fc-notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; padding: 0 3px;
  font-family: 'Plus Jakarta Sans',sans-serif;
}

/* Notif dropdown */
.fc-notif-menu {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r3) !important;
  box-shadow: var(--s4) !important;
  padding: 0 !important;
  overflow: hidden;
}
.fc-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: var(--card-2);
}
.fc-notif-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.fc-unread-pill { background: var(--g100); color: var(--g700); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.fc-notif-body { max-height: 340px; overflow-y: auto; }
.fc-notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line2); transition: background .12s; }
.fc-notif-item:hover { background: var(--card-2); }
.fc-notif-new { background: var(--g100); }
.fc-notif-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.fc-notif-msg { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.4; }
.fc-notif-sub { font-size: 12px; color: var(--ink3); margin: 2px 0 0; }
.fc-notif-time { font-size: 11px; color: var(--ink4); margin: 3px 0 0; }
.fc-notif-loading,.fc-notif-empty { padding: 20px; text-align: center; font-size: 13px; color: var(--ink4); }
.fc-notif-footer { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--card-2); text-align: center; }
.fc-notif-mark { font-size: 13px; color: var(--g600); font-weight: 600; }

/* Avatar button */
.fc-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 40px;
  background: transparent; border: 1.5px solid var(--line);
  cursor: pointer; transition: all .15s; box-shadow: var(--s1);
}
.fc-avatar-btn:hover { background: var(--line2); border-color: #d1d5db; }
.fc-avatar-info { display: flex; flex-direction: column; text-align: left; }
.fc-avatar-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.fc-avatar-level { font-size: 11px; color: var(--g700); font-weight: 500; }
.fc-chevron { font-size: 11px; color: var(--ink4); }

/* Profile dropdown */
.fc-profile-menu {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r3) !important;
  box-shadow: var(--s4) !important;
  padding: 8px !important;
  min-width: 220px !important;
}
.fc-profile-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 16px; border-bottom: 1px solid var(--line2); margin-bottom: 6px;
}
.fc-avatar-lg {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,var(--g100),var(--g200));
  display: flex; align-items: center; justify-content: center;
  color: var(--g700); font-weight: 800; font-size: 18px; flex-shrink: 0;
  border: 2px solid var(--gbdr);
}
.fc-profile-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.fc-profile-xp { font-size: 12px; color: var(--g600); font-weight: 500; margin-top: 2px; }
.fc-menu-divider { border-color: var(--line2) !important; margin: 6px 0 !important; }
.fc-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px !important;
  border-radius: var(--r1) !important; font-size: 14px; font-weight: 500;
  color: var(--ink2) !important; text-decoration: none; transition: all .12s;
  width: 100% !important; cursor: pointer;
}
.fc-menu-item:hover { background: var(--line2) !important; color: var(--ink) !important; }
.fc-menu-item i { font-size: 15px; width: 16px; }
.fc-menu-danger { color: var(--red) !important; }
.fc-menu-danger:hover { background: var(--rbg) !important; color: var(--red) !important; }

/* Flash messages */
.fc-flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: var(--r2); border-left: 4px solid;
  font-size: 14px; margin-bottom: 8px;
}
.fc-flash-success { background: var(--g100); border-left-color: var(--g500); color: #166534; }
.fc-flash-danger  { background: var(--rbg);  border-left-color: var(--red);  color: #991b1b; }
.fc-flash-warning { background: var(--ybg);  border-left-color: var(--yellow); color: #92400e; }
.fc-flash-close { background: none; border: none; cursor: pointer; font-size: 16px; color: inherit; opacity: .6; padding: 0; }

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.fc-bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bnav-h);
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px; padding-bottom: env(safe-area-inset-bottom,0);
  z-index: 1000; box-shadow: 0 -4px 20px rgba(0,0,0,.07);
}
@media(min-width:992px) { .fc-bnav { display: none !important; } }

.fc-bn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 12px; border-radius: 12px;
  text-decoration: none; color: var(--ink4);
  transition: all .2s ease; flex: 1; min-width: 0; position: relative;
}
.fc-bn i { font-size: 22px; transition: transform .2s ease; display: block; }
.fc-bn span { font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.fc-bn.active { color: var(--g700); }
.fc-bn.active i { transform: scale(1.1); }
.fc-bn.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--g500); border-radius: 0 0 4px 4px;
}

.fc-bn-fab {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg,var(--g500),var(--g700));
  color: #ffffff; text-decoration: none;
  box-shadow: 0 4px 18px rgba(34,197,94,.45);
  transition: all .2s ease; position: relative; top: -10px;
}
.fc-bn-fab i { font-size: 24px; }
.fc-bn-fab:hover { transform: translateY(-2px) scale(1.05); color: #fff; box-shadow: 0 8px 28px rgba(34,197,94,.55); }
.fc-bn-fab:active { transform: scale(.95); }

/* ── CARDS ──────────────────────────────────────────────────── */
.fc-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 22px;
  box-shadow: var(--s1); transition: box-shadow .2s,border-color .2s;
}
.fc-card:hover { box-shadow: var(--s2); border-color: #d1d5db; }

.fc-card-sm {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 14px 16px;
}

/* ── STAT CARDS ─────────────────────────────────────────────── */
.fc-stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 20px 22px 18px;
  position: relative; overflow: hidden; transition: all .2s ease;
}
.fc-stat:hover { transform: translateY(-3px); box-shadow: var(--s3); border-color: #d1d5db; }
.fc-stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,var(--g500),var(--g700));
  border-radius: var(--r3) var(--r3) 0 0;
}
.fc-stat.orange::before { background: linear-gradient(90deg,var(--orange),#ea580c); }
.fc-stat.purple::before { background: linear-gradient(90deg,var(--purple),#7c3aed); }
.fc-stat.blue::before   { background: linear-gradient(90deg,var(--blue),#2563eb); }
.fc-stat-icon { position: absolute; bottom: 14px; right: 18px; font-size: 38px; opacity: .06; }
.fc-stat-value {
  font-size: 28px; font-weight: 800; line-height: 1;
  font-family: 'Plus Jakarta Sans',sans-serif;
  color: var(--g700); letter-spacing: -.03em; margin-top: 8px;
}
.fc-stat.orange .fc-stat-value { color: var(--orange); }
.fc-stat.purple .fc-stat-value { color: var(--purple); }
.fc-stat.blue   .fc-stat-value { color: var(--blue); }
.fc-stat-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink4); margin-top: 5px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-fc {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg,var(--g500),var(--g700));
  color: #ffffff; font-weight: 700; font-size: 14.5px; font-family: 'Plus Jakarta Sans',sans-serif;
  border: none; border-radius: var(--r2); padding: 12px 26px;
  cursor: pointer; transition: all .2s ease;
  box-shadow: 0 3px 12px rgba(34,197,94,.35);
  letter-spacing: .01em; white-space: nowrap; text-decoration: none;
}
.btn-fc:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,.45); color: #fff; filter: brightness(1.06); }
.btn-fc:active { transform: scale(.97); box-shadow: none; }

.btn-fc-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--g100); color: var(--g700);
  border: 1.5px solid var(--gbdr); border-radius: var(--r2);
  padding: 11px 24px; font-size: 14.5px; font-weight: 600; font-family: 'Plus Jakarta Sans',sans-serif;
  cursor: pointer; transition: all .2s ease; white-space: nowrap; text-decoration: none;
}
.btn-fc-outline:hover { background: var(--g200); border-color: var(--g500); color: var(--g700); }

/* ── AVATARS ────────────────────────────────────────────────── */
.fc-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,var(--g100),var(--g200));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--g700); font-weight: 800; font-size: 14px; flex-shrink: 0;
  border: 2px solid var(--gbdr);
}
.fc-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg,var(--g100),var(--g200));
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--g700); font-weight: 800; font-size: 22px; flex-shrink: 0;
  border: 2.5px solid var(--gbdr);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

/* ── PROGRESS BARS ──────────────────────────────────────────── */
.fc-xp-bar { height: 5px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.fc-xp-fill { height: 100%; background: linear-gradient(90deg,var(--g600),var(--g500)); border-radius: 99px; transition: width .7s cubic-bezier(.22,1,.36,1); }
.fc-level-bar { background: #e5e7eb; border-radius: 99px; height: 6px; overflow: hidden; }
.fc-level-fill { height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.22,1,.36,1); }

/* ── WATER ──────────────────────────────────────────────────── */
.fc-water-bar { height: 9px; background: var(--bbg); border-radius: 99px; overflow: hidden; }
.fc-water-fill { height: 100%; background: linear-gradient(90deg,#0284c7,var(--blue)); border-radius: 99px; transition: width .4s ease; }
.fc-water-btn {
  background: var(--bbg); border: 1.5px solid #93c5fd;
  color: var(--blue); border-radius: 10px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.fc-water-btn:hover { background: #dbeafe; border-color: var(--blue); }

/* ── BADGES ─────────────────────────────────────────────────── */
.fc-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--line2); border: 1.5px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.fc-badge.earned { border-color: var(--gbdr); background: var(--g100); color: var(--g700); }
.fc-badge.locked { opacity: .4; }

/* ── FEED POSTS ─────────────────────────────────────────────── */
.fc-post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; transition: box-shadow .2s; }
.fc-post:hover { box-shadow: var(--s2); }
.fc-post-img { width: 100%; max-height: 380px; object-fit: cover; }
.fc-reaction-btn { background: transparent; border: 1.5px solid var(--line); color: var(--ink4); border-radius: 10px; padding: 5px 14px; font-size: 13px; cursor: pointer; transition: all .15s; }
.fc-reaction-btn:hover,.fc-reaction-btn.active { border-color: var(--gbdr); color: var(--g700); background: var(--g100); }

/* ── EXERCISES ──────────────────────────────────────────────── */
.fc-exercise-row { background: var(--card-2); border: 1.5px solid var(--line); border-radius: var(--r2); padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; transition: all .15s; cursor: pointer; }
.fc-exercise-row:hover { border-color: var(--gbdr); background: var(--g100); }
.fc-exercise-row.done { border-color: var(--g500); background: var(--g100); }
.fc-exercise-row.done .fc-ex-name { color: var(--g700); font-weight: 600; }
.fc-check-circle { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; font-size: 12px; }
.fc-exercise-row:hover .fc-check-circle { border-color: var(--gbdr); }
.fc-exercise-row.done .fc-check-circle { background: var(--g500); border-color: var(--g500); color: #fff; }

/* ── LEADERBOARD ────────────────────────────────────────────── */
.fc-leaderboard-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fc-leaderboard-item:last-child { border-bottom: none; }
.fc-rank { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; font-weight: 800; min-width: 32px; color: var(--ink4); }
.fc-rank.top1 { color: #d97706; }
.fc-rank.top2 { color: #64748b; }
.fc-rank.top3 { color: #92400e; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-control,.form-select {
  background: var(--card) !important; border: 1.5px solid #d1d5db !important;
  color: var(--ink) !important; border-radius: var(--r2) !important;
  font-size: 15px !important; padding: 12px 16px !important;
  transition: border-color .15s,box-shadow .15s !important;
  font-family: 'Plus Jakarta Sans',sans-serif !important;
  box-shadow: var(--s1) !important;
}
.form-control::placeholder { color: var(--ink4) !important; }
.form-control:focus,.form-select:focus {
  border-color: var(--g500) !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12) !important;
  outline: none !important;
}
.form-label { color: var(--ink2); font-size: 13px; font-weight: 600; margin-bottom: 7px; display: block; }
.input-group-text { background: var(--card-2) !important; border: 1.5px solid #d1d5db !important; color: var(--ink4) !important; border-radius: var(--r2) !important; }

/* ── TABLES ─────────────────────────────────────────────────── */
.table { color: var(--ink) !important; border-color: var(--line) !important; }
.table thead th { background: var(--card-2) !important; color: var(--ink4) !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: .09em; font-weight: 700 !important; border-color: var(--line) !important; padding: 12px 16px !important; }
.table tbody td { padding: 13px 16px !important; border-color: var(--line) !important; vertical-align: middle; background: var(--card) !important; }
.table tbody tr:hover td { background: var(--card-2) !important; }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert { background: var(--card); border: none; border-left: 4px solid; color: var(--ink); border-radius: var(--r2); font-size: 14px; padding: 14px 18px; box-shadow: var(--s1); }
.alert-success { border-left-color: var(--g500); background: var(--g100); color: #166534; }
.alert-danger   { border-left-color: var(--red);  background: var(--rbg);  color: #991b1b; }
.alert-warning  { border-left-color: var(--yellow); background: var(--ybg); color: #92400e; }
.alert-info     { border-left-color: var(--blue); background: var(--bbg);  color: #1e40af; }
.btn-close { filter: none !important; opacity: .5; }

/* ── DROPDOWNS ──────────────────────────────────────────────── */
.dropdown-menu { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r3) !important; box-shadow: var(--s4) !important; padding: 8px !important; }
.dropdown-item { color: var(--ink2) !important; font-size: 14px; border-radius: var(--r1) !important; padding: 10px 14px !important; transition: all .12s; width: 100% !important; margin: 0 !important; }
.dropdown-item:hover { background: var(--line2) !important; color: var(--ink) !important; }
.dropdown-divider { border-color: var(--line) !important; margin: 6px 0 !important; }

/* ── STUDENT CARDS ──────────────────────────────────────────── */
.fc-student-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r3); padding: 20px; transition: all .2s; cursor: pointer; }
.fc-student-card:hover { border-color: var(--gbdr); transform: translateY(-2px); box-shadow: var(--s2); }

/* ── STATUS DOTS ────────────────────────────────────────────── */
.fc-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fc-status-dot.active  { background: var(--g500); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.fc-status-dot.paused  { background: var(--orange); }
.fc-status-dot.pending { background: var(--ink4); }

/* ── DAY TABS ───────────────────────────────────────────────── */
.fc-day-tab { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r2); padding: 8px 20px; cursor: pointer; transition: all .15s; font-weight: 600; font-size: 14px; color: var(--ink3); display: inline-block; text-decoration: none; }
.fc-day-tab:hover { border-color: var(--gbdr); color: var(--g700); background: var(--g100); }
.fc-day-tab.active { background: var(--g100); border-color: var(--g500); color: var(--g700); }

/* ── ADMIN SIDEBAR ──────────────────────────────────────────── */
.fc-admin-sidebar { background: var(--card); border-right: 1px solid var(--line); min-height: calc(100vh - var(--nav-h)); width: 220px; flex-shrink: 0; }
.fc-admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink3); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: var(--r1); margin: 2px 8px; transition: all .15s; }
.fc-admin-nav-link:hover,.fc-admin-nav-link.active { background: var(--g100); color: var(--g700); }

/* ── MODALS ─────────────────────────────────────────────────── */
.modal-content { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r4) !important; box-shadow: var(--s4) !important; }
.modal-header { border-bottom: 1px solid var(--line) !important; padding: 20px 24px !important; background: var(--card-2) !important; border-radius: var(--r4) var(--r4) 0 0 !important; }
.modal-body { padding: 24px !important; }
.modal-title { color: var(--ink) !important; font-weight: 700; }

/* ── NAV TABS ───────────────────────────────────────────────── */
.nav-tabs { border-bottom: 2px solid var(--line) !important; gap: 4px; }
.nav-tabs .nav-link { color: var(--ink3) !important; background: transparent !important; border: none !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; padding: 10px 16px !important; font-weight: 500; font-size: 14px; margin-bottom: -2px; transition: all .15s; }
.nav-tabs .nav-link:hover { color: var(--ink) !important; }
.nav-tabs .nav-link.active { color: var(--g700) !important; border-bottom-color: var(--g500) !important; background: transparent !important; font-weight: 600; }

/* ── MISC ───────────────────────────────────────────────────── */
.text-muted { color: var(--ink3) !important; }
code { background: var(--card-3); color: var(--g700); padding: 2px 7px; border-radius: 6px; font-size: .87em; border: 1px solid var(--line); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.fc-footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--card); margin-top: 48px; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--card-2); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fc-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fc-animate { animation: fc-fadeIn .28s ease forwards; }
@keyframes pulse-green { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); } 50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.fc-pulse { animation: pulse-green 2s ease infinite; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
/* Footer oculto no mobile — tratado aqui, não via JS */
@media(max-width:991.98px) {
  #fc-footer,
  .fc-footer {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* ── RESPONSIVE ENGINE HOOKS ────────────────────────────────── */
/* Classes adicionadas pelo fitcore-responsive.js */
.fc-touching {
  opacity: .75;
  transform: scale(.97);
  transition: opacity .1s, transform .1s;
}

/* Quando teclado está aberto no mobile */
.keyboard-open .fc-bnav {
  transition: transform .2s ease;
}

/* PWA standalone: compensa a status bar */
.pwa-standalone .fc-topbar {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Variáveis de viewport real definidas pelo JS */
/* Uso: height: calc(var(--dvh, 100vh) - var(--nav-h)) */

@media(max-width:768px) {
  :root { --px: 14px; }
  .fc-card   { padding: 16px; border-radius: var(--r2); }
  .fc-stat   { padding: 14px 16px; border-radius: var(--r2); }
  .fc-stat-value { font-size: 24px; }
  .fc-admin-sidebar { display: none; }
  h1 { font-size: 22px !important; }
  .container-xl,.container-xxl,.container {
    padding-left: var(--px) !important;
    padding-right: var(--px) !important;
  }
}
