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

:root {
  /* Colors (DESIGN.md) */
  --color-primary: #00a6a6;
  --color-primary-dark: #081f5b;
  --color-accent: #00a6a6;
  --color-cta: #f5c242;
  --color-cta-hover: #dfb038;
  
  --color-neutral-heading: #1F2937;
  --color-neutral-text: #6B7280;
  --color-neutral-light: #9CA3AF;
  --color-neutral-border: #E5E7EB;
  --color-neutral-bg: #F8FAFB;
  --color-neutral-surface: #FFFFFF;

  /* Typography */
  --font-sans: 'Poppins', ui-sans-serif, system-ui, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 20px 40px rgba(0,0,0,.06);
  --shadow-hero: 0 40px 80px rgba(0,0,0,.12);
  --shadow-btn: 0 10px 25px rgba(244,180,0,.20);

  /* Border Radius */
  --radius-btn: 14px;
  --radius-input: 12px;
  --radius-card: 24px;
  --radius-img: 28px;
  --radius-section: 36px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

input, button, select, textarea, label, span, p, a, h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-neutral-text);
  background-color: var(--color-neutral-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-neutral-heading);
}

.heading-1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.heading-2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.heading-3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-label, .eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

.text-body {
  font-size: 1.25rem; /* 20px */
  color: var(--color-neutral-text);
}

.text-small {
  font-size: 1rem; /* 16px */
  color: var(--color-neutral-text);
}

/* Layout Utilities */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-cta);
  color: #1F2937;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(244,180,0,.30);
}

