/**
 * style.css - Cổng thông tin Phong trào thi đua “Sáng kiến mỗi ngày” trong ngành Công Thương năm 2026 &
 * Cuộc thi “Nhóm giải pháp Đổi mới sáng tạo - Chuyển đổi số ngành Công Thương”
 *
 * HỆ THỐNG THIẾT KẾ UI/UX CHUẨN BACKDROP LỄ PHÁT ĐỘNG 2026 (ROYAL TECH BLUE & ELECTRIC CYAN & GOLD):
 * 1. Bảng màu nhận diện theo Backdrop:
 *    - Xanh Hoàng Gia / Cobalt Chủ đạo: #091B5A / #17379E / #1D4ED8
 *    - Xanh Ánh Sáng Công Nghệ (Electric Cyan): #00D2FF / #38BDF8
 *    - Vàng Ánh Kim Điểm Nhấn (Amber Gold): #F59E0B / #FFE066
 *    - Nền Xanh Băng Sáng (Ice Blue Surface): #F0F6FF / #EFF6FF / #FFFFFF
 * 2. Quy chuẩn Typography nghiêm ngặt:
 *    - Font-size nhỏ nhất toàn trang = 14px (0.875rem). Tuyệt đối không có chữ < 14px.
 *    - Line-height đồng nhất = 1.5 trên toàn bộ phần tử.
 * 3. Mọi chỉ báo tiến trình đang chạy bắt buộc là hình tròn (border-radius: 50% !important).
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --tcct-primary-deep: #091b5a;
  --tcct-primary: #17379e;
  --tcct-primary-bright: #1d4ed8;
  --tcct-cyan: #00d2ff;
  --tcct-gold: #f59e0b;
  --tcct-gold-light: #ffe066;

  /* Mapped legacy tokens to Royal Tech Blue & Ice Blue */
  --tcct-red: #17379e;
  --tcct-red-hover: #091b5a;
  --tcct-red-soft: #eff6ff;
  --tcct-text-main: #0f172a;
  --tcct-text-body: #334155;
  --tcct-text-muted: #64748b;
  --tcct-grey-200: #dbeafe;
  --tcct-grey-100: #f0f6ff;
  --tcct-white: #ffffff;

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. GLOBAL UNIFIED LINE-HEIGHT 1.5 & MIN FONT-SIZE 14PX
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  line-height: 1.5 !important;
}

