/* ========================================
   DEX - Digital Experience Index
   Web User Styles
   ======================================== */

:root {
  --primary: #027cf7;
  --primary-dark: #0066cc;
  --primary-light: #e8f4ff;
  --secondary: #f7a600;
  --secondary-dark: #d68f00;
  --text-color: #222;
  --text-grey: #666;
  --text-light: #999;
  --border-color: #e0e0e0;
  --bg-grey: #f8f9fa;
  --bg-dark: #1a1a2e;
  --white: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;

  --header-height: 80px;
  --container-width: 1200px;

  --fs-h1: 42px;
  --fs-h2: 34px;
  --fs-h3: 26px;
  --fs-h4: 24px;
  --fs-h5: 22px;
  --fs-lg: 30px;
  --fs-md: 28px;
  --fs-base: 20px;
  --fs-small: 18px;
  --fs-sm: 18px;
  --fs-xs: 17px;
  --fs-2xs: 16px;
  --fs-icon: 8px;
  --fs-icon-sm: 6px;

  --btn-height: 48px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    "Helvetica Neue",
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    sans-serif;
  color: var(--text-color);
  font-size: var(--fs-base);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}
button {
  height: var(--btn-height) !important;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-fadeInDown {
  animation: fadeInDown 0.6s ease forwards;
}
.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease forwards;
}
.animate-fadeInRight {
  animation: fadeInRight 0.6s ease forwards;
}
.animate-scaleIn {
  animation: scaleIn 0.5s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.5s;
}

/* ========================================
   Header
   ======================================== */
.dex-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.dex-header.scrolled {
  box-shadow: var(--shadow);
}

.dex-header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dex-logo {
  display: flex;
  align-items: center;
}

.dex-logo img {
  height: 40px;
  width: auto;
}

.dex-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dex-nav-item {
  position: relative;
}

.dex-nav-link {
  display: block;
  padding: 12px 24px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-color);
  border-radius: var(--border-radius);
}

.dex-nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.dex-nav-item.active .dex-nav-link {
  color: var(--primary);
  font-weight: bold;
}

/* Dropdown Menu */
.dex-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.dex-nav-item:hover .dex-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dex-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-dropdown a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.dex-dropdown a.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

/* Header Right */
.dex-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dex-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-grey);
  border-radius: 24px;
}

.dex-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.dex-user-name {
  font-size: var(--fs-2xs);
  color: var(--text-color);
  font-weight: 500;
}

.dex-btn-login,
.dex-btn-user {
  height: 40px;
  padding: 0 20px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dex-btn-login {
  background: transparent;
  color: var(--text-grey);
  border: 1px solid var(--border-color);
}

.dex-btn-login:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dex-btn-user {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.dex-btn-user:hover {
  background: var(--primary-dark);
}

/* ========================================
   Hero Section
   ======================================== */
.dex-hero {
  position: relative;
  height: 500px;
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2840 100%);
  overflow: hidden;
}

.dex-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero-pattern.png") center/cover;
  opacity: 0.3;
}

.dex-hero-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(2, 124, 247, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(247, 166, 0, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 30%
    );
}

.dex-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.dex-hero-text {
  max-width: 600px;
}

.dex-hero-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.dex-hero-title .highlight {
  color: var(--secondary);
}

.dex-hero-subtitle {
  font-size: var(--fs-h5);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.dex-hero-buttons {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.dex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.dex-btn-primary {
  background: var(--secondary);
  color: var(--text-color);
}

.dex-btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.dex-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dex-btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Image */
.dex-hero-image {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 300px;
  opacity: 0;
  animation: fadeInRight 1s ease 0.5s forwards;
}

/* Hero Slider Indicator */
.dex-hero-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.dex-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dex-hero-dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* ========================================
   Quick Actions
   ======================================== */
.dex-quick-actions {
  padding: 30px 0 60px;
  background: var(--white);
}

.dex-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dex-quick-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 22px;
  text-align: left;
  transition: var(--transition);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  gap: 12px;
}

.dex-quick-card:nth-child(1) {
  animation-delay: 0.1s;
}
.dex-quick-card:nth-child(2) {
  animation-delay: 0.2s;
}
.dex-quick-card:nth-child(3) {
  animation-delay: 0.3s;
}
.dex-quick-card:nth-child(4) {
  animation-delay: 0.4s;
}

.dex-quick-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.dex-quick-icon {
  width: 80px;
  height: 90px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dex-quick-icon img {
  width: 80px;
  height: 80px;
  stroke: var(--text-grey);
  transition: var(--transition);
  object-fit: contain;
}

.dex-quick-card:hover .dex-quick-icon svg {
  stroke: var(--primary);
}

.dex-quick-title {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.dex-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  height: var(--btn-height);
}

.dex-quick-btn:hover {
  background: var(--primary-dark);
}

/* ========================================
   Section Styles
   ======================================== */
.dex-section {
  padding: 60px 0;
}

.dex-section-grey {
  background: var(--bg-grey);
}

.dex-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dex-section-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dex-section-title::before {
  content: "";
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 2px;
}

.dex-section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-section-more:hover {
  color: var(--primary);
}

/* ========================================
   Notice & FAQ Grid
   ======================================== */
.dex-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.dex-info-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.dex-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.dex-info-title {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text-color);
}

.dex-info-more {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-grey);
  border-radius: 50%;
  color: var(--text-grey);
  font-size: var(--fs-h3);
  transition: var(--transition);
}

