:root {
  --blue: #4A90E2;
  --green: #50C878;
  --gold: #F5C26B;
  --coral: #FF8A7A;
  --bg: #F7F7F7;
  --text: #2C3E50;
  --white: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.screen { display: none; min-height: 100vh; padding-bottom: 70px; }
.screen.active { display: block; }

.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}
.logo-icon { font-size: 48px; margin-bottom: 8px; }
h1 { color: var(--blue); font-size: 32px; margin-bottom: 4px; }
.tagline { color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.subtitle { color: #666; font-size: 14px; margin-bottom: 32px; }
.login-form h2 { margin-bottom: 8px; }
.login-form p { margin-bottom: 24px; color: #555; }
input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
}
.btn-primary, .btn-coral {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: white;
}
.btn-primary { background: var(--coral); }
.btn-coral { background: var(--coral); }
.forgot { margin-top: 16px; font-size: 14px; }
.forgot a { color: var(--blue); text-decoration: none; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #eee;
}
.user-info { display: flex; align-items: center; gap: 12px; }
.avatar { font-size: 36px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.progress-badge {
  background: var(--gold);
  color: #333;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.icon-btn { background: none; border: none; font-size: 20px; cursor: pointer; }

.main { padding: 20px; max-width: 640px; margin: 0 auto; }

.welcome-banner {
  background: linear-gradient(135deg, var(--blue), #6BA8F0);
  color: white;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.welcome-banner h2 { font-size: 20px; margin-bottom: 4px; }

.progress-card, .aula-card, .upload-section, .next-aula {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.progress-bars { margin: 16px 0; }
.bar-item { margin-bottom: 14px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
.bar {
  height: 10px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 10px;
}

.encouragement { color: var(--green); font-weight: 500; margin-top: 8px; }

.next-aula { border-left: 4px solid var(--coral); }
.next-badge {
  background: var(--coral);
  color: white;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-btn { margin-bottom: 8px; }
.aula-card h4 { margin: 8px 0 4px; }
.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status.concluida { background: #e6f7f0; color: var(--green); }
.status.andamento { background: #fff4e5; color: #e67e22; }
.status.nao-iniciada { background: #f5f5f5; color: #888; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 8px;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-nav a {
  text-decoration: none;
  color: #888;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bottom-nav a.active { color: var(--blue); }
.nav-icon { font-size: 18px; }