.btn-secondary {
  background-color: var(--color-neutral-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-neutral-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: #F3F4F6;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--color-neutral-surface);
  color: var(--color-primary);
  transform: translateY(-4px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #141414;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-neutral-border);
  background-color: #F7F7F9;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #585857;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 166, 166, 0.2);
  background-color: var(--color-neutral-surface);
}

/* Language Switcher Button (Black Text with Animated Yellow Underline) */
.lang-btn {
  color: #000000 !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  position: relative;
  display: inline-block;
}

.lang-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #f5c24; /* mustard yellow from user */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}

.lang-btn.active::after {
  transform: scaleX(1);
}

/* Multi-Step Form Layout */
.split-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.split-left {
  flex: 1.2;
  background-color: var(--color-primary);
  color: var(--color-neutral-surface);
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-left h1, .split-left p {
  color: var(--color-neutral-surface);
  position: relative;
  z-index: 10;
}

.split-left h1 {
  color: var(--color-neutral-surface);
}

.split-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background-color: var(--color-neutral-surface);
}

.auth-form-container {
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.8s ease-out;
}

/* Ambient & Decorative Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
}
.ambient-orb-1 {
  top: -10%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(245, 194, 66, 0.15); /* CTA Yellow */
  animation: pulseOrb 8s infinite alternate ease-in-out;
}
.ambient-orb-2 {
  bottom: -20%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(8, 31, 91, 0.2); /* Primary Dark */
  animation: pulseOrb 12s infinite alternate-reverse ease-in-out;
}

/* Cards */
.card-hover {
  background-color: var(--color-neutral-surface);
  border: 1px solid var(--color-neutral-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.08);
}

/* Question Cards & Likert Scale */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.category-banner {
  background-color: var(--color-primary);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
  color: var(--color-neutral-surface);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.category-banner h2 {
  color: var(--color-neutral-surface);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.question-card {
  background-color: var(--color-neutral-surface);
  border: 1px solid var(--color-neutral-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.question-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.question-card.has-answered {
  border-color: rgba(0, 166, 166, 0.3); /* Teal tint */
  background-color: #f0fdfd;
}

.question-text {
  font-size: 1rem;
  font-weight: 600;
  color: #141414;
  line-height: 1.6;
  flex: 1;
}

/* Soft Likert Scale */
.responsive-likert-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 380px;
  flex-shrink: 0;
}

.likert-scale {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.likert-option {
  position: relative;
  flex: 1;
}

.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.likert-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background-color: var(--color-neutral-bg);
  color: var(--color-neutral-text);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--color-neutral-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.likert-option:hover .likert-label {
  background-color: #E8F5F5;
  color: var(--color-primary);
  border-color: rgba(0, 166, 166, 0.3);
  transform: translateY(-2px);
}

.likert-option input[type="radio"]:checked + .likert-label {
  background-color: var(--color-primary);
  color: var(--color-neutral-surface);
  border-color: var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 10px 20px -5px rgba(0, 166, 166, 0.4);
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 8px;
  background-color: var(--color-neutral-border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Admin Dashboard Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.admin-sidebar {
  background-color: var(--color-primary-dark);
  color: var(--color-neutral-surface);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-nav {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.admin-nav a:hover, .admin-nav a.active {
  color: var(--color-neutral-surface);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.admin-content {
  padding: 3rem;
  background-color: var(--color-neutral-bg);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Admin Data Table */
.table-container {
  background: var(--color-neutral-surface);
  border: 1px solid var(--color-neutral-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-neutral-border);
}

.data-table th {
  background-color: #F9FAFB;
  color: #374151;
  font-weight: 600;
  text-transform: none;
  font-size: 0.85rem;
  letter-spacing: normal;
}

.data-table tbody tr {
  transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
  background-color: #F3F4F6;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 9999px;
}

.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-warning { background-color: #fef3c7; color: #92400e; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--color-neutral-surface);
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}

.modal.active .modal-content {
  transform: translateY(0);
}

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

.modal-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-neutral-heading);
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-neutral-light);
  transition: color 0.3s ease;
  font-size: 1.5rem;
}

.close-btn:hover {
  color: var(--color-neutral-heading);
}

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


@keyframes pulseOrb {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.1) translate(20px, -20px); opacity: 1; }
}

/* Kuesioner App Header */
.app-header {
  background-color: var(--color-neutral-surface);
  padding: 0.55rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-neutral-border);
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.app-header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}
.app-header-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  margin: 0;
  letter-spacing: -0.01em;
}
.progress-header {
  background-color: var(--color-primary-dark);
  color: white;
  padding: 0.55rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(43, 34, 97, 0.15);
}
.progress-header-text {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 1-Column Horizontal Layout for Questionnaire on Laptops/Desktops */
@media (min-width: 993px) {
  .question-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .question-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1.5rem 2.25rem;
  }

  .question-text {
    font-size: 0.95rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 320px;
  }

  .responsive-likert-container {
    width: 400px;
    max-width: 45%;
    flex-shrink: 0;
    margin-top: 0;
  }
}

/* Responsive & Mobile Optimization */
@media (max-width: 992px) {
  .admin-layout { 
    grid-template-columns: minmax(0, 1fr); 
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .admin-sidebar,
  .admin-content { 
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .admin-sidebar { 
    padding: 1.25rem 1rem 0.5rem 1rem; 
  }
  .admin-sidebar > div:first-child {
    margin-bottom: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Horizontal scrollable nav on tablet/mobile */
  .admin-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
  }
  .admin-nav::-webkit-scrollbar { 
    display: none; 
  }
  .admin-nav li {
    margin-top: 0 !important;
    padding-top: 0 !important;
    flex-shrink: 0;
  }
  .admin-nav a {
    padding: 0.6rem 0.95rem;
    font-size: 0.82rem;
    gap: 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .admin-nav a.active {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
  }
  
  .admin-content { padding: 2rem 1.5rem; }
  .split-layout { flex-direction: column; }
  .split-left { padding: 3rem 2rem; }
  
  .question-card { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .responsive-likert-container { max-width: 100%; }
}

@media (max-width: 768px) {
  /* Auth Layout Adjustments */
  .split-left { padding: 2rem 1.5rem; }
  .split-left h1 { font-size: 2rem; }
  .split-right { padding: 2rem 1.5rem; }
  
  /* Questionnaire Layout Adjustments */
  /* Questionnaire Layout Adjustments */
  .app-header {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .app-header-left {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .app-header-right {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
  .app-header-title {
    font-size: 0.95rem;
  }
  .progress-header {
    flex-direction: column;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .progress-header-text {
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
  }
  
  .category-banner { padding: 0.75rem 1rem; margin-bottom: 1rem; border-radius: 10px; }
  .category-banner h2 { font-size: 1.05rem; }
  .main-content { 
    padding: 1.25rem 0.85rem; 
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .question-list { 
    gap: 1.25rem; 
    width: 100%;
    max-width: 100%;
  }
  .question-card { 
    padding: 1.25rem 1rem; 
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .question-text { 
    font-size: 0.94rem; 
    line-height: 1.5;
    margin-bottom: 0;
  }
  .responsive-likert-container {
    width: 100%;
    max-width: 100%;
  }
  
  /* Likert scale shrink for small screens */
  .likert-scale { 
    display: flex;
    gap: 0.35rem; 
    width: 100%;
    justify-content: space-between;
  }
  .likert-option {
    flex: 1;
  }
  .likert-label {
    height: 42px;
    font-size: 0.88rem;
    border-radius: 10px;
    width: 100%;
  }
  
  /* Modal Adjustments */
  .modal-content { 
    padding: 1.5rem; 
    margin: 1rem; 
    width: calc(100% - 2rem); 
    max-height: 85vh; 
    overflow-y: auto; 
  }
  
  /* Admin Content Adjustments for HP / Mobile */
  .admin-content { 
    padding: 1rem 0.75rem; 
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Responsive admin page title & action buttons on HP */
  .admin-content > div[style*="justify-content: space-between"],
  .admin-content .page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }
  .admin-content > div[style*="justify-content: space-between"] > div {
    width: 100%;
  }
  .admin-content > div[style*="justify-content: space-between"] button,
  .admin-content > div[style*="justify-content: space-between"] a.btn {
    width: 100% !important;
    justify-content: center !important;
  }
  
  /* Language switcher bar in admin */
  .admin-content > div[style*="justify-content: flex-end"] {
    margin-bottom: 0.75rem !important;
  }
  
  /* Admin Data Table responsiveness on HP */
  .table-container { 
    border-radius: 12px; 
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    display: block;
  }
  .data-table {
    min-width: 580px;
    width: 100%;
  }
  .data-table th, 
  .data-table td { 
    padding: 0.75rem 0.85rem; 
    font-size: 0.8rem; 
    white-space: nowrap;
  }
  .data-table td.wrap-text,
  .data-table td:nth-child(2) {
    white-space: normal;
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .app-header {
    padding: 0.5rem 0.75rem;
  }
  .app-header-title {
    font-size: 0.9rem;
  }
  .main-content {
    padding: 1rem 0.75rem;
  }
  .question-card {
    padding: 1rem 0.85rem;
    gap: 1rem;
  }
  .question-text {
    font-size: 0.88rem;
  }
  .likert-label {
    height: 38px;
    font-size: 0.8rem;
  }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.85rem; }
  .form-control { padding: 0.6rem 0.8rem; font-size: 0.85rem; }
  .heading-1 { font-size: 1.5rem; }
  .admin-content { padding: 1rem 0.75rem; }
  .admin-nav a { padding: 0.55rem 0.85rem; font-size: 0.78rem; }
}

/* Question Card Active State */
.question-card.active-question {
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 166, 166, 0.15);
  transform: translateY(-2px);
}

/* Admin Typography Normalization (Proper EYD, No Capslock, Readable Weights) */
.admin-sidebar, .admin-content {
  font-weight: 400;
}

.admin-sidebar .eyebrow,
.admin-content .eyebrow,
.admin-content .section-label {
  text-transform: none !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
}

.admin-content h1,
.admin-content h2,
.admin-content h3,
.admin-content h4 {
  text-transform: none !important;
  font-weight: 700 !important;
}

.data-table td {
  font-weight: 400 !important;
}

.data-table td div,
.data-table td span:not(.badge),
.data-table td a {
  font-weight: 500 !important;
}

/* Ensure Poppins font is enforced everywhere in Admin and Modals */
.admin-layout,
.admin-sidebar,
.admin-sidebar *,
.admin-content,
.admin-content *,
.data-table,
.data-table *,
.modal,
.modal * {
  font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif !important;
}

/* Custom Language Dropdown with SVG Flags (Works 100% on Windows & mobile) */
.lang-dropdown {
  position: relative;
  display: inline-block;
  text-align: left;
}
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: var(--color-neutral-surface);
  border: 1.5px solid var(--color-neutral-border);
  border-radius: 6px;
  color: var(--color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-dropdown-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-neutral-bg);
}
.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.35rem;
  min-width: 160px;
  background: var(--color-neutral-surface);
  border: 1px solid var(--color-neutral-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}
.lang-dropdown-menu.show {
  display: block;
}
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.lang-dropdown-item:hover {
  background: var(--color-neutral-bg);
  color: var(--color-primary);
}
.lang-dropdown-item.active {
  background: rgba(43, 34, 97, 0.08);
  font-weight: 800;
}
.lang-dropdown.dark-theme .lang-dropdown-btn {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}
.lang-dropdown.dark-theme .lang-dropdown-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Responsive Modals for Small Screen Heights & Zoomed Views */
@media (max-height: 800px), (max-width: 640px) {
  .modal {
    padding: 1rem;
  }
  .modal-content {
    max-height: 85vh;
    padding: 1.5rem 1.5rem;
    overflow-y: auto;
  }
  .modal-header {
    margin-bottom: 1rem;
  }
  .modal-content .form-group {
    margin-bottom: 0.85rem !important;
  }
}

/* =========================================================
   STYLING UNTUK PERINGATAN SOAL BELUM TERJAWAB (ERROR STATE)
   ========================================================= */
.question-card.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 10px 25px -5px rgba(239, 68, 68, 0.12) !important;
  background: linear-gradient(to right, rgba(254, 242, 242, 0.65), transparent) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .question-card.has-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25), 0 10px 25px -5px rgba(248, 113, 113, 0.15) !important;
  background: linear-gradient(to right, rgba(127, 29, 29, 0.25), transparent) !important;
}

/* Peringatan Singkat dan Kecil di Bawah Soal */
.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  width: 100%;
}

[data-theme="dark"] .error-msg {
  color: #f87171;
}

@keyframes shakeCardError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