.dex-info-more:hover {
  background: var(--primary);
  color: var(--white);
}

/* Notice List */
.dex-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dex-notice-list li {
  padding: 10px 0;
  font-size: var(--fs-base);
  color: var(--text-color);
}

.dex-notice-list li::before {
  content: "• ";
  color: var(--text-grey);
}

.dex-notice-list li a {
  color: var(--text-color);
  transition: var(--transition);
}

.dex-notice-list li a:hover {
  color: var(--primary);
}

/* FAQ List */
.dex-faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.dex-faq-list li {
  padding: 10px 0;
  font-size: var(--fs-base);
  color: var(--text-color);
}

.dex-faq-list li::before {
  content: "• ";
  color: var(--text-grey);
}

.dex-faq-list li a {
  color: var(--text-color);
  transition: var(--transition);
}

.dex-faq-list li a:hover {
  color: var(--primary);
}

/* ========================================
   Footer
   ======================================== */
.dex-footer {
  background: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 32px;
}

.dex-footer-main {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.dex-footer-logo {
  flex-shrink: 0;
}

.dex-footer-logo img {
  height: 130px;
  width: auto;
}

.dex-footer-content {
  flex: 1;
}

.dex-footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.dex-footer-link {
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-footer-link:hover {
  color: var(--primary);
}

.dex-footer-link.highlight {
  color: var(--primary);
  font-weight: 600;
}

.dex-footer-info {
  font-size: var(--fs-small);
  color: var(--text-grey);
  line-height: 1.8;
  margin-bottom: 16px;
}

.dex-footer-info p {
  margin-bottom: 2px;
}

.dex-footer-bottom {
  font-size: var(--fs-small);
  color: var(--text-light);
}

/* ========================================
   Page Banner
   ======================================== */
.dex-page-banner {
  margin-top: var(--header-height);
  height: 200px;
  /* background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2840 100%); */
  position: relative;
  overflow: hidden;
  background-image: url("../img/sub_page_bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.dex-page-banner-bg {
  position: absolute;
  inset: 0;
  /* background:
    radial-gradient(
      circle at 30% 70%,
      rgba(2, 124, 247, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(247, 166, 0, 0.2) 0%,
      transparent 50%
    ); */
}

.dex-page-banner-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dex-page-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease forwards;
}

.dex-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.dex-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.dex-breadcrumb a:hover {
  color: var(--white);
}

.dex-breadcrumb-chevron {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.dex-breadcrumb-current {
  color: var(--white);
  font-weight: 500;
}

/* ========================================
   Content Area
   ======================================== */
.dex-content {
  padding: 60px 0;
  min-height: calc(100vh - var(--header-height) - 200px - 200px);
}

/* ========================================
   Tables
   ======================================== */
.dex-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
  border-top: 2px solid var(--text-color);
}

.dex-table th,
.dex-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.dex-table th {
  background: var(--bg-grey);
  font-weight: 500;
  color: var(--text-color);
}

.dex-table td {
  color: var(--text-grey);
}

.dex-table tbody tr {
  transition: var(--transition);
}

.dex-table tbody tr:hover {
  background: var(--primary-light);
}

.dex-table .text-center {
  text-align: center;
}

/* ========================================
   Cards
   ======================================== */
.dex-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.dex-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dex-card-title {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--text-color);
}

.dex-card-body {
  padding: 24px;
}

/* ========================================
   Forms
   ======================================== */
.dex-form-group {
  margin-bottom: 20px;
}

.dex-form-label {
  display: block;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.dex-form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: var(--fs-base);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.dex-form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.dex-search-box {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

.dex-search-input {
  flex: 1;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--fs-base);
  width: 500px;
}

.dex-search-btn {
  padding: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  width: 60px;
}

.dex-search-btn:hover {
  background: var(--primary-dark);
}

/* ========================================
   Buttons
   ======================================== */
.dex-btn-sm {
  height: 32px;
  padding: 0 16px;
  font-size: var(--fs-small);
}

.dex-btn-md {
  height: 36px;
  padding: 0 20px;
  font-size: var(--fs-small);
}

.dex-btn-lg {
  height: 44px;
  padding: 0 32px;
  font-size: var(--fs-h5);
}

.dex-btn-secondary {
  background: var(--bg-grey);
  color: var(--text-color);
}

.dex-btn-secondary:hover {
  background: var(--border-color);
}

.dex-btn-success {
  background: var(--success);
  color: var(--white);
}

.dex-btn-danger {
  background: var(--danger);
  color: var(--white);
}

/* ========================================
   Pagination
   ======================================== */
.dex-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dex-pagination a,
.dex-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-small);
  color: var(--text-grey);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.dex-pagination a:hover,
.dex-pagination span.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ========================================
   Badges
   ======================================== */
.dex-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: 20px;
}