/* Automatic Royal Tech Blue & Ice Blue overrides for utility classes across all views */
.bg-\[\#E11D24\],
.bg-\[\#17379E\] {
  background: linear-gradient(90deg, #091b5a 0%, #17379e 55%, #1d4ed8 100%) !important;
}
.text-\[\#E11D24\],
.text-\[\#17379E\] {
  color: #17379e !important;
}
.hover\:text-\[\#E11D24\]:hover,
.hover\:text-\[\#17379E\]:hover,
.group:hover .group-hover\:text-\[\#E11D24\],
.group:hover .group-hover\:text-\[\#17379E\] {
  color: #1d4ed8 !important;
}
.bg-\[\#FEF2F2\],
.bg-\[\#EFF6FF\],
.hover\:bg-\[\#FEF2F2\]:hover,
.hover\:bg-\[\#EFF6FF\]:hover {
  background-color: #eff6ff !important;
}
.bg-\[\#F4F4F6\],
.bg-\[\#F0F6FF\] {
  background-color: #f0f6ff !important;
}
.selection\:bg-\[\#E11D24\] *::selection,
.selection\:bg-\[\#E11D24\]::selection,
.selection\:bg-\[\#17379E\] *::selection,
.selection\:bg-\[\#17379E\]::selection {
  background-color: #17379e !important;
  color: #ffffff !important;
}
.focus\:bg-\[\#E11D24\]:focus,
.focus\:bg-\[\#17379E\]:focus {
  background-color: #17379e !important;
}

html {
  scroll-behavior: smooth;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5 !important;
  color: var(--tcct-text-main);
  background-color: var(--tcct-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5 !important;
  background-color: var(--tcct-white);
  color: var(--tcct-text-main);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--tcct-text-main);
  letter-spacing: -0.015em;
  line-height: 1.5 !important;
  margin: 0;
  text-wrap: pretty;
}

p, li, dd, dt, blockquote {
  line-height: 1.5 !important;
  text-wrap: pretty;
}

.display-title {
  font-size: clamp(1.625rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.5 !important;
  text-wrap: pretty;
}

.section-heading {
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.5 !important;
  text-wrap: pretty;
}

/* Prevent any utility class from ever dropping below 14px (0.875rem) */
.text-xs,
small {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

/* ==========================================================================
   2. SCROLL PROGRESS LINE & CIRCULAR INDICATORS
   ========================================================================== */
#tcct-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background-color: rgba(23, 55, 158, 0.14);
  pointer-events: none;
}

#tcct-scroll-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #17379e 0%, #00d2ff 50%, #f59e0b 100%);
  transition: width 0.08s linear;
}

.sk-circular-pulse,
.sk-circular-dot,
.sk-circular-spinner,
.tcct-circular-spinner,
.pulse-dot {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  display: inline-block;
  flex-shrink: 0;
}

.sk-circular-pulse,
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--tcct-red);
  position: relative;
}

.sk-circular-pulse::after,
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50% !important;
  background-color: rgba(23, 55, 158, 0.3);
  animation: tcctCircularPulse 1.8s infinite var(--ease-expo);
}

.sk-circular-pulse-white {
  background-color: #ffffff;
}

.sk-circular-pulse-white::after {
  background-color: rgba(255, 255, 255, 0.4);
}

.tcct-circular-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, transparent 20%, #ffffff 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: tcctSpin 0.8s linear infinite;
}

.tcct-circular-spinner-red {
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, transparent 20%, #17379e 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: tcctSpin 0.8s linear infinite;
}

@keyframes tcctSpin {
  to { transform: rotate(360deg); }
}

@keyframes tcctCircularPulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  75% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* ==========================================================================
   3. MINIMAL EDITORIAL HEADER & MOBILE DRAWER MENU
   ========================================================================== */
.tcct-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.3s var(--ease-editorial), background-color 0.3s ease;
}

.tcct-header.is-scrolled {
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.07);
}

.tcct-header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .tcct-header-logo {
    height: 36px;
  }
}

.tcct-menubar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tcct-menubar-link:hover,
.tcct-menubar-link.active {
  background-color: rgba(0, 0, 0, 0.16);
  color: #ffffff;
}

.tcct-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tcct-text-body);
  text-decoration: none;
  border-radius: 9999px;
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.tcct-nav-link:hover {
  color: var(--tcct-red);
  background-color: var(--tcct-grey-100);
}

.tcct-nav-link.active {
  color: var(--tcct-red);
  background-color: var(--tcct-red-soft);
}

/* Buttons - Minimum 44px touch target height, >= 14px font-size, line-height 1.5, NEVER wrap text */
.tcct-btn-red,
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: nowrap !important;
  flex-shrink: 0;
  background-color: var(--tcct-red);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-editorial), background-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
  .tcct-btn-red,
  .btn-red {
    font-size: 0.9375rem;
    padding: 0.7rem 1.45rem;
  }
}

.tcct-btn-red:hover,
.btn-red:hover {
  background-color: var(--tcct-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -6px rgba(23, 55, 158, 0.35);
}

.tcct-btn-red:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.tcct-btn-grey,
.tcct-btn-dark,
.btn-charcoal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: nowrap !important;
  flex-shrink: 0;
  background-color: var(--tcct-grey-100);
  color: var(--tcct-text-main) !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-editorial), background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 640px) {
  .tcct-btn-grey,
  .tcct-btn-dark,
  .btn-charcoal {
    font-size: 0.9375rem;
    padding: 0.7rem 1.45rem;
  }
}

.tcct-btn-grey:hover,
.tcct-btn-dark:hover,
.btn-charcoal:hover {
  background-color: var(--tcct-red-soft);
  color: var(--tcct-red) !important;
  transform: translateY(-1px);
}

.tcct-btn-white,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: nowrap !important;
  flex-shrink: 0;
  background-color: #ffffff;
  color: var(--tcct-red) !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-editorial), background-color 0.25s ease;
}

.tcct-btn-white:hover,
.btn-white:hover {
  background-color: var(--tcct-red-soft);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. EDITORIAL SCROLLYTELLING & CURTAIN MOTION SYSTEM
   ========================================================================== */
.curtain-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.65s var(--ease-editorial), transform 0.65s var(--ease-editorial);
  will-change: opacity, transform;
}

.curtain-reveal.is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.motion-stagger > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s var(--ease-editorial), transform 0.55s var(--ease-editorial);
}

.motion-stagger.is-inview > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(4) { transition-delay: 0.22s; opacity: 1; transform: translate3d(0, 0, 0); }
.motion-stagger.is-inview > *:nth-child(n+5) { transition-delay: 0.28s; opacity: 1; transform: translate3d(0, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .curtain-reveal,
  .motion-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Pinned Split-Screen Scrollytelling */
.pinned-split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pinned-split-section > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .pinned-split-section {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.75rem;
  }
  .pinned-left-panel {
    position: sticky;
    top: 5.5rem;
  }
}

.scrolly-chapter-index,
.chapter-number {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tcct-red);
  transition: transform 0.35s var(--ease-editorial), opacity 0.3s ease;
}

.scrolly-nav-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tcct-text-body);
  background-color: transparent;
  transition: all 0.28s var(--ease-editorial);
  text-decoration: none;
}

