/**
 * Wolfy AI Institute - Student Portal & LMS Design System
 * Obsidian & Champagne Gold Theme
 * Zero browser defaults, high contrast light typography on dark backgrounds.
 */

:root {
  --portal-bg: #08080a;
  --portal-bg-card: #0f1015;
  --portal-bg-elevated: #15161e;
  --portal-bg-input: #12141c;
  --portal-border: 1px solid rgba(255, 255, 255, 0.08);
  --portal-border-gold: 1px solid rgba(212, 175, 55, 0.3);
  --portal-border-focus: #d4af37;
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8c2c;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --text-pure: #ffffff;
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #848d9f;
  --text-placeholder: #586073;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #06b6d4;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Base resets for portal pages */
.portal-body {
  background-color: var(--portal-bg);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
.portal-body h1,
.portal-body h2,
.portal-body h3,
.portal-body h4,
.portal-body h5,
.portal-body h6 {
  color: var(--text-heading);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.text-gold { color: var(--gold-primary) !important; }
.text-white { color: var(--text-pure) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }

/* Custom Form Controls - Zero Browser Defaults */
.portal-form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.portal-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}

.portal-input {
  width: 100%;
  background-color: var(--portal-bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.portal-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background-color: #161924;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.portal-input::placeholder {
  color: var(--text-placeholder);
}

textarea.portal-input {
  resize: vertical;
  min-height: 90px;
}

select.portal-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
}

select.portal-input option {
  background-color: #0f1015;
  color: #ffffff;
}

/* Custom Buttons - Zero Native Styles */
.btn-portal-primary,
.btn-portal-gold,
.btn-portal-outline,
.btn-portal-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  border: none;
}

.btn-portal-gold {
  background: linear-gradient(135deg, #e5c358 0%, #d4af37 50%, #b89228 100%);
  color: #08080a !important;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-portal-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #f0d16d 0%, #dfba40 50%, #c49e31 100%);
}

.btn-portal-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-portal-primary {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light) !important;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
}

.btn-portal-primary:hover {
  background: var(--gold-primary);
  color: #08080a !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

.btn-portal-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-body) !important;
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
}

.btn-portal-outline:hover {
  border-color: var(--gold-primary);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04);
}

.btn-portal-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

/* Auth Page Dedicated Styles */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.12) 0%, #08080a 65%);
  box-sizing: border-box;
}

.auth-card-main {
  width: 100%;
  max-width: 480px;
  background: #0d0f15;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(212, 175, 55, 0.08);
  position: relative;
  box-sizing: border-box;
}

.auth-brand-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  text-align: left;
}

.auth-logo-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #141824 0%, #06070a 100%);
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-brand-logo:hover .auth-logo-frame {
  border-color: var(--gold-primary);
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.auth-brand-subtitle {
  font-size: 0.82rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}

/* Modern Segmented Tab Switcher */
.auth-tab-switch {
  display: flex;
  background: #151822;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.auth-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #e5c358 0%, #d4af37 100%);
  color: #08080a !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Quick Demo Logins Section */
.quick-demo-accounts {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  text-align: center;
}

.demo-btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-pill-btn {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-pill-btn:hover {
  background: var(--gold-primary);
  color: #08080a;
  transform: translateY(-1px);
}

/* Step Progress Indicator */
.auth-step-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.auth-step-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.auth-step-dot.active {
  color: var(--gold-primary);
}

.auth-step-dot.done {
  color: var(--color-success);
}

.auth-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #151822;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid currentColor;
}

/* Portal App Layout (Sidebar + Main) */
.portal-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--portal-bg);
}

.portal-sidebar {
  width: 270px;
  flex-shrink: 0;
  background-color: #0b0c10;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.sidebar-brand-text span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  display: block;
}

.sidebar-brand-text small {
  font-size: 0.68rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  display: block;
}

.sidebar-user-summary {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  object-fit: cover;
}

.sidebar-user-meta h4 {
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.role-badge.student { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.role-badge.instructor { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.role-badge.admin { background: rgba(212, 175, 55, 0.2); color: var(--gold-light); border: 1px solid rgba(212, 175, 55, 0.4); }

.portal-nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5563;
  padding: 0.75rem 0.75rem 0.35rem;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  transition: all 0.15s ease;
}

.portal-nav-item i {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.portal-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.portal-nav-item.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border-left: 3px solid var(--gold-primary);
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #ef4444;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Portal Main Workspace */
.portal-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portal-topbar {
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0c10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.topbar-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topbar-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}

.topbar-breadcrumb span {
  color: #ffffff;
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-link-public {
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.topbar-icon-btn {
  color: #94a3b8;
  text-decoration: none;
  position: relative;
  font-size: 1.1rem;
}

.topbar-icon-btn:hover {
  color: #ffffff;
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-user-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.topbar-user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar-username {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 600;
}

.portal-main {
  flex: 1;
  padding: 2.25rem 2.5rem;
  overflow-y: auto;
}

.portal-view {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Widgets */
.portal-card {
  background-color: var(--portal-bg-card);
  border: var(--portal-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.view-header-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.view-header-welcome h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.view-header-simple {
  margin-bottom: 2rem;
}

.view-header-simple h2 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

/* Metrics Grid */
.portal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.portal-metric-card {
  background-color: var(--portal-bg-card);
  border: var(--portal-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.metric-icon.gold { background: rgba(212, 175, 55, 0.12); color: var(--gold-primary); }
.metric-icon.cyan { background: rgba(6, 182, 212, 0.12); color: var(--color-info); }
.metric-icon.purple { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.metric-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Continue Learning Hero Card */
.continue-learning-hero {
  background: linear-gradient(135deg, #12141d 0%, #0b0c10 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.hero-course-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.hero-course-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 1.25rem;
}

.portal-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.6rem 0;
}

.portal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f3e5ab);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.hero-stats-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-stats-row span i {
  color: var(--gold-primary);
  margin-right: 0.35rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-thumbnail img {
  width: 240px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Maya AI Banner */
.portal-maya-banner {
  background: radial-gradient(circle at left center, rgba(212, 175, 55, 0.15) 0%, #0f1015 70%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.maya-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.maya-banner-info h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.maya-banner-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* LMS Courses Grid */
.lms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-lms-card {
  background-color: var(--portal-bg-card);
  border: var(--portal-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.course-lms-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.course-card-thumb {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-status-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
}

.course-price-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--gold-primary);
  color: #08080a;
}

.course-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.course-card-title {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.course-card-inst {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

/* Table Design */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.portal-table th {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-table td {
  padding: 1rem;
  font-size: 0.88rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.portal-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Modals */
.portal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.portal-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #0f1015;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
}

/* Toast Notifications */
.portal-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #151822;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.portal-toast.success { border-color: var(--color-success); }
.portal-toast.danger { border-color: var(--color-danger); }
.portal-toast.info { border-color: var(--gold-primary); }

/* Responsive adjustments */
@media (max-width: 900px) {
  .portal-sidebar {
    position: fixed;
    transform: translateX(-100%);
  }
  .portal-sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-toggle-btn {
    display: block;
  }
  .portal-main {
    padding: 1.5rem;
  }
  .continue-learning-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-thumbnail {
    width: 100%;
  }
  .hero-thumbnail img {
    width: 100%;
    height: 180px;
  }
}

/* Select Dropdown & Option Visibility (Ensure black text on white background when dropdown opens) */
select option,
select optgroup,
.portal-select option,
.admin-input-luxury option {
  background-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 0.75rem !important;
}