.dex-badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.dex-badge-success {
  background: #dcfce7;
  color: var(--success);
}

.dex-badge-warning {
  background: #fef3c7;
  color: var(--warning);
}

.dex-badge-danger {
  background: #fee2e2;
  color: var(--danger);
}

/* ========================================
   Accordion (FAQ)
   ======================================== */
.dex-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dex-accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.dex-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.dex-accordion-header:hover {
  background: var(--bg-grey);
}

.dex-accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-base);
  font-weight: 500;
}

.dex-accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dex-accordion-item.active .dex-accordion-icon {
  transform: rotate(180deg);
}

.dex-accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dex-accordion-item.active .dex-accordion-body {
  padding: 20px;
  max-height: 500px;
  border-top: 1px solid var(--border-color);
}

.dex-accordion-content {
  font-size: var(--fs-base);
  color: var(--text-grey);
  line-height: 1.8;
}

/* ========================================
   User Layout
   ======================================== */
.dex-user {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  /* margin-top: var(--header-height); */
}

.dex-user-sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border-color);
  padding: 32px 0;
  padding-top: 0;
  flex-shrink: 0;
}

.dex-user-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border-color);
  /* margin-bottom: 24px; */
}

.dex-user-logo a {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--text-color);
}

.dex-user-nav {
  display: flex;
  flex-direction: column;
}

.dex-user-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: var(--fs-base);
  color: var(--text-grey);
  transition: var(--transition);
}

.dex-user-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.dex-user-link.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.dex-user-submenu {
  display: none;
  padding-left: 24px;
  background: var(--bg-grey);
}

.dex-user-submenu.active {
  display: block;
}

.dex-user-submenu a {
  display: block;
  padding: 12px 24px;
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-user-submenu a:hover,
.dex-user-submenu a.active {
  color: var(--primary);
}

.dex-user-content {
  flex: 1;
  padding: 32px 40px;
  background: var(--bg-grey);
}

.dex-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.dex-user-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-user-breadcrumb .active {
  color: var(--text-color);
  font-weight: 500;
}

.dex-user-home {
  margin-left: auto;
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-user-home:hover {
  color: var(--primary);
}

.dex-user-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 24px;
}

/* ========================================
   Exam Interface
   ======================================== */
.dex-exam {
  padding: 40px;
  background: var(--white);
  min-height: 100vh;
}

.dex-exam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.dex-exam-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--danger);
}

.dex-exam-timer svg {
  width: 24px;
  height: 24px;
}

.dex-exam-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 40px;
}

.dex-exam-question {
  /* margin-bottom: 40px; */
  padding: 24px;
  background: var(--bg-grey);
  border-radius: var(--border-radius-lg);
}

.dex-exam-question-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.dex-exam-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dex-exam-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.dex-exam-option:hover {
  border-color: var(--primary);
}

.dex-exam-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dex-exam-option input {
  display: none;
}

.dex-exam-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.dex-exam-option.selected .dex-exam-radio {
  border-color: var(--primary);
}

