/* YOOR COURSES Student Portal Styles */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Inter:wght@400;500;600;700&display=swap');

body.student-portal-active {
  background-color: #f5faff !important;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #17191d;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.student-portal-active #shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: #f5faff !important;
}

/* Sidebar */
body.student-portal-active .sidebar {
  width: 156px;
  background-color: #0b1426; /* Navy blue */
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  box-sizing: border-box;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

body.student-portal-active .sidebar .brand {
  margin-bottom: 24px;
  padding: 0 4px;
}

body.student-portal-active .sidebar .brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8b66a; /* Gold */
}

body.student-portal-active .sidebar .brand-header svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

body.student-portal-active .sidebar .brand-header .wordmark {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  color: #fff;
}

body.student-portal-active .sidebar .brand-header .wordmark span {
  color: #d8b66a;
}

body.student-portal-active .sidebar .brand-sub {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8c9bb0;
  margin-top: 4px;
  text-transform: uppercase;
}

body.student-portal-active .nav-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.student-portal-active .nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  color: #a0adc0;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

body.student-portal-active .nav-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

body.student-portal-active .nav-button:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.05);
}

body.student-portal-active .nav-button.active {
  background-color: #d8b66a;
  color: #0b1426;
  font-weight: 600;
}

body.student-portal-active .nav-button.active svg {
  stroke: #0b1426;
}

body.student-portal-active .side-bottom {
  margin-top: auto;
  padding-top: 40px;
}

body.student-portal-active .side-bottom .academy-logo {
  display: none; /* Hide default logo if any */
}
body.student-portal-active .brand-footer {
  font-size: 11px;
  color: #8c9bb0;
  padding: 0 12px;
  margin-bottom: 24px;
}
body.student-portal-active .brand-footer span {
  color: #d8b66a;
}

/* Main Content */
body.student-portal-active .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #f5faff !important;
}

/* Topbar */
body.student-portal-active .topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 20px;
  background-color: #fff;
  border-bottom: 1px solid #eef0f4;
  gap: 24px;
  height: auto;
  min-height: 44px;
  box-sizing: border-box;
}

body.student-portal-active .breadcrumb {
  display: none; /* Hide default breadcrumb */
}

body.student-portal-active .top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

body.student-portal-active .top-search {
  position: relative;
  max-width: 400px;
  flex: 1;
  margin-right: auto;
}

body.student-portal-active .top-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

body.student-portal-active .top-search input:focus {
  outline: none;
  border-color: #cbd5e1;
  background-color: #fff;
}

body.student-portal-active .top-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
}

