@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --primary: #6366f1;
  --primary-light: #eef2ff;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --sky: #0ea5e9;
  --nav-height: 72px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* App feel: no body scroll */
  display: flex;
  flex-direction: column;
  font-size: 1.65rem; /* GIGA FONT: Acessibilidade Suprema */
  line-height: 1.5;
}

/* App Header */
.app-header {
  padding: 24px 28px;
  background: var(--bg-card);
  border-bottom: 2px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header h1 { font-size: 2.2rem; font-weight: 950; color: var(--primary); letter-spacing: -0.7px; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 15px var(--emerald); }

/* Main Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: calc(var(--nav-height) + 80px + var(--safe-area-bottom));
  scroll-behavior: smooth;
}

.view { display: none; animation: slideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.view.active { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 38px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.01);
}
.card h2 { font-size: 2rem; font-weight: 950; margin-bottom: 22px; display: flex; align-items: center; gap: 16px; line-height: 1.1; }
.card p { font-size: 1.5rem; color: var(--text-sub); line-height: 1.6; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.stat-box {
  background: var(--primary-light);
  padding: 28px 16px;
  border-radius: 32px;
  text-align: center;
  transition: transform 0.2s;
}
.stat-box:active { transform: scale(0.95); }
.stat-box .label { font-size: 0.95rem; font-weight: 800; color: var(--primary); text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.stat-box .value { font-size: 2.8rem; font-weight: 1000; color: var(--text-main); font-family: 'JetBrains Mono', monospace; }

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-height) + var(--safe-area-bottom) + 15px);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-top: 3px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: var(--safe-area-bottom);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 10px;
  flex: 1;
}
.nav-item i { font-size: 2.5rem; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-12px); scale: 1.25; }

/* Custom Elements */
.timeline-mobile { position: relative; padding-left: 40px; }
.timeline-mobile::before { content:''; position:absolute; left:0; top:0; bottom:0; width:8px; background:var(--primary-light); border-radius: 8px; }
.tl-item { position:relative; padding-bottom: 36px; }
.tl-item::before { content:''; position:absolute; left:-50px; top:14px; width:22px; height:22px; border-radius:50%; background:var(--bg-app); border:6px solid var(--primary); z-index: 2; }
.tl-item.done::before { background:var(--emerald); border-color:var(--emerald); }
.tl-item .date { font-size: 1.2rem; font-weight: 800; color: var(--primary); font-family: 'JetBrains Mono'; }
.tl-item .title { font-size: 1.6rem; font-weight: 700; margin-top:12px; line-height: 1.3; }

/* List View */
.mobile-list { margin-top: 24px; }
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px;
  background: var(--bg-app);
  border-radius: 28px;
  margin-bottom: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.list-name { font-weight: 950; font-size: 1.7rem; letter-spacing: -0.5px; }
.list-sub { font-size: 1.2rem; color: var(--text-sub); margin-top: 8px; font-weight: 500; }
.list-val { font-family: 'JetBrains Mono'; font-weight: 950; font-size: 1.8rem; color: var(--primary); }

/* Checklist */
.check-item { display: flex; align-items: center; gap:32px; padding: 28px 0; border-bottom: 2px solid #eef2ff; cursor: pointer; }
.check-item:last-child { border-bottom: none; }
.check-box { width:48px; height:48px; border:6px solid #cbd5e1; border-radius:16px; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition: all 0.2s; }
.check-box.done { background: var(--emerald); border-color: var(--emerald); color: white; transform: rotate(5deg) scale(1.1); }
.check-box.done::after { content: '✓'; font-weight: 1000; font-size: 2rem; }
.check-text { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }

/* Table Container */
.table-container { 
  overflow-x: auto; 
  margin: 32px 0; 
  border-radius: 28px; 
  background: #f8fafc; 
  box-shadow: inset 0 2px 15px rgba(0,0,0,0.04);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 1.4rem; }
.data-table th { text-align: left; padding: 24px; border-bottom: 5px solid #e2e8f0; color: var(--text-sub); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; }
.data-table td { padding: 24px; border-bottom: 2px solid #f1f5f9; }

/* Dashboards and Stats */
.badge { font-size: 1.1rem; padding: 8px 16px; border-radius:14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.b-green { background: #dcfce7; color: #15803d; }
.b-blue { background: #e0f2fe; color: #0369a1; }

/* Launcher */
.launcher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.launcher-item { padding: 48px 24px; text-align: center; margin-bottom: 0; cursor: pointer; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.launcher-item:active { transform: scale(0.9); background: var(--primary-light); }
.launcher-item i { font-size: 3.8rem; margin-bottom: 24px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12)); }
.launcher-title { font-weight: 950; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-main); }