.scrolly-nav-pill.active {
  background-color: var(--tcct-red);
  color: #ffffff;
  transform: translateX(4px);
}

.scrolly-nav-pill.active .scrolly-dot {
  background-color: #ffffff;
}

/* ==========================================================================
   5. FLAT SURFACES & EDITORIAL ITEMS (MOBILE-FIRST PADDING, ZERO DARK)
   ========================================================================== */
.surface-white,
.editorial-plane-white {
  background-color: var(--tcct-white);
  color: var(--tcct-text-main);
}

.surface-grey,
.editorial-plane-grey,
.editorial-plane-dark,
.surface-charcoal {
  background-color: var(--tcct-grey-100);
  color: var(--tcct-text-main);
}

.surface-red,
.editorial-plane-red {
  background-color: var(--tcct-red);
  color: #ffffff;
}

.editorial-plane-white,
.editorial-plane-grey,
.editorial-plane-dark,
.editorial-plane-red {
  border-radius: 1rem;
  padding: 1.125rem;
}

@media (min-width: 640px) {
  .editorial-plane-white,
  .editorial-plane-grey,
  .editorial-plane-dark,
  .editorial-plane-red {
    border-radius: 1.25rem;
    padding: 1.85rem;
  }
}

.editorial-item {
  padding: 1rem 1.125rem;
  border-radius: 0.95rem;
  background-color: var(--tcct-grey-100);
  transition: transform 0.28s var(--ease-editorial), background-color 0.25s ease;
}

@media (min-width: 640px) {
  .editorial-item {
    padding: 1.25rem 1.5rem;
    border-radius: 1.1rem;
  }
}

@media (max-width: 639px) {
  .editorial-plane-white .editorial-item,
  .editorial-plane-grey .editorial-item {
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
  }
}

.editorial-item:hover {
  transform: translateX(3px);
  background-color: var(--tcct-red-soft);
}

.editorial-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--tcct-red);
  background-color: var(--tcct-red-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ==========================================================================
   6. SLIDING PILL TAB SWITCHER (FOR 3 FORMS)
   ========================================================================== */
.sliding-tabs-bar {
  position: relative;
  display: grid;
  background-color: var(--tcct-grey-100);
  padding: 0.35rem;
  border-radius: 1rem;
  gap: 0.35rem;
}

.sliding-tab-btn {
  position: relative;
  z-index: 2;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  color: var(--tcct-text-body);
  font-size: 0.875rem;
  transition: background-color 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial);
}

@media (min-width: 640px) {
  .sliding-tab-btn {
    padding: 1rem 1.2rem;
  }
}

