/* ==========================================================================
   CSS DESIGN SYSTEM & GENERAL RESETS
   ========================================================================== */
:root {
  /* Dynamic colors managed by theme.js */
  --primary-color: #01ABA8;
  --primary-hover: #008e8b;
  --accent-color: #e63946;
  --brand-gradient: linear-gradient(135deg, #01ABA8 0%, #007d7a 100%);
  --badge-gradient: radial-gradient(circle at top left, #01ABA8, #056664);

  /* Light theme variables (data-frugal, high readability) */
  --bg-color: #f6f8fb;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Status colors */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.app-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo-img {
  max-height: 40px; /* Constrain max-height to fit perfectly in header */
  max-width: 180px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.lang-selector {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.lang-btn .flag-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-btn.active, .lang-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(1, 171, 168, 0.35);
  transform: scale(1.08);
}

/* Top Sticky Navigation Bar */
.app-nav {
  position: sticky;
  top: 60px; /* Right below header */
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 20%;
  padding: 10px 0 6px 0;
  gap: 3px;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.nav-link svg {
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

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

.nav-link.active {
  border-bottom-color: var(--primary-color);
}

.nav-link.active svg {
  transform: scale(1.05);
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem 1rem; /* Normal padding, no bottom-bar space needed */
  position: relative;
}

.container {
  width: 100%;
}

.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   VIEW SCREENS (TABS)
   ========================================================================== */
.view-screen {
  display: none;
  width: 100%;
}

.view-screen.active {
  display: block;
}

/* ==========================================================================
   CARDS & COMMON UI ELEMENTS
   ========================================================================== */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
  width: 100%;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.875rem; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-primary {
  background-color: rgba(1, 171, 168, 0.1);
  color: var(--primary-color);
}

.badge-accent {
  background-color: rgba(230, 57, 70, 0.1);
  color: var(--accent-color);
}

.badge-neutral {
  background-color: #f1f5f9;
  color: var(--text-muted);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
}


/* Inputs & Form Controls */
.input-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.input-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  background-color: #fafbfc;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.input-group input:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(1, 171, 168, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: auto;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(1, 171, 168, 0.25);
}

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

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-dark:hover {
  background-color: #1e293b;
}

.btn-text {
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

/* Alerts and Messages */
.alert {
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  border-left: 4px solid transparent;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border-left-color: var(--color-danger);
}

.status-msg {
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.status-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-success {
  background-color: #d1fae5;
  color: #065f46;
}

/* ==========================================================================
   VIEW: LOGIN SCREEN
   ========================================================================== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.login-card {
  max-width: 420px;
}

.login-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   VIEW: WELCOME (START SEITE)
   ========================================================================== */
.welcome-banner {
  border-left: 6px solid var(--primary-color);
  background-color: var(--card-bg);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 460px) {
  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-item.card-link {
  color: var(--text-primary);
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.guide-item.card {
  margin-bottom: 0;
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ==========================================================================
   VIEW: DASHBOARD (WISSEN)
   ========================================================================== */
.dashboard-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.dashboard-section {
  margin-bottom: 2rem;
}

.section-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  user-select: none;
  transition: all 0.2s ease;
}

.section-title:hover {
  background-color: #f1f5f9;
  border-color: var(--primary-color);
}

.section-title svg {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.section-title.collapsed svg {
  transform: rotate(-90deg);
}

.dashboard-section.collapsed .dashboard-grid {
  display: none;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.article-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-card p {
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
  width: max-content;
}

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

.btn-download svg {
  transition: transform 0.2s ease;
}

.btn-download:hover svg {
  transform: translateY(2px);
}

/* ==========================================================================
   VIEW: QUIZ ENGINE
   ========================================================================== */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.quiz-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-card {
  margin-bottom: 1rem;
}

.quiz-question {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.quiz-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  position: relative;
  cursor: pointer;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(15, 23, 42, 0.75);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
  z-index: 2;
}

.quiz-image-container:hover .zoom-badge {
  transform: scale(1.1);
}

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

/* Option Buttons & Checkboxes */
.option-btn {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--card-bg);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background-color: rgba(1, 171, 168, 0.03);
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.checkbox-label {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--card-bg);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.checkbox-label:hover {
  border-color: var(--primary-color);
}

.checkbox-label input {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

.checkbox-label.disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.number-input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 1.25rem;
  text-align: center;
  background-color: #fafbfc;
}

.number-input:focus {
  border-color: var(--primary-color);
  background-color: white;
}

/* Correct / Wrong Styles */
.correct, input.correct {
  background-color: #d1fae5 !important;
  border-color: var(--color-success) !important;
  color: #065f46 !important;
  font-weight: 600;
}

.wrong, input.wrong {
  background-color: #fee2e2 !important;
  border-color: var(--color-danger) !important;
  color: #991b1b !important;
  text-decoration: line-through;
}

.missed {
  border-color: var(--color-success) !important;
  border-style: dashed !important;
  background-color: #ecfdf5 !important;
}

/* Quiz Selector */
.quiz-btn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-select-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.quiz-select-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.quiz-select-btn svg {
  transition: transform 0.2s ease;
}

.quiz-select-btn:hover svg {
  transform: translateX(4px);
}

/* Quiz Feedback Box */
.quiz-feedback {
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  animation: slideInDown 0.3s ease;
}

.correct-feedback {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.wrong-feedback {
  background-color: #fff5f5;
  border-color: #fecaca;
  color: #991b1b;
}

/* ==========================================================================
   VIEW: ID BADGE (AUSWEIS) - THEME HIGHLIGHT
   ========================================================================== */
.badge-card-container {
  perspective: 1000px;
  margin: 1rem 0;
}

/* Holographic animated card */
.badge-card {
  width: 310px;
  height: 460px;
  border-radius: 24px;
  background: var(--badge-gradient);
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-shadow: var(--shadow-lg), 
              0 0 30px rgba(0, 0, 0, 0.08), 
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: transform 0.1s ease;
  /* Premium glassmorphic look */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: pulseGradual 8s infinite alternate;
}

/* Dynamic Shimmer/Reflection overlay */
.badge-shimmer {
  position: absolute;
  top: 0;
  left: -150%;
  width: 300%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.2) 48%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 70%
  );
  transform: skewX(-15deg);
  animation: holographicSweep 6s infinite linear;
  pointer-events: none;
}

/* Chip/Security element on badge */
.badge-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #ffd700 0%, #cca300 100%);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  border: 1px solid rgba(0,0,0,0.1);
}

.badge-chip::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-logo {
  background: white;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  max-width: 140px;
  max-height: 44px;
  object-fit: contain;
}

.badge-body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge-name-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.75);
}

.badge-user-name {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
  line-height: 1.1;
}

.badge-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.badge-meta-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.badge-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pulsating level visual effect */
.badge-meta-value.glow-text {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--primary-color);
  animation: textPulse 2s infinite alternate;
}

.badge-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 14px;
}

.security-clock {
  display: flex;
  flex-direction: column;
  font-family: monospace;
}

.security-clock .date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.security-clock .time {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.security-seal {
  font-size: 0.6rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.2s ease 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

@keyframes textPulse {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.6), 0 0 10px var(--primary-color);
  }
  to {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px var(--primary-color), 0 0 35px var(--primary-color);
  }
}

@keyframes pulseGradual {
  from {
    box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.08);
  }
  to {
    box-shadow: var(--shadow-lg), 0 0 45px rgba(1, 171, 168, 0.25);
  }
}

@keyframes holographicSweep {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* ==========================================================================
   DESKTOP MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (min-width: 600px) {
  body {
    background-color: #f0f4f8;
  }
  
  .app-header {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    border-radius: 0;
  }

  .app-main {
    padding-bottom: 2rem;
  }

  /* Sticky top navigation header layout */
  .app-nav {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .nav-link {
    font-size: 0.78rem;
    padding: 12px 0 8px 0;
  }

  .badge-card {
    width: 320px;
    height: 480px;
    padding: 28px;
  }
}

/* ==========================================================================
   LIGHTBOX OVERLAY FOR IMAGES
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 200;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.25s ease-out;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #cbd5e1;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   CHECKLISTS SECTION (Phase 1.1)
   ========================================================================== */
.section-sub-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checklists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.checklist-card {
  border-left: 5px solid var(--border-color);
  transition: all 0.3s ease;
}

.checklist-card.completed {
  border-left-color: var(--color-success);
  background-color: rgba(16, 185, 129, 0.01);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.04);
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 10px;
}

.checklist-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.checklist-badge {
  background-color: #f1f5f9;
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.checklist-badge.done {
  background-color: var(--color-success);
  color: white;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.checklist-items-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-item-row:hover {
  background-color: #f1f5f9;
  border-color: var(--primary-color);
}

.checklist-item-row.active {
  background-color: rgba(16, 185, 129, 0.02);
}

.checklist-item-row input {
  margin-top: 3px;
  transform: scale(1.15);
  accent-color: var(--color-success);
  cursor: pointer;
}

.checklist-item-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.checklist-item-row input:checked + .checklist-item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}