.dex-exam-option.selected .dex-exam-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.dex-exam-submit {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.dex-exam-submit p {
  margin-bottom: 20px;
  font-size: var(--fs-base);
  color: var(--text-grey);
}

/* ========================================
   Charts Area (for user page)
   ======================================== */
.dex-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.dex-chart-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.dex-chart-title {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.dex-chart-container {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   File Upload
   ======================================== */
.dex-file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.dex-file-upload:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dex-file-upload-text {
  font-size: var(--fs-base);
  color: var(--text-grey);
  margin-bottom: 8px;
}

.dex-file-upload-hint {
  font-size: var(--fs-small);
  color: var(--text-light);
}

.dex-file-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dex-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-grey);
  border-radius: var(--border-radius);
}

.dex-file-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.dex-file-name {
  flex: 1;
  font-size: var(--fs-small);
  color: var(--text-color);
}

.dex-file-remove {
  color: var(--danger);
  cursor: pointer;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-primary {
  color: var(--primary);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-warning {
  color: var(--warning);
}
.text-grey {
  color: var(--text-grey);
}

.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}

.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-8 {
  gap: 8px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}

/* ========================================
   Additional Web User Page Styles
   ======================================== */

/* SweetAlert2 z-index override */
.swal2-container {
  z-index: 3000 !important;
}

/* ========================================
   Pagination Button Styles
   ======================================== */
.dex-page-btn {
  width: var(--btn-height);
  height: var(--btn-height);
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: var(--border-radius);
  font-size: var(--fs-small);
  color: var(--text-grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dex-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.dex-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.dex-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   FAQ Page Extended Styles
   ======================================== */

.dex-search-btn .dex-search-box {
  max-width: 480px;
}

.dex-search-btn .dex-search-input {
  /* height: 60px; */
  width: 500px;
  padding: 0 20px;
  font-size: var(--fs-h5);
  border-radius: var(--border-radius);
}

.dex-search-btn {
  height: 60px;
  width: 60px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}
.dex-search-content {
  width: 100%;
  display: flex;
  justify-content: end;
  margin-bottom: 20px;
}

.dex-faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.dex-faq-question {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.dex-faq-question:hover {
  background: var(--bg-grey);
}

.dex-faq-icon {
  width: 28px;
  height: 28px;
  background: var(--text-grey);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.dex-faq-text {
  flex: 1;
  font-size: var(--fs-base);
  color: var(--text-color);
}

.dex-faq-arrow {
  color: var(--text-grey);
  transition: transform 0.3s ease;
  display: flex;
}

.dex-faq-item.active .dex-faq-arrow {
  transform: rotate(180deg);
}

.dex-faq-item.active .dex-faq-icon {
  background: var(--primary);
}

.dex-faq-answer {
  display: none;
  padding: 20px 24px;
  background: var(--bg-grey);
  border-top: 1px solid var(--border-color);
}

.dex-faq-item.active .dex-faq-answer {
  display: block;
}

.dex-faq-answer p {
  font-size: var(--fs-base);
  color: var(--text-color);
  line-height: 1.8;
}

/* ========================================
   Notice Page Extended Styles
   ======================================== */
.dex-notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.dex-info-text {
  font-size: var(--fs-base);
  color: var(--text-grey);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dex-info-text .bullet {
  font-size: var(--fs-icon-sm);
}

.dex-table-section {
  /* border: 1px solid var(--border-color); */
  /* border-radius: 8px; */
  overflow: hidden;
}

.dex-notice-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.dex-notice-table tbody tr:hover {
  background: var(--bg-grey);
}

/* ========================================
   Exam View Styles (User Choice)
   ======================================== */
.dex-exam-view,
.dex-answers-view {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
}

.dex-exam-view-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.dex-exam-view-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 40px;
}

.dex-exam-questions-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dex-question-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.dex-question-item:last-child {
  border-bottom: none;
}

.dex-question-text {
  font-size: var(--fs-small);
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 16px;
}

.dex-question-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dex-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  cursor: default;
}

.dex-option-item.selected {
  border-color: var(--primary);
  background: rgba(2, 124, 247, 0.05);
}

.dex-option-item.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.dex-option-item.selected.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.dex-option-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.dex-option-radio.checked {
  border-color: var(--primary);
}

.dex-option-radio.checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.dex-option-radio.correct-mark {
  border-color: #22c55e;
}

.dex-option-radio.correct-mark::after {
  background: #22c55e;
}

/* Exam Actions */
.dex-exam-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.dex-exam-actions .dex-btn {
  min-width: 200px;
}

/* Answers View */
.dex-answers-header {
  text-align: center;
  margin-bottom: 32px;
}

.dex-answers-subtitle {
  font-size: var(--fs-base);
  color: var(--text-grey);
  margin-top: 8px;
}

.dex-answers-table th,
.dex-answers-table td {
  border: 1px solid var(--border-color);
  font-size: var(--fs-sm);
}

/* ========================================
   Exam Page Extended Styles
   ======================================== */
.dex-checklist-section {
  margin-bottom: 40px;
}

.dex-checklist-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 20px;
}

.dex-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dex-checklist li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  line-height: 2;
}

.dex-checklist li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: var(--fs-icon);
  top: 9px;
}

.dex-exam-notice {
  padding: 0 8px;
}

.dex-exam-notice p {
  font-size: var(--fs-sm);
  color: var(--text-grey);
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dex-exam-notice .bullet {
  font-size: var(--fs-icon-sm);
}

.dex-exam-notice strong {
  color: var(--primary);
}

/* Exam List Table */
.dex-exam-list-section {
  margin-top: 32px;
}

.dex-btn-start {
  height: 36px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dex-btn-start:hover {
  background: var(--primary-dark);
}

/* ========================================
   Modal Styles
   ======================================== */
.dex-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.dex-modal.active {
  display: flex;
}

.dex-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.dex-modal-container {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dex-modal-sm {
  width: 420px;
  max-width: 95%;
}

.dex-modal-lg {
  width: 900px;
  max-width: 95%;
}

.dex-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.dex-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.dex-modal-title {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--text-color);
}

.dex-modal-close-btn {
  background: none;
  border: none;
  color: var(--text-grey);
  cursor: pointer;
  padding: 4px;
}

.dex-modal-close-btn:hover {
  color: var(--text-color);
}

.dex-modal-close {
  padding: 8px 16px;
  background: transparent;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.dex-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

.dex-exam-badge {
  padding: 6px 16px;
  background: var(--bg-grey);
  color: var(--text-grey);
  font-size: var(--fs-xs);
  border-radius: 4px;
}

.dex-exam-subtitle {
  font-size: var(--fs-base);
  color: var(--text-grey);
  text-align: center;
  margin-bottom: 32px;
}

/* Choice Exam Questions */
.dex-exam-questions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

/* ========================================
   Practical Exam Styles
   ======================================== */
.dex-exam-practical {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.dex-practical-problem,
.dex-practical-row {
  display: flex;
  border: 1px solid var(--border-color);
}

.dex-practical-label {
  width: 120px;
  padding: 16px;
  background: var(--bg-grey);
  font-weight: 500;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
}

.dex-practical-content {
  flex: 1;
  padding: 16px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  line-height: 1.8;
}

.dex-practical-content p {
  margin-bottom: 12px;
}

.dex-practical-content ol {
  margin: 12px 0;
  padding-left: 20px;
}

.dex-practical-content ol li {
  margin-bottom: 8px;
  list-style: decimal;
}

.dex-practical-note {
  color: var(--text-grey);
  font-size: var(--fs-xs);
  margin-top: 16px !important;
}

.dex-file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: var(--fs-sm);
}

.dex-file-link:hover {
  text-decoration: underline;
}

.dex-upload-hint {
  font-size: var(--fs-xs);
  color: var(--text-grey);
  margin-bottom: 12px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dex-upload-hint .bullet {
  font-size: var(--fs-icon-sm);
}

.dex-uploaded-files {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dex-uploaded-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.dex-uploaded-file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  font-size: var(--fs-sm);
}

.dex-uploaded-file-info svg {
  color: var(--primary);
}

.dex-uploaded-file-remove {
  background: none;
  border: none;
  color: var(--text-grey);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dex-uploaded-file-remove:hover {
  color: #e74c3c;
}

/* Submit Section */
.dex-exam-submit-section {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.dex-exam-confirm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-color);
}

.dex-exam-confirm input {
  display: none;
}

.dex-exam-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.dex-exam-confirm input:checked + .dex-exam-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.dex-exam-confirm input:checked + .dex-exam-checkbox::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.dex-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 44px;
  margin: 0 auto 16px;
  padding: 0 24px;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.dex-btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
}

.dex-btn-submit:disabled {
  background: var(--border-color);
  cursor: not-allowed;
}

.dex-exam-submit-notice {
  font-size: var(--fs-xs);
  color: var(--text-grey);
}

/* ========================================
   Exam Register Page Styles
   ======================================== */
.dex-exam-schedule-box {
  margin-bottom: 24px;
  /* border: 1px solid var(--border-color); */
  border-left: none;
  overflow: hidden;
}

.dex-schedule-table {
  /* border-top: none; */
}

.dex-schedule-table th,
.dex-schedule-table td {
  padding: 12px 16px;
  font-size: var(--fs-sm);
}

.dex-schedule-table th.sub-header {
  font-weight: 400;
  font-size: var(--fs-xs);
}

.dex-schedule-table th:last-child,
.dex-schedule-table td:last-child {
  border-right: none;
}

.dex-schedule-table tr:first-child th,
.dex-schedule-table tr:first-child td {
  border-top: none;
}

.dex-schedule-table tr:last-child th,
.dex-schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: none;
}

.schedule-title strong {
  font-size: var(--fs-small);
  color: var(--text-color);
}

.schedule-date {
  font-size: var(--fs-xs);
  color: var(--text-grey);
}

/* Notice Box */
.dex-notice-box {
  background: var(--bg-grey);
  padding: 20px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.dex-notice-box .dex-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dex-notice-box .dex-notice-list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-sm);
  color: var(--text-grey);
  line-height: 1.8;
}

.dex-notice-box .dex-notice-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: var(--fs-icon-sm);
  top: 20px;
}

/* Exam Registration Table */
.dex-exam-table-section {
  margin-top: 20px;
  /* border: 1px solid var(--border-color); */
  /* border-radius: 8px; */
  overflow: hidden;
}

.dex-exam-table-section table {
  border-collapse: collapse;
  width: 100%;
}

.dex-exam-table-section th,
.dex-exam-table-section td {
  border: 1px solid var(--border-color);
  border-top: none;
  border-left: none;
}

.dex-exam-table-section th:last-child,
.dex-exam-table-section td:last-child {
  border-right: none;
}

.dex-exam-table-section tr:last-child td {
  border-bottom: none;
}

.dex-exam-table-section thead tr:first-child th {
  border-top: none;
}

.dex-btn-register {
  height: 36px;
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dex-btn-register:hover {
  background: var(--primary-dark);
}

/* Register Info */
.dex-register-info {
  background: var(--bg-grey);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.dex-register-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: var(--fs-sm);
}

.dex-register-row:not(:last-child) {
  border-bottom: 1px dashed var(--border-color);
}

.dex-register-row .label {
  color: var(--text-grey);
}

.dex-register-row .value {
  color: var(--text-color);
  font-weight: 500;
}

.dex-register-row .value.highlight {
  color: var(--primary);
  font-size: var(--fs-base);
}

.dex-register-notice {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-color);
}

/* ========================================
   Qualification Prep Page Styles
   ======================================== */
.dex-prep-section {
  margin-bottom: 40px;
}

.dex-prep-description {
  font-size: var(--fs-base);
  color: var(--text-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dex-prep-description .bullet {
  color: var(--text-color);
  font-size: var(--fs-icon);
}

.dex-btn-view {
  padding: 6px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.dex-btn-view:hover {
  background: var(--primary-dark);
}

/* ========================================
   Homepage Hero Section Override Styles
   ======================================== */
.dex-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.dex-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.dex-hero-title .highlight-orange {
  color: #ff6b35;
}

.dex-hero-actions {
  margin-top: 30px;
}

.dex-hero-btn {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  transition: var(--transition);
}

.dex-hero-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Company Intro Section */
.dex-intro {
  display: flex;
  padding: 60px 20px 30px;
  background: var(--white);
  justify-content: center;
  gap: 30px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.dex-intro-left {
  margin-right: 30px;
}

.dex-intro-company {
  color: var(--primary);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 12px;
}

.dex-intro-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-color);
}

.dex-intro-title .highlight {
  color: var(--secondary);
}

.dex-intro-right,
.dex-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
}
.dex-intro-right {
  flex: 1;
}
.dex-intro-desc {
  font-size: var(--fs-base);
  color: var(--text-grey);
  line-height: 2;
  margin-bottom: 20px;
  text-align: left;
}

.dex-intro-desc strong {
  color: var(--text-color);
  font-weight: 600;
}

.dex-intro-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--border-radius);
}

.dex-intro-btn:hover {
  background: var(--primary-dark);
}

/* ========================================
   Qualification Page Intro Styles
   ======================================== */
.dex-qualification-intro {
  padding: 60px 0;
  background: var(--white);
}

.dex-qualification-intro-grid {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.dex-qualification-intro-left {
  width: 35%;
  flex-shrink: 0;
}

.dex-qualification-intro-right {
  flex: 1;
  padding-left: 60px;
  border-left: 1px solid var(--border-color);
}

/* ========================================
   Table Base Styles Override
   ======================================== */
table {
  border-collapse: collapse;
  width: 100%;
}

table,
th,
td {
  border: 1px solid var(--border-color);
}

/* ========================================
   User Page Styles
   ======================================== */
.dex-user {
  display: flex;
  min-height: 100vh;
}

.dex-user-sidebar {
  width: 220px;
  background: var(--white);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dex-user-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.dex-user-logo a {
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--text-color);
}

.dex-user-nav {
  padding: 16px 0;
}

.dex-user-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  transition: var(--transition);
}

.dex-user-link:hover,
.dex-user-link.active {
  background: var(--bg-grey);
  color: var(--primary);
}

.dex-user-link svg {
  transition: transform 0.3s ease;
}

.dex-user-link.expanded svg {
  transform: rotate(180deg);
}

.dex-user-submenu {
  display: none;
  padding-left: 20px;
}

.dex-user-submenu.active {
  display: block;
}

.dex-user-submenu a {
  display: block;
  padding: 8px 20px;
  font-size: var(--fs-xs);
  color: var(--text-grey);
  transition: var(--transition);
}

.dex-user-submenu a:hover,
.dex-user-submenu a.active {
  color: var(--primary);
}

.dex-user-content {
  flex: 1;
  padding: 24px 40px;
  background: var(--bg-grey);
}

.dex-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dex-user-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-breadcrumb-separator {
  color: var(--text-grey);
}

.dex-breadcrumb-dropdown {
  position: relative;
}

.dex-breadcrumb-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  font-size: var(--fs-small);
  color: var(--text-grey);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.dex-breadcrumb-btn:hover {
  background: var(--bg-grey);
}

.dex-breadcrumb-btn.active {
  color: var(--text-color);
  font-weight: 500;
}

.dex-breadcrumb-btn svg {
  transition: var(--transition);
}

.dex-breadcrumb-dropdown.open .dex-breadcrumb-btn svg {
  transform: rotate(180deg);
}

.dex-breadcrumb-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.dex-breadcrumb-dropdown.open .dex-breadcrumb-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dex-breadcrumb-menu a {
  display: block;
  padding: 10px 16px;
  font-size: var(--fs-small);
  color: var(--text-color);
  transition: var(--transition);
}

.dex-breadcrumb-menu a:hover {
  background: var(--bg-grey);
  color: var(--primary);
}

.dex-breadcrumb-menu a.active {
  color: var(--primary);
  font-weight: 500;
}

.dex-user-home {
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-user-home:hover {
  color: var(--primary);
}

/* User Card */
.dex-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.dex-card-body {
  padding: 24px;
}

/* User Table */
.dex-user-table th,
.dex-user-table td {
  font-size: var(--fs-sm);
}

/* User Form */
.dex-form-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.dex-form-label {
  width: 120px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  font-weight: 500;
  flex-shrink: 0;
}

.dex-form-value {
  font-size: var(--fs-sm);
  color: var(--text-color);
}

.dex-form-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  outline: none;
  transition: var(--transition);
}

.dex-form-input:focus {
  border-color: var(--primary);
}

.dex-form-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: var(--fs-sm);
  color: var(--text-color);
  outline: none;
  background: var(--white);
  cursor: pointer;
}