.sliding-tab-btn.active {
  background: linear-gradient(135deg, #091b5a 0%, #17379e 60%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(23, 55, 158, 0.35);
}

.sliding-tab-btn:not(.active):hover {
  background-color: var(--tcct-white);
  color: var(--tcct-text-main);
}

/* ==========================================================================
   7. FORM INPUTS & BADGES (MIN 14PX, NO TEXT DROP IN PILLS)
   ========================================================================== */
.tcct-input,
.tcct-select,
.tcct-textarea {
  width: 100%;
  background-color: var(--tcct-grey-100);
  color: var(--tcct-text-main);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tcct-input:focus,
.tcct-select:focus,
.tcct-textarea:focus {
  background-color: var(--tcct-white);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.tcct-input-white {
  background-color: var(--tcct-white);
}

.tcct-otp-input {
  width: 100%;
  background-color: var(--tcct-grey-100);
  color: var(--tcct-red);
  border-radius: 1rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.tcct-otp-input:focus {
  background-color: var(--tcct-white);
  box-shadow: 0 0 0 3px rgba(23, 55, 158, 0.24);
}

/* Tag / Badge: Strictly >= 14px (0.875rem), flex aligned, never wraps dot onto text */
.tcct-tag,
.editorial-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--tcct-red-soft);
  color: var(--tcct-red);
  max-width: 100%;
}

.tcct-tag-red {
  background-color: var(--tcct-red-soft);
  color: var(--tcct-red);
}

.tcct-tag-dark,
.tcct-tag-grey {
  background-color: var(--tcct-grey-100);
  color: var(--tcct-text-body);
}

/* ==========================================================================
   8. HERO SLIDESHOW (HIGH VIEWPORT, COVER + CENTER) & INTRO MEDIA FRAME
   ========================================================================== */
.tcct-hero-viewport {
  position: relative;
  width: 100%;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  background: radial-gradient(circle at 25% 30%, #1d4ed8 0%, #102b84 45%, #06133b 100%);
}

@media (min-width: 640px) {
  .tcct-hero-viewport {
    height: 450px;
    min-height: 450px;
    max-height: 450px;
  }
}

@media (min-width: 1024px) {
  .tcct-hero-viewport {
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }
}

@media (min-width: 1280px) {
  .tcct-hero-viewport {
    height: 660px;
    min-height: 660px;
    max-height: 660px;
  }
}

.tcct-hero-viewport .hero-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.tcct-hero-viewport .hero-slide-item img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.tcct-intro-media-box {
  position: relative;
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #091b5a 0%, #17379e 100%);
}

@media (min-width: 640px) {
  .tcct-intro-media-box {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    border-radius: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tcct-intro-media-box {
    height: 350px;
    min-height: 350px;
    max-height: 350px;
  }
  .intro-tab-panel {
    min-height: 360px;
  }
}

.tcct-intro-media-box img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* ==========================================================================
   9. 2-TASK GATEWAY CARDS & HYBRID FORM UPLOADER (ONLINE vs PDF UPLOAD)
   ========================================================================== */
.tcct-task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 14px -4px rgba(9, 27, 90, 0.06);
  cursor: pointer;
  transition: all 0.28s var(--ease-editorial);
}

@media (min-width: 640px) {
  .tcct-task-card {
    padding: 1.5rem 1.75rem;
    border-radius: 1.15rem;
  }
}

.tcct-task-card:hover {
  box-shadow: 0 12px 28px -8px rgba(23, 55, 158, 0.15);
  transform: translateY(-2px);
}

.tcct-task-card.active {
  background: linear-gradient(135deg, #091b5a 0%, #17379e 58%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px -8px rgba(9, 27, 90, 0.35);
}

.tcct-task-card.active .tcct-task-badge {
  background-color: rgba(255, 224, 102, 0.2);
  color: #ffe066;
}

.tcct-task-card:not(.active) .tcct-task-badge {
  background-color: #eff6ff;
  color: #17379e;
}

.tcct-task-card.active .tcct-task-desc,
.tcct-task-card.active .tcct-task-meta {
  color: rgba(255, 255, 255, 0.9);
}

.tcct-task-card:not(.active) .tcct-task-desc {
  color: #475569;
}

.tcct-task-card:not(.active) .tcct-task-meta {
  color: #1e3a8a;
}

/* Sub-selector for Mẫu 01 vs Mẫu 02 inside Nhiệm vụ 1 */
.tcct-subform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  background-color: #ffffff;
  color: #1e293b;
  transition: all 0.22s ease;
}

.tcct-subform-pill:hover {
  background-color: #eff6ff;
  color: #17379e;
}

.tcct-subform-pill.active {
  background: linear-gradient(90deg, #091b5a 0%, #17379e 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(23, 55, 158, 0.35);
}

/* Hybrid Submission Mode Switcher (Online Form vs Upload PDF/DOCX) */
.tcct-mode-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  background-color: #f0f6ff;
  padding: 0.4rem;
  border-radius: 0.95rem;
}

@media (min-width: 640px) {
  .tcct-mode-switcher {
    grid-template-columns: 1fr 1fr;
  }
}

.tcct-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #334155;
  transition: all 0.22s ease;
}

.tcct-mode-btn.active {
  background: linear-gradient(90deg, #091b5a 0%, #17379e 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(23, 55, 158, 0.3);
}

.tcct-mode-btn:not(.active):hover {
  background-color: #ffffff;
  color: #17379e;
}

/* Drag and Drop PDF/DOCX Zone */
.tcct-pdf-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tcct-pdf-dropzone:hover,
.tcct-pdf-dropzone.is-dragover {
  background-color: #eff6ff;
}

.tcct-pdf-dropzone.has-file {
  background-color: #f0fdf4;
}

/* ==========================================================================
   10. FULL-VIEWPORT SLIDE-OVER FORM DRAWER & CONFIRMATION DIALOG
   ========================================================================== */
.tcct-drawer-root {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9990 !important;
}

.tcct-drawer-root.hidden {
  display: none !important;
}

.tcct-drawer-backdrop {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: rgba(9, 27, 90, 0.62) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9991 !important;
}

.tcct-drawer-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 920px !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-color: #ffffff !important;
  box-shadow: -20px 0 50px -10px rgba(9, 27, 90, 0.32) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 9992 !important;
  animation: tcctDrawerSlideIn 0.28s var(--ease-expo);
}

@keyframes tcctDrawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.tcct-drawer-header {
  flex-shrink: 0;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(90deg, #f0f6ff 0%, #eff6ff 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tcct-drawer-header {
    padding: 1.35rem 2rem;
    align-items: center;
  }
}

.tcct-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.5rem 2.5rem;
}

@media (min-width: 640px) {
  .tcct-drawer-body {
    padding: 1.75rem 2rem 3rem;
  }
}

.tcct-drawer-confirm-overlay {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 9995 !important;
  background-color: rgba(9, 27, 90, 0.58) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tcct-drawer-confirm-overlay.hidden {
  display: none !important;
}
