/* =====================================================
   ELG DASHBOARD PREMIUM STYLE
   Date: 30-04-2026
   Version: 5.1
   Purpose: Clean final dashboard CSS with compact arrow learning flow
===================================================== */

.elg-premium-dashboard {
  margin: 12px 0 16px !important;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== HERO ===== */

.elg-dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px !important;
  border-radius: 22px;
  background: linear-gradient(135deg, #1c4fd7 0%, #087fa3 48%, #1ea97c 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 36, 96, 0.18);
  position: relative;
  overflow: hidden;
}

.elg-dash-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.elg-dash-title {
  font-size: 24px !important;
  font-weight: 900;
  letter-spacing: -0.4px;
  position: relative;
  z-index: 1;
}

.elg-dash-subtitle {
  font-size: 14px;
  opacity: 0.92;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.elg-dash-kicker {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 900;
  opacity: 0.82;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.elg-role-pill {
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.26);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* ===== ELG LEARNING FLOW ARROWS ===== */

.elg-dash-steps-arrow {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
  margin: 8px 0 12px !important;
  padding: 0 !important;
  overflow-x: auto !important;
}

.elg-arrow-step {
  position: relative !important;
  flex: 1 1 0 !important;
  min-width: 90px !important;
  min-height: 32px !important;
  padding: 6px 12px 6px 18px !important;
  margin-right: 14px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;

  border-radius: 8px 0 0 8px !important;
  box-shadow: 0 8px 18px rgba(15, 36, 96, 0.12) !important;
  transition: all 0.22s ease !important;
}

.elg-arrow-step::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: -14px !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 16px solid transparent !important;
  border-bottom: 16px solid transparent !important;
  z-index: 3 !important;
}

.elg-arrow-step:not(:first-child) {
  margin-left: -4px !important;
}

.elg-arrow-step:last-child {
  margin-right: 0 !important;
  border-radius: 8px !important;
}

.elg-arrow-step:last-child::after {
  display: none !important;
}

.elg-arrow-step:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 26px rgba(15, 36, 96, 0.18) !important;
}

/* Learning psychology gradient: struggle → growth → mastery */

.elg-arrow-step:nth-child(1) {
  background: linear-gradient(135deg, #ff9f43, #ff7a18) !important;
}

.elg-arrow-step:nth-child(1)::after {
  border-left: 14px solid #ff7a18 !important;
}

.elg-arrow-step:nth-child(2) {
  background: linear-gradient(135deg, #ff7a18, #2ecc71) !important;
}

.elg-arrow-step:nth-child(2)::after {
  border-left: 14px solid #2ecc71 !important;
}

.elg-arrow-step:nth-child(3) {
  background: linear-gradient(135deg, #2ecc71, #1abc9c) !important;
}

.elg-arrow-step:nth-child(3)::after {
  border-left: 14px solid #1abc9c !important;
}

.elg-arrow-step:nth-child(4) {
  background: linear-gradient(135deg, #1abc9c, #3498db) !important;
}

.elg-arrow-step:nth-child(4)::after {
  border-left: 14px solid #3498db !important;
}

.elg-arrow-step:nth-child(5) {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.elg-arrow-step:nth-child(5)::after {
  border-left: 14px solid #2980b9 !important;
}

.elg-arrow-step:nth-child(6) {
  background: linear-gradient(135deg, #2980b9, #1c4fd7) !important;
}

/* ===== GRID ===== */

.elg-dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 8px !important;
}

/* ===== CARD ===== */

.elg-dash-card {
  position: relative;
  background: #ffffff;
  padding: 16px 18px 16px 22px !important;
  border-radius: 18px;
  border: 1px solid rgba(28,79,215,0.16);
  box-shadow: 0 14px 34px rgba(15, 36, 96, 0.08);
  transition: all 0.25s ease;
  overflow: hidden;
}

.elg-dash-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(180deg, #1c4fd7, #1ea97c);
}

.elg-dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 36, 96, 0.14);
}

.elg-card-title {
  font-size: 17px;
  font-weight: 900;
  color: #0f2460;
  margin-bottom: 8px;
}

.elg-card-text {
  font-size: 13px;
  color: #50617c;
  margin-bottom: 12px;
  line-height: 1.45;
}

/* ===== MINI LIST ===== */

.elg-mini-list {
  margin-top: 8px;
}

.elg-mini-item {
  display: block;
  font-size: 13px;
  padding: 7px 0;
  color: #0d6efd !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-weight: 600;
}

.elg-mini-item:hover {
  color: #1ea97c !important;
  transform: translateX(5px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .elg-dash-grid {
    grid-template-columns: 1fr;
  }

  .elg-dash-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .elg-dash-title {
    font-size: 22px !important;
  }

  .elg-arrow-step {
    flex: 0 0 105px !important;
  }
}

@media (max-width: 520px) {
  .elg-arrow-step {
    flex: 0 0 100px !important;
    font-size: 10px !important;
  }
}

/* ===== END: ELG DASHBOARD PREMIUM STYLE ===== */
/* ===== COURSE BUTTONS ===== */

.elg-course-buttons {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.elg-course-btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #1ea97c, #1c4fd7);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.elg-course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.elg-course-btn,
.elg-course-btn:visited {
  color: #ffffff !important;
}

.elg-course-label,
.elg-course-icon {
  color: #ffffff !important;
  font-weight: 800;
}

.elg-course-btn:hover .elg-course-label,
.elg-course-btn:hover .elg-course-icon {
  color: #ffffff !important;
}
/* ===== ELG SMART EXPAND COURSE CARDS ===== */

.elg-smart-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.elg-smart-course-card {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,169,124,0.10), rgba(28,79,215,0.10));
  border: 1px solid rgba(28,79,215,0.18);
  overflow: hidden;
}

.elg-smart-course-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
}

.elg-smart-course-icon {
  font-size: 20px;
}

.elg-smart-course-title {
  font-weight: 900;
  color: #0f2460;
  font-size: 14px;
}

.elg-smart-course-subtitle {
  color: #50617c;
  font-size: 12px;
  margin-top: 2px;
}

.elg-smart-course-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #1c4fd7;
  transition: transform 0.2s ease;
}

.elg-smart-course-card.is-open .elg-smart-course-arrow {
  transform: rotate(180deg);
}

.elg-smart-course-panel {
  display: none;
  padding: 0 12px 12px;
  gap: 8px;
}

.elg-smart-course-card.is-open .elg-smart-course-panel {
  display: grid;
}

.elg-subject-card {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f2460 !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 6px 14px rgba(15, 36, 96, 0.08);
}

.elg-subject-card:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1ea97c, #1c4fd7);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .elg-smart-courses {
    grid-template-columns: 1fr;
  }
}