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

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --secondary: #27ae60;
  --accent: #f39c12;
  --danger: #e74c3c;
  --dark: #1e293b;
  --light: #f1f5f9;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a5276 100%);
  color: var(--white);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.partner-logo {
  height: 45px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(1.1);
  transition: transform 0.2s, filter 0.2s;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  padding: 4px;
}

.partner-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.emblem-logo {
  height: 50px;
  max-width: 50px;
  border-radius: 50%;
}

.badmaal-logo {
  height: 36px;
  max-width: 140px;
  border-radius: 8px;
}

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

header nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

header nav a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

header nav a.active {
  color: white;
  background: rgba(255,255,255,0.15);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 20px;
}

/* Horizontal scroll for module content */
.lesson-content {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding-bottom: 10px;
  height: calc(100vh - 100px);
}

.lesson-content::-webkit-scrollbar {
  height: 6px;
}

.lesson-content::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 3px;
}

.lesson-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.lesson-content > .card {
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  margin-bottom: 0;
  overflow-y: auto;
  max-height: 100%;
}

.module-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 10px;
}

.module-nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 10px 20px;
}

.module-nav-info {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
}

.card-header {
  border-bottom: 2px solid var(--light);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.card-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-success {
  background: var(--secondary);
  color: var(--white);
}

.btn-success:hover {
  background: #219a52;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.welcome-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Module Cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.module-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: transform 0.3s;
  border-left: 4px solid var(--primary);
}

.module-card:hover {
  transform: translateY(-5px);
}

.module-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.module-card p {
  color: var(--gray);
  margin-bottom: 15px;
}

.module-card .module-number {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Progress Bar */
.progress-bar {
  background: var(--gray-light);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar-fill {
  background: var(--secondary);
  height: 100%;
  transition: width 0.5s;
  border-radius: 10px;
}

/* Lesson Content */
.lesson-content {
  line-height: 1.8;
}

.lesson-content h3 {
  color: var(--primary);
  margin: 25px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}

.lesson-content h4 {
  color: var(--dark);
  margin: 20px 0 10px;
}

.lesson-content p {
  margin-bottom: 15px;
}

.lesson-content ul,
.lesson-content ol {
  margin: 15px 0 15px 30px;
}

.lesson-content li {
  margin-bottom: 8px;
}

.lesson-content .highlight {
  background: #fef9e7;
  border-left: 4px solid var(--accent);
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.lesson-content .important {
  background: #fdedec;
  border-left: 4px solid var(--danger);
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Quiz */
.quiz-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 20px;
}

.quiz-question {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--light);
}

.quiz-question:last-child {
  border-bottom: none;
}

.quiz-question h4 {
  margin-bottom: 15px;
  color: var(--dark);
}

.quiz-options label {
  display: block;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: var(--light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.quiz-options label:hover {
  background: var(--gray-light);
}

.quiz-options input[type="radio"] {
  margin-right: 10px;
}

.quiz-result {
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
}

.quiz-result.pass {
  background: #d5f5e3;
  color: #1e8449;
}

.quiz-result.fail {
  background: #fdedec;
  color: #c0392b;
}

/* Sidebar Navigation */
.module-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

.sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 20px;
  height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar h3 {
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}

.sidebar-nav a {
  display: block;
  padding: 10px 15px;
  color: var(--dark);
  text-decoration: none;
  border-radius: var(--radius);
  margin-bottom: 5px;
  transition: all 0.3s;
}

.sidebar-nav a:hover {
  background: var(--light);
}

.sidebar-nav a.active {
  background: var(--primary);
  color: var(--white);
}

.sidebar-nav a.completed::before {
  content: "✓ ";
  color: var(--secondary);
}

/* Assessment */
.assessment-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  text-align: center;
}

.assessment-header h1 {
  margin-bottom: 10px;
}

.assessment-header p {
  opacity: 0.9;
}

/* Certificate */
.certificate-container {
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 50px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.certificate-container h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 10px;
}

.certificate-container .subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.certificate-container .recipient {
  font-size: 1.8rem;
  color: var(--dark);
  font-weight: 700;
  margin: 20px 0;
  padding: 15px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.certificate-container .date {
  color: var(--gray);
  margin-top: 20px;
}

.certificate-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Admin Dashboard */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .stat-label {
  color: var(--gray);
  margin-top: 5px;
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--light);
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

tr:hover {
  background: var(--light);
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.completed {
  background: #d5f5e3;
  color: #1e8449;
}

.status-badge.in-progress {
  background: #fef9e7;
  color: #d4ac0d;
}

.status-badge.not-started {
  background: #fdedec;
  color: #c0392b;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.alert-success {
  background: #d5f5e3;
  color: #1e8449;
  border: 1px solid #27ae60;
}

.alert-danger {
  background: #fdedec;
  color: #c0392b;
  border: 1px solid #e74c3c;
}

.alert-warning {
  background: #fef9e7;
  color: #7d6608;
  border: 1px solid #f39c12;
}

/* Footer */
footer {
  background: #0f172a;
  color: var(--gray-light);
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .module-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .lesson-content {
    height: calc(100vh - 200px);
  }

  header .container {
    height: auto;
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo img {
    height: 32px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-text small {
    font-size: 0.6rem;
  }

  .partner-logos {
    display: none;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  header nav a {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .welcome-section h1 {
    font-size: 1.8rem;
  }

  .certificate-container {
    padding: 30px 20px;
  }

  .certificate-actions {
    flex-direction: column;
  }
}

/* Course Evaluation */
.evaluation-form {
  margin-top: 16px;
}

.evaluation-form h4 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
}

.eval-item {
  margin-bottom: 16px;
}

.eval-item label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.eval-rating {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.eval-rating:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

.eval-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.eval-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

.eval-textarea::placeholder {
  color: var(--gray);
}

/* Downloadable Learner Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 24px 18px 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(26, 82, 118, 0.12);
  border-color: var(--primary-light);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  font-size: 1.5rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 82, 118, 0.08), rgba(41, 128, 185, 0.08));
  border-radius: 14px;
  color: var(--primary);
  transition: background 0.25s ease, transform 0.25s ease;
}

.tool-card:hover .tool-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  transform: scale(1.08);
}

.tool-card h4 {
  font-size: 0.88rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.3em;
}

.tool-card p {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.45;
  flex: 1;
  margin: 0;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.8rem;
  border-radius: 8px;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

/* Responsive: Downloadable Tools */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tool-card {
    padding: 20px 14px 16px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-card {
    flex-direction: row;
    text-align: left;
    padding: 14px 16px;
    gap: 14px;
  }

  .tool-card::before {
    height: 100%;
    width: 3px;
    top: 0;
    left: 0;
    right: auto;
  }

  .tool-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .tool-card h4 {
    font-size: 0.85rem;
    min-height: auto;
  }

  .tool-card p {
    font-size: 0.75rem;
    margin: 0;
  }

  .tool-card .btn-sm {
    margin-top: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}

/* Post-Training Assignment */
.assignment-content {
  margin-top: 16px;
}

.assignment-content > h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.assignment-content > p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.assignment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.assignment-field label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.assignment-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.assignment-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

.assignment-input::placeholder {
  color: var(--gray);
}

/* Responsive: Course Evaluation, Assignment (mobile overrides) */
@media (max-width: 480px) {
  .eval-rating,
  .eval-textarea,
  .assignment-input {
    font-size: 16px;
  }

  .evaluation-form h4 {
    font-size: 0.95rem;
  }
}

/* Module 1: Course Evaluation (Radio-based) */
.eval-group {
  margin-bottom: 20px;
}

.eval-group > label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.rating-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rating-scale label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--light);
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--dark);
  transition: all 0.2s;
  flex: 1;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

.rating-scale label:hover {
  border-color: var(--primary-light);
  background: rgba(41, 128, 185, 0.06);
}

.rating-scale input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.rating-scale input[type="radio"]:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.rating-scale label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(26, 82, 118, 0.08);
}

.eval-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.eval-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

.eval-group textarea::placeholder {
  color: var(--gray);
}

/* Module 1: Downloadable Tools (Card-based) */
.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.download-card:last-child {
  margin-bottom: 0;
}

.download-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.download-info {
  flex: 1;
  min-width: 0;
}

.download-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.download-info p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.4;
  margin: 0;
}

/* Module 1: Post-Training Assignment (Table-based) */
.assignment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}

.assignment-table tr:nth-child(even) {
  background: #f8fafc;
}

.assignment-table tr:hover {
  background: rgba(26, 82, 118, 0.04);
}

.assignment-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
  font-size: 0.9rem;
}

.assignment-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  width: 220px;
  white-space: nowrap;
}

.assignment-table td:last-child {
  width: auto;
}

.assignment-table input[type="text"],
.assignment-table textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--dark);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.assignment-table input[type="text"]:focus,
.assignment-table textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

.assignment-table input::placeholder,
.assignment-table textarea::placeholder {
  color: var(--gray);
}

.assignment-table textarea {
  resize: vertical;
  min-height: 60px;
}

.assignment-table tr:last-child td {
  border-bottom: none;
}

/* Responsive: Module 1 Evaluation, Tools, Assignment */
@media (max-width: 768px) {
  .rating-scale {
    gap: 5px;
  }

  .rating-scale label {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .assignment-table td:first-child {
    width: auto;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .rating-scale {
    flex-direction: column;
  }

  .rating-scale label {
    justify-content: flex-start;
    padding: 10px 14px;
  }

  .assignment-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .assignment-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .assignment-table input[type="text"],
  .assignment-table textarea {
    font-size: 16px;
  }

  .download-card {
    padding: 14px;
    gap: 12px;
  }

  .download-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .download-info h5 {
    font-size: 0.88rem;
  }

  .download-info p {
    font-size: 0.78rem;
  }
}

/* Module Selection (Registration & Admin) */
.module-select-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.module-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--light);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.module-checkbox:hover {
  border-color: var(--primary-light);
  background: rgba(41, 128, 185, 0.04);
}

.module-checkbox:has(input:checked) {
  border-color: var(--primary);
  background: rgba(26, 82, 118, 0.06);
}

.module-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.module-checkbox-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.module-checkbox-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.module-checkbox-content strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.module-checkbox-content small {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.3;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* Tab Navigation */
.tab-navigation {
  flex-wrap: wrap;
}

.tab-btn {
  min-width: 100px;
}

/* Mobile Enhancements */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 15px;
    border-radius: 10px;
  }

  header .container {
    padding: 10px 16px;
  }

  .logo img {
    height: 28px;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .logo-text small {
    font-size: 0.55rem;
  }

  header nav {
    gap: 2px;
  }

  header nav a {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  .welcome-section {
    padding: 30px 15px;
  }

  .welcome-section h1 {
    font-size: 1.5rem;
  }

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

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card .stat-number {
    font-size: 1.8rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 10px 8px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .certificate-details {
    flex-direction: column;
    gap: 15px;
  }

  .tab-navigation {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }
}
