@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary-hue: 152;
  --primary-sat: 69%;
  --primary-lightness: 19%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-lightness));
  --primary-light: hsl(var(--primary-hue), var(--primary-sat), 96%);
  --primary-medium: hsl(var(--primary-hue), var(--primary-sat), 40%);
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), 14%);
  
  --accent-hue: 43;
  --accent-sat: 80%;
  --accent-lightness: 49%;
  --accent: hsl(var(--accent-hue), var(--accent-sat), var(--accent-lightness));
  --accent-hover: hsl(var(--accent-hue), var(--accent-sat), 42%);
  --accent-light: hsl(var(--accent-hue), var(--accent-sat), 94%);
  
  --dark-hue: 210;
  --dark-sat: 24%;
  --dark-lightness: 16%;
  --dark: hsl(var(--dark-hue), var(--dark-sat), var(--dark-lightness));
  --dark-light: hsl(var(--dark-hue), var(--dark-sat), 25%);
  
  --success: #198754;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #0dcaf0;
  
  --bg-app: #f4f7f6;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #2d3748;
  --text-muted: #718096;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --shadow-premium: 0 20px 25px -5px rgba(15, 81, 50, 0.05), 0 10px 10px -5px rgba(15, 81, 50, 0.02);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  font-weight: 700;
}

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

@keyframes pulseBorder {
  0% { box-shadow: 0 0 0 0 rgba(15, 81, 50, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(15, 81, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 81, 50, 0); }
}

@keyframes scanQr {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.fade-in-el {
  animation: fadeIn 0.4s ease forwards;
}

/* Layouts */
.public-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Landing Page Header */
.landing-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.landing-header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--accent);
}

.logo-text h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--primary);
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.landing-nav {
  display: flex;
  gap: 1.5rem;
}

.landing-nav-link {
  text-decoration: none;
  color: var(--dark-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.landing-nav-link:hover {
  color: var(--primary);
}

.landing-auth-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--primary);
}

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

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

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

.btn-danger:hover {
  background: hsl(354, 70%, 45%);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, hsl(152, 69%, 97%) 0%, hsl(43, 80%, 97%) 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--primary-medium) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(15, 81, 50, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-title span {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item h4 {
  font-size: 1.75rem;
  color: var(--primary);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Feature/Program Grid on Landing Page */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.program-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(15, 81, 50, 0.15);
}

.program-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  position: relative;
}

.program-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.program-title {
  color: white;
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.program-level {
  font-size: 0.8rem;
  opacity: 0.85;
}

.program-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-info-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.program-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.program-info-item i {
  color: var(--primary-medium);
  width: 18px;
}

.program-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.program-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* FAQ Layout */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

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

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px dashed var(--border-color);
  background: #fafafa;
}

/* Footer styling */
.landing-footer {
  background: var(--dark);
  color: #e2e8f0;
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-column p {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #4a5568;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* Auth Cards */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  position: relative;
}

.auth-sidebar {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.auth-sidebar::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
  filter: blur(50px);
}

.auth-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-sidebar-logo .logo-icon {
  background: white;
  color: var(--primary);
  border-color: var(--accent);
}

.auth-sidebar-logo h1 {
  color: white;
}

.auth-sidebar-body {
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.auth-sidebar-body h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.auth-sidebar-body p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

.auth-sidebar-footer {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.auth-form-container {
  flex: 1;
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
}

.auth-tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-smooth);
}

.auth-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--primary-medium);
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.form-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-link:hover {
  text-decoration: underline;
}

.oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

.oauth-divider::before, .oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.oauth-divider:not(:empty)::before {
  margin-right: .5em;
}

.oauth-divider:not(:empty)::after {
  margin-left: .5em;
}

.btn-google {
  background: white;
  border: 1px solid var(--border-color);
  color: var(--dark);
  width: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-google:hover {
  background: #f7fafc;
}

/* Dashboard Base Styles */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--dark);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  box-shadow: var(--shadow-lg);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.dashboard-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard-sidebar-header .logo-wrapper h1 {
  color: white;
}

.sidebar-user-card {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.02);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--accent);
}

.sidebar-user-info {
  overflow: hidden;
}