.dex-form-select:focus {
  border-color: var(--primary);
}

.dex-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-color);
}

.dex-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Charts Grid */
.dex-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dex-chart-card {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.dex-chart-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 16px;
}

.dex-chart-container {
  height: 250px;
}

/* Badge */
.dex-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  border-radius: 4px;
}

.dex-badge-primary {
  background: var(--primary);
  color: var(--white);
}

/* Button Sizes */
.dex-btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: var(--fs-xs);
}

.dex-btn-secondary {
  background: var(--text-grey);
  color: var(--white);
  border: none;
}

.dex-btn-secondary:hover {
  background: #555;
}

/* Margin utilities */
.mb-32 {
  margin-bottom: 32px;
}

.mt-32 {
  margin-top: 32px;
}

/* User Result Page */
.dex-user-result .dex-section-title {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: 24px;
}

.dex-subsection-title {
  font-size: var(--fs-h5);
  font-weight: 600;
  margin-bottom: 20px;
}

.dex-level-info {
  background: var(--bg-grey);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.dex-level-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.dex-level-detail {
  font-size: var(--fs-small);
  color: var(--text-grey);
}

.dex-level-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Chart Legend */
.dex-chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.dex-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
}

.dex-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Recommendations */
.dex-recommendations {
  margin-top: 32px;
}

