/* Workshop Skill Passport - Unified Design System */
/* Matches Mr Hope's Classroom main app styling */

:root {
  /* Core Colors - matching main app */
  --primary-green: #34a853;
  --primary-green-hover: #2e7d32;
  --primary-green-light: #e6f4ea;
  --primary-orange: #E67E22;
  --primary-orange-hover: #D35400;
  --primary-orange-light: #FDF2E9;
  --primary-blue: #3b82f6;
  --primary-blue-hover: #2563eb;
  --primary-blue-light: #eff6ff;
  
  /* Status Colors */
  --success: #34a853;
  --success-light: #e6f4ea;
  --warning: #f9ab00;
  --warning-light: #fef7cd;
  --danger: #ea4335;
  --danger-light: #fce8e6;
  
  /* Text Colors */
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  
  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-page: #fdfdfd;
  --border-color: #e8eaed;
  
  /* Typography */
  --font-display: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing & Radius - matching main app */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 40px;
}

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

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

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== HEADER - matching main app ===== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.header-logo {
  width: 40px;
  height: 40px;
  background: var(--primary-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
}

.nav-btn:hover { 
  background: var(--bg-light); 
  color: var(--text-primary); 
}

.nav-btn.active { 
  background: var(--primary-green-light); 
  color: var(--primary-green); 
}

.nav-btn.danger { color: var(--danger); }
.nav-btn.danger:hover { background: var(--danger-light); }

/* ===== CONTAINERS ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  animation: fadeIn 0.4s ease-out;
}

.container-sm { max-width: 540px; }

/* ===== LOGIN PAGE - matching main app modal style ===== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
  padding: 64px;
  width: 100%;
  max-width: 540px;
  text-align: center;
  border: 1px solid #f0f0f0;
  animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  margin-bottom: 48px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: var(--primary-blue-light);
  border-radius: 20px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.login-divider {
  height: 1px;
  background: #eee;
  margin: 40px 0;
}

.login-footer {
  text-align: center;
}

.login-footer a {
  color: var(--primary-green);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.login-footer a:hover { opacity: 0.7; }

/* ===== FORMS - matching main app ===== */
.form-group {
  margin-bottom: 32px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-family: var(--font-body);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input-code {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-family: 'Google Sans', monospace;
  font-weight: 500;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
}

/* ===== BUTTONS - matching main app ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.2);
}

.btn-primary:hover { 
  opacity: 0.95; 
  transform: translateY(-1px); 
}

.btn-success {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.2);
}

.btn-outline {
  background: var(--bg-white);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover { 
  border-color: var(--primary-green);
  background: var(--primary-green-light);
  color: var(--primary-green);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { 
  background: var(--bg-light); 
  color: var(--text-primary);
}

.btn-lg {
  padding: 20px 32px;
  font-size: 18px;
}

.btn-block { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* ===== CARDS - matching main app ===== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.stat-icon.blue { background: var(--primary-blue-light); }
.stat-icon.green { background: var(--primary-green-light); }
.stat-icon.amber { background: var(--warning-light); }
.stat-icon.blue { background: var(--primary-blue-light); }

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--text-primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== GRID ===== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== SIGN-OFF GRID ===== */
.signoff-toolbar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.signoff-toolbar select {
  min-width: 220px;
}

.signoff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.student-cell {
  padding: 16px 12px;
  border-radius: var(--radius-md);
  border: 2px solid;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.student-cell:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.student-cell.not-trained {
  background: var(--bg-light);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.student-cell.supervised {
  background: var(--warning-light);
  border-color: #fcd34d;
  color: #92400e;
}

.student-cell.independent {
  background: var(--success-light);
  border-color: #6ee7b7;
  color: var(--primary-green-hover);
}

.student-cell .label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.student-cell .status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.student-cell.changed {
  position: relative;
}

.student-cell.changed::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: var(--primary-blue);
  border-radius: 50%;
  border: 2px solid white;
}

/* ===== TOOL LIST ===== */
.tool-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

.tool-info { flex: 1; }
.tool-name { 
  font-family: var(--font-display);
  font-weight: 500; 
  color: var(--text-primary);
  font-size: 16px;
}
.tool-meta { 
  font-size: 14px; 
  color: var(--text-secondary);
  margin-top: 2px;
}

.tool-actions {
  display: flex;
  gap: 8px;
}

/* ===== STUDENT PIN BOOK ===== */
.student-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.student-header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-header .logo {
  width: 44px;
  height: 44px;
  background: var(--primary-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.student-header .info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}

.student-header .info p {
  font-size: 13px;
  opacity: 0.7;
}

.student-header .logout-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.student-header .logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.pin-stats {
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
  padding: 32px 24px;
}

.pin-stats h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pin-stats .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pin-stats .stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(10px);
}

.pin-stats .stat .number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: white;
}

.pin-stats .stat .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.pin-book {
  background: linear-gradient(135deg, #3d2e22 0%, #1a1410 100%);
  min-height: calc(100vh - 220px);
  padding: 32px 24px;
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pin-slot {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pin-slot:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.pin-slot.locked {
  opacity: 0.4;
  filter: grayscale(100%);
}

.pin-slot.supervised {
  opacity: 0.85;
  filter: saturate(80%);
}

.pin-slot.independent {
  opacity: 1;
}

.pin-slot.refresh-due {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
}

.pin-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.pin-slot.locked .pin-icon {
  background: #374151;
}

.pin-slot.supervised .pin-icon {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.pin-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: white;
  margin-bottom: 6px;
}

.pin-status {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.pin-slot.locked .pin-status {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.pin-slot.supervised .pin-status {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
}

.pin-slot.independent .pin-status {
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
}

.refresh-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #78350f;
  border: 3px solid #1a1410;
}

/* ===== QUIZ ===== */
.quiz-container {
  padding: 8px;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary-green);
  transition: width 0.3s;
}

.quiz-progress-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.quiz-question {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.quiz-question h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  background: white;
}

.quiz-option:hover {
  border-color: var(--text-muted);
  background: var(--bg-light);
}

.quiz-option.selected {
  border-color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.quiz-option.correct {
  border-color: var(--success);
  background: var(--success-light);
}

.quiz-option.incorrect {
  border-color: var(--danger);
  background: var(--danger-light);
}

.quiz-feedback {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
}

.quiz-feedback.correct {
  background: var(--success-light);
  color: var(--primary-green-hover);
}

.quiz-feedback.incorrect {
  background: var(--danger-light);
  color: #b91c1c;
}

.quiz-result {
  text-align: center;
  padding: 32px 24px;
}

.quiz-result-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 24px;
}

.quiz-result-icon.pass {
  background: var(--success-light);
}

.quiz-result-icon.fail {
  background: var(--warning-light);
}

.quiz-result h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.quiz-result p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.quiz-score {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.hidden { display: none !important; }

/* ===== PRINT ===== */
@media print {
  .no-print { display: none !important; }
  
  .print-card {
    page-break-inside: avoid;
    border: 2px solid #333;
    padding: 16px;
    margin: 8px;
    text-align: center;
  }
}

/* ===== RESPONSIVE ===== */

/* Tablet and below */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-header.flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .page-header.flex-between .btn {
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container { 
    padding: 20px 16px; 
  }
  
  .login-card { 
    padding: 32px 24px; 
    border-radius: 24px; 
  }
  
  /* Header */
  .header { 
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .header-brand {
    flex: 1;
    min-width: 0;
  }
  
  .header-title { 
    display: none; 
  }
  
  .header-logo {
    width: 36px;
    height: 36px;
  }
  
  /* Navigation - horizontal scroll on mobile */
  .header-nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  
  .nav-btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Page content */
  .page-header {
    margin-bottom: 24px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .page-subtitle {
    font-size: 14px;
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  /* Cards */
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .card-header {
    margin-bottom: 16px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  /* Forms */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-input {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .form-select {
    padding: 14px 16px;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .btn-primary, .btn-success {
    width: 100%;
  }
  
  /* Sign-off */
  .signoff-toolbar {
    flex-direction: column;
  }
  
  .signoff-toolbar select {
    width: 100%;
    min-width: unset;
  }
  
  .signoff-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }
  
  .student-cell {
    padding: 12px 8px;
  }
  
  .student-cell .label {
    font-size: 11px;
  }
  
  .student-cell .status {
    font-size: 9px;
  }
  
  /* Tools list */
  .tool-item {
    padding: 16px;
  }
  
  .tool-icon {
    width: 44px;
    height: 44px;
  }
  
  .tool-name {
    font-size: 15px;
  }
  
  /* Modals */
  .modal {
    padding: 16px;
    align-items: flex-end;
  }
  
  .modal-content {
    padding: 24px;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
  }
  
  /* Grids */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Flex utilities */
  .flex-between {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .flex.gap-3, .flex.gap-4 {
    flex-wrap: wrap;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
  
  .login-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  
  .header {
    padding: 10px 12px;
  }
  
  .nav-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .stats-grid {
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .stat-icon {
    margin: 0 auto;
  }
  
  .card {
    padding: 16px;
  }
  
  .signoff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .btn {
    padding: 14px 16px;
  }
}