body.student-portal-active .top-user {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

body.student-portal-active .top-user:hover {
  background-color: #f1f5f9;
}

body.student-portal-active .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0b1426;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

body.student-portal-active .user-label {
  display: flex;
  flex-direction: column;
}

body.student-portal-active .user-label strong {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

body.student-portal-active .user-label .small {
  font-size: 12px;
  color: #64748b;
}

/* Content Area */
body.student-portal-active .content {
  padding: 6px 20px 20px 20px;
  max-width: none;
  margin: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background-color: #f5faff;
}

/* Shared student pages use the same full-width space as My courses. */
body.student-portal-active .content .page-heading {
  flex-wrap: wrap;
  gap: 16px;
}

body.student-portal-active .content .page-heading > div {
  min-width: 0;
  max-width: 100%;
}

body.student-portal-active .content .page-heading h1 {
  overflow-wrap: anywhere;
}

body.student-portal-active .student-footer {
  flex-wrap: wrap;
  gap: 12px;
}

/* Stop inherited animations */
body.student-portal-active .content > * {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Hero Banner */
body.student-portal-active .student-hero {
  position: relative;
  background-color: #1e3a8a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  color: #fff;
  margin-bottom: 12px;
  min-height: 124px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.student-portal-active .student-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, #0b1426 0%, rgba(11, 20, 38, 0.8) 40%, rgba(11, 20, 38, 0) 100%), url('/academy-assets/student-hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

body.student-portal-active .student-hero-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

body.student-portal-active .student-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #93c5fd;
  text-transform: uppercase;
  margin-bottom: 4px;
}

body.student-portal-active .student-hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 4px 0;
  letter-spacing: -1px;
}

body.student-portal-active .student-hero p {
  font-size: 12px;
  color: #e2e8f0;
  margin: 0;
  font-weight: 400;
}

body.student-portal-active .student-hero-art {
  position: relative;
  z-index: 1;
  text-align: right;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  transform: rotate(-3deg);
  margin-right: 40px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

body.student-portal-active .student-hero-art::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #d8b66a;
  border-radius: 4px;
  margin-top: 8px;
  margin-left: auto;
}

/* Stat Cards */
body.student-portal-active .student-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

body.student-portal-active .stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.student-portal-active .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.student-portal-active .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.student-portal-active .stat-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  fill: none;
}

body.student-portal-active .stat-card.enrolled { background-color: #eff6ff; }
body.student-portal-active .stat-card.completed { background-color: #f0fdf4; }
body.student-portal-active .stat-card.inprogress { background-color: #fefce8; }
body.student-portal-active .stat-card.certificates { background-color: #faf5ff; }

body.student-portal-active .stat-card.enrolled .stat-icon {
  background-color: transparent;
  color: #3b82f6;
  stroke: #3b82f6;
}
body.student-portal-active .stat-card.completed .stat-icon {
  background-color: transparent;
  color: #22c55e;
  stroke: #22c55e;
}
body.student-portal-active .stat-card.inprogress .stat-icon {
  background-color: transparent;
  color: #eab308;
  stroke: #eab308;
}
body.student-portal-active .stat-card.certificates .stat-icon {
  background-color: transparent;
  color: #a855f7;
  stroke: #a855f7;
}

body.student-portal-active .stat-info {
  flex: 1;
}

body.student-portal-active .stat-info .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  line-height: 1.1;
}

body.student-portal-active .stat-info .stat-label {
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

body.student-portal-active .stat-arrow {
  color: #cbd5e1;
}
body.student-portal-active .stat-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Section Header */
body.student-portal-active .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

body.student-portal-active .section-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #0f172a;
}

body.student-portal-active .section-header p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
}

body.student-portal-active .sort-select {
  padding: 8px 32px 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* Course Grid */
body.student-portal-active .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
@media (min-width: 1024px) {
  body.student-portal-active .course-grid {
    grid-template-columns: repeat(3, minmax(0, 330px));
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  body.student-portal-active .course-grid {
    grid-template-columns: repeat(2, minmax(0, 330px));
  }
}

/* Course Card */
body.student-portal-active .student-course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 235px;
}

body.student-portal-active .student-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

body.student-portal-active .course-image {
  height: 110px;
  background-color: #e2e8f0;
  background-size: cover;
  background-position: center;
  position: relative;
}

body.student-portal-active .course-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

body.student-portal-active .course-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.student-portal-active .badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

body.student-portal-active .badge.gold {
  background-color: #fefce8;
  color: #b45309;
}
body.student-portal-active .badge.blue {
  background-color: #eff6ff;
  color: #1d4ed8;
}

body.student-portal-active .course-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.student-portal-active .course-desc {
  font-size: 10px;
  color: #64748b;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.student-portal-active .course-progress-wrap {
  margin-top: auto;
  margin-bottom: 12px;
}

body.student-portal-active .progress-bar-bg {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

body.student-portal-active .progress-bar-fill {
  height: 100%;
  background-color: #d8b66a; /* Gold */
  border-radius: 3px;
}

body.student-portal-active .progress-text {
  display: flex;
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

body.student-portal-active .btn-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background-color: #0b1426; /* Navy */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

body.student-portal-active .btn-continue:hover {
  background-color: #1e293b;
}

body.student-portal-active .btn-continue svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

/* Browse Courses Tile */
body.student-portal-active .browse-tile {
  background: #fff;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  min-height: 235px;
}

body.student-portal-active .browse-tile-icon {
  width: 64px;
  height: 64px;
  background-color: #f8fafc;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

body.student-portal-active .browse-tile-icon svg {
  width: 32px;
  height: 32px;
  stroke: #64748b;
  stroke-width: 1.5;
  fill: none;
}

body.student-portal-active .browse-tile h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

body.student-portal-active .browse-tile p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px 0;
  max-width: 240px;
}

body.student-portal-active .btn-outline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: transparent;
  color: #b45309;
  border: 1px solid #d8b66a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

body.student-portal-active .btn-outline:hover {
  background-color: #fefce8;
}

body.student-portal-active .btn-outline svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Footer */
body.student-portal-active .student-footer {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #94a3b8;
}

body.student-portal-active .student-footer .heart {
  color: #d8b66a;
}

/* Empty State / Messages / Certificates Container */
body.student-portal-active .panel-container {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Ensure notifications dropdown styles correctly */
body.student-portal-active .profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 100;
  padding: 8px 0;
}

body.student-portal-active .profile-dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.student-portal-active .profile-dropdown button:hover {
  background: #f8fafc;
  color: #0f172a;
}

body.student-portal-active .drawer-backdrop {
  display: none;
}
body.student-portal-active .support-workspace {
  border-color: #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  min-height: 600px;
  height: calc(100vh - 180px);
}
body.student-portal-active .support-sidebar {
  border-right-color: #e2e8f0;
  background: #f8fafc;
}
body.student-portal-active .support-sidebar-header {
  border-bottom-color: #e2e8f0;
}
body.student-portal-active .support-thread-item {
  border-bottom-color: #e2e8f0;
  color: #0f172a;
}
body.student-portal-active .support-thread-item:hover {
  background: #f1f5f9;
}
body.student-portal-active .support-thread-item.active {
  background: #fff;
  border-left-color: #d8b66a;
}
body.student-portal-active .support-main-header {
  border-bottom-color: #e2e8f0;
}
body.student-portal-active .support-composer {
  border-top-color: #e2e8f0;
}
body.student-portal-active .support-bubble.incoming {
  background: #f1f5f9;
  color: #0f172a;
}
body.student-portal-active .support-bubble.outgoing {
  background: #0b1426;
  color: #fff;
}
body.student-portal-active .support-message-list {
  background: #f5faff;
}

@media (max-width: 768px) {
  body.student-portal-active .drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
  }
  body.student-portal-active .shell.menu-open .drawer-backdrop {
    display: block;
  }
  body.student-portal-active .sidebar {
    position: fixed;
    visibility: hidden;
    transform: translateX(-100%);
    z-index: 50;
    transition: transform 0.3s;
  }
  body.student-portal-active .shell.menu-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }
  body.student-portal-active .mobile-close {
    display: inline-flex !important;
  }
  body.student-portal-active .topbar .mobile-menu {
    display: inline-flex !important;
    margin-right: 12px;
  }
  body.student-portal-active .topbar {
    padding: 16px 20px;
  }
  body.student-portal-active .content {
    padding: 24px 20px;
  }
  body.student-portal-active .student-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.student-portal-active .course-grid {
    grid-template-columns: 1fr;
  }
  body.student-portal-active .student-hero {
    flex-direction: column;
    padding: 32px 24px;
    align-items: flex-start;
  }
  body.student-portal-active .student-hero-art {
    margin-top: 24px;
    margin-right: 0;
    font-size: 24px;
  }
}