.dex-recommendation-list {
  padding-left: 20px;
  color: var(--text-grey);
}

.dex-recommendation-list li::marker {
  content: "• ";
}

/* Track Section */
.dex-track-section {
  margin-top: 32px;
}

.dex-track-subtitle {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 16px;
}

.dex-track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dex-track-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.dex-track-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.dex-track-list {
  color: var(--text-grey);
  font-size: var(--fs-small);
}

.dex-track-list li::marker {
  content: "• ";
}

/* Section Title */
.dex-section-title {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: 24px;
}

/* User Form */
.dex-user-form {
  max-width: 500px;
}

.dex-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dex-form-hint {
  color: var(--text-grey);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.dex-form-hint-primary {
  color: var(--primary);
  font-size: var(--fs-small);
}

.dex-form-actions {
  text-align: center;
  margin-top: 40px;
}

/* Notice List */
.dex-notice-list {
  color: var(--text-grey);
  font-size: var(--fs-small);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* Warning Text */
.dex-warning-text {
  color: #e74c3c;
  font-size: var(--fs-small);
  margin-top: 20px;
}

/* Back Button */
.dex-back-btn-wrap {
  margin-bottom: 20px;
}

/* Service Box */
.dex-service-box {
  background: var(--bg-grey);
  padding: 20px 24px;
  border-radius: var(--border-radius);
}

.dex-service-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.dex-service-list {
  color: var(--text-grey);
  font-size: var(--fs-small);
  line-height: 1.8;
  padding-left: 20px;
}

.dex-service-list li::marker {
  content: "- ";
}

/* Modal Large */
.dex-modal-lg {
  width: 90%;
  max-width: 1000px;
}

/* Problem Grid */
.dex-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dex-problem-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.dex-problem-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  font-size: var(--fs-small);
  text-align: center;
  margin-bottom: 16px;
}

.dex-problem-content {
  font-size: var(--fs-small);
  color: var(--text-color);
  line-height: 1.8;
}

/* Submitted Files */
.dex-submitted-files {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.dex-submitted-title {
  font-size: var(--fs-small);
  color: var(--text-grey);
  margin-bottom: 12px;
}

.dex-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dex-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  font-size: var(--fs-small);
}

/* ========================================
   Login / Register Page
   ======================================== */
.dex-login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 120px);
  padding: 60px 20px;
}