.sidebar-username {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sidebar-role-badge {
  font-size: 0.7rem;
  background: rgba(255, 193, 7, 0.15);
  color: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0.5rem;
  flex-grow: 1;
  overflow-y: auto;
}

.sidebar-menu-item {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.sidebar-link:hover, .sidebar-link.active {
  color: white;
  background: rgba(15, 81, 50, 0.25);
}

.sidebar-link.active {
  background: var(--primary);
  border-left: 3px solid var(--accent);
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--accent);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Dashboard Content Area */
.dashboard-main {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title h2 {
  font-size: 1.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.25rem;
}

.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid white;
}

.role-switcher-header {
  background: var(--primary-light);
  border: 1px solid rgba(15, 81, 50, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.role-switcher-select {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.dashboard-content {
  padding: 2rem;
  flex-grow: 1;
}

/* KPI Cards Layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.kpi-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.kpi-card:nth-child(even) .kpi-icon {
  background: var(--accent-light);
  color: var(--accent-hover);
}

/* Kanban Board style */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

.kanban-column {
  background: #edf2f7;
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 500px;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.kanban-column-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}

.kanban-column-count {
  background: var(--dark-light);
  color: white;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
}

.kanban-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kanban-card {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--text-muted);
  cursor: grab;
  transition: var(--transition-smooth);
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kanban-card.status-submitted { border-left-color: var(--info); }
.kanban-card.status-review { border-left-color: var(--warning); }
.kanban-card.status-accepted { border-left-color: var(--success); }
.kanban-card.status-rejected { border-left-color: var(--danger); }

.kanban-card-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.kanban-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.kanban-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 650px;
  overflow: hidden;
  animation: fadeIn 0.3s ease forwards;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  font-size: 1.2rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: white;
}

.modal-body {
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: #f7fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Form Stepper (Registration Wizard) */
.stepper-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.stepper-header::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.stepper-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

.stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.stepper-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.stepper-step.active .stepper-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.15);
}

.stepper-step.active .stepper-label {
  color: var(--primary);
}

.stepper-step.completed .stepper-circle {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* CBT Interface */
.cbt-app {
  background: #0f172a;
  min-height: 100vh;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}

.cbt-header {
  background: #1e293b;
  border-bottom: 1.5px solid #334155;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cbt-timer {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: #f87171;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cbt-timer.warning-flash {
  animation: pulseBorder 1s infinite;
}

.cbt-body-wrapper {
  flex-grow: 1;
  display: flex;
}

.cbt-questions-sidebar {
  width: 280px;
  background: #1e293b;
  border-right: 1.5px solid #334155;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cbt-grid-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.cbt-number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.cbt-num-btn {
  height: 40px;
  border-radius: var(--radius-sm);
  background: #334155;
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cbt-num-btn:hover {
  background: #475569;
}

.cbt-num-btn.current {
  background: var(--accent);
  color: var(--dark);
}

.cbt-num-btn.answered {
  background: var(--success);
  color: white;
}

.cbt-num-btn.flagged {
  background: var(--warning);
  color: var(--dark);
}

.cbt-content-pane {
  flex-grow: 1;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.cbt-card {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid #334155;
}

.cbt-question-text {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.cbt-option-item {
  background: #334155;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.cbt-option-item:hover {
  background: #475569;
}

.cbt-option-item.selected {
  background: rgba(15, 81, 50, 0.4);
  border-color: var(--primary-medium);
}

.cbt-option-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cbt-option-item.selected .cbt-option-marker {
  background: var(--accent);
  color: var(--dark);
}

.cbt-actions-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

/* Xendit QRIS Simulation Overlay */
.qris-overlay {
  background: #f7fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
}

.qris-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.qris-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a365d;
}

.qris-logo span {
  color: var(--danger);
}

.qris-xendit-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.qris-qr-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem auto;
  background: white;
  border: 2px solid var(--primary-medium);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.5rem;
}

.qris-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: scanQr 2.5s infinite linear;
}

.qris-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.qris-countdown {
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 600;
}

/* Discussion Board in Learning Room */
.discussion-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.discussion-input-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.discussion-post {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.post-author-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.post-author-role {
  font-size: 0.7rem;
  background: #edf2f7;
  color: var(--text-muted);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-sm);
}

.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-body {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.post-replies {
  border-left: 2.5px solid var(--border-color);
  padding-left: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Floating System Bar & Database Console */
.sys-debugger-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: white;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-size: 0.8rem;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.sys-db-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.sys-debugger-actions {
  display: flex;
  gap: 1rem;
}

.sys-badge-test {
  background: rgba(255, 193, 7, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Custom Table design */
.custom-table-container {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table th {
  background: #f7fafc;
  color: var(--dark);
  padding: 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: #fdfdfd;
}

.status-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

.status-pill.unpaid { background: rgba(220, 53, 69, 0.12); color: var(--danger); }
.status-pill.paid { background: rgba(25, 135, 84, 0.12); color: var(--success); }
.status-pill.active { background: rgba(25, 135, 84, 0.12); color: var(--success); }
.status-pill.completed { background: rgba(15, 81, 50, 0.12); color: var(--primary); }
.status-pill.scheduled { background: rgba(13, 202, 240, 0.12); color: #0284c7; }
.status-pill.ongoing { background: rgba(255, 193, 7, 0.15); color: #d97706; }
.status-pill.pending { background: rgba(255, 193, 7, 0.15); color: #d97706; }

/* Competence Radar & Analysis Layout */
.analysis-flex {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.analysis-chart-card {
  flex: 1.2;
  min-width: 320px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.analysis-details-card {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.competency-item {
  margin-bottom: 1.25rem;
}

.competency-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.competency-progress-bar {
  height: 8px;
  background: #edf2f7;
  border-radius: 4px;
  overflow: hidden;
}

.competency-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

.competency-progress-fill.weak { background: var(--danger); }
.competency-progress-fill.medium { background: var(--warning); }
.competency-progress-fill.strong { background: var(--success); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }
  
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
    width: 260px;
  }
  
  .dashboard-main {
    margin-left: 0;
  }
  
  .auth-page {
    flex-direction: column;
  }
  
  .auth-sidebar {
    padding: 2rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .kanban-board {
    grid-template-columns: 1fr;
  }
  
  .cbt-body-wrapper {
    flex-direction: column-reverse;
  }
  
  .cbt-questions-sidebar {
    width: 100%;
    border-right: none;
    border-top: 1.5px solid #334155;
  }
}