.dex-login-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 16px;
  padding: 48px 44px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.dex-register-card {
  max-width: 540px;
}

.dex-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.dex-login-logo img {
  height: 36px;
}

.dex-login-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-color);
}

.dex-login-subtitle {
  text-align: center;
  font-size: var(--fs-2xs);
  color: var(--text-grey);
  margin-bottom: 32px;
}

.dex-login-card .dex-form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 18px;
}

.dex-login-card .dex-form-label {
  width: auto;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.dex-login-card .dex-form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--fs-2xs);
  color: var(--text-color);
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
  background: var(--bg-grey);
}

.dex-login-card .dex-form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(2, 124, 247, 0.1);
}

.dex-login-card .dex-form-control::placeholder {
  color: var(--text-light);
}

.dex-login-card select.dex-form-control {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-grey)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  padding-right: 36px;
}

.dex-login-card select.dex-form-control:focus {
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E")
    no-repeat right 14px center;
}

.dex-login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-light);
  font-size: var(--fs-2xs);
}

.dex-login-divider::before,
.dex-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.dex-login-divider span {
  padding: 0 16px;
}

.dex-btn-full {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dex-btn-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 124, 247, 0.3);
}

.dex-login-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: var(--fs-2xs);
  color: var(--text-grey);
}

.dex-login-links a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 6px;
  text-decoration: none;
}

.dex-login-links a:hover {
  text-decoration: underline;
}

.required {
  color: #e74c3c;
}

/* Alert Messages */
.dex-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: var(--fs-2xs);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dex-alert::before {
  font-size: 16px;
  flex-shrink: 0;
}

.dex-alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.dex-alert-error::before {
  content: "⚠";
}

.dex-alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.dex-alert-success::before {
  content: "✓";
}

/* Status Badge */
.dex-status-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--fs-2xs);
  font-weight: 500;
  border-radius: 4px;
}

.dex-status-applied {
  background: var(--primary-light);
  color: var(--primary);
}

.dex-status-completed {
  background: var(--white);
  color: var(--primary);
}

.dex-status-cancelled {
  background: #fef2f2;
  color: #dc2626;
}

/* Empty State */
.dex-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-grey);
  font-size: var(--fs-base);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.swal2-confirm {
  background-color: var(--primary) !important;
  box-shadow: none !important;
}

.swal2-cancel {
  background-color: var(--text-grey) !important;
}
