/* 
   Research Campus Style Sheet
   Designed with premium dark/light themes, smooth transitions, and responsive grid layouts.
   Font: IBM Plex Sans Arabic & IBM Plex Sans
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #3b82f6; /* Electric Blue */
  --primary-hover: #2563eb;
  --secondary-color: #8b5cf6; /* Violet */
  --bg-main: #f8fafc; /* Slate 50 - Light Theme Background */
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --border-color: #e2e8f0; /* Slate 200 */
  --success-color: #10b981; /* Emerald */
  --warning-color: #f59e0b; /* Amber */
  --danger-color: #ef4444; /* Rose */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.05);
  --font-bilingual: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
  --border-radius: 12px;
}

[data-theme="dark"] {
  --bg-main: #000000; /* Pure Black */
  --bg-card: #121212; /* OLED Card Dark Slate */
  --bg-input: #1e1e1e;
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --border-color: #222222;
  --glass-bg: rgba(18, 18, 18, 0.8);
  --glass-border: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-bilingual);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  font-size: 16px; /* Base font size not less than 16px */
  line-height: 1.7; /* Readable line height */
  font-weight: 400; /* Regular text fallback */
}

/* Typography Weights & Sizing Rules */
h1, h2, .hero-title, .dashboard-title {
  font-weight: 700;
  line-height: 1.3;
}

h3, .modal-title, .block-title {
  font-weight: 500;
  line-height: 1.4;
}

h4, h5, h6 {
  font-weight: 500;
}

p, .course-desc, .blog-summary, .roadmap-step-desc, .instructor-bio {
  font-size: 1rem; /* 16px based on body font-size */
  line-height: 1.7;
  font-weight: 400;
  text-align: justify;
  text-justify: inter-word;
}

/* Secondary texts / Hints / Muted texts (Weight 300) */
.text-muted, 
.course-meta, 
.blog-meta, 
.footer-brand p, 
.hero-subtitle, 
.playlist-item-duration, 
.dashboard-subtitle, 
.demo-credentials,
.roadmap-node .node-label,
.playlist-item-title i {
  font-weight: 300 !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animated {
  animation: fadeIn 0.4s ease forwards;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-input);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo i {
  -webkit-text-fill-color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background-color: var(--bg-input);
  color: var(--text-main);
}

/* User Profile Menu */
.user-menu {
  position: relative;
  cursor: pointer;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  background-color: var(--bg-input);
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 200px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.user-dropdown a, .user-dropdown button {
  padding: 0.8rem 1.2rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  background: none;
  text-align: right;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-dropdown a:hover, .user-dropdown button:hover {
  background-color: var(--bg-input);
}

/* Main Container Routing Area */
main {
  flex: 1;
}

/* Home / Hero Section */
.hero-section {
  padding: 5rem 0 3rem;
  text-align: center;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 45%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Search and Filters Bar */
.search-filter-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .search-filter-container {
    grid-template-columns: 1fr;
  }
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.filter-select {
  padding: 0.8rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  cursor: pointer;
}

/* Courses Grid */
.courses-section {
  padding-bottom: 5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.grid-courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-courses {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.course-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.4);
}

.course-img-container {
  height: 220px;
  position: relative;
}

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

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--primary-color);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.course-level {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  color: var(--warning-color);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

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

.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--warning-color);
  font-weight: 600;
}

/* Our Instructors Page */
.instructors-section {
  padding: 4rem 0;
}

.instructors-header-block {
  text-align: center;
  margin-bottom: 3.5rem;
}

.instructors-header-block h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.instructors-header-block p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.grid-instructors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.instructor-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 92, 246, 0.4);
}

.instructor-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary-color);
}

.instructor-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.instructor-title {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.instructor-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  height: 75px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.instructor-courses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.course-tag {
  background-color: var(--bg-input);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.join-cta-block {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px dashed var(--primary-color);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.join-cta-block h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.join-cta-block p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Blog Page */
.blog-section {
  padding: 4rem 0;
}

.grid-blogs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-img-container {
  height: 200px;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Login Page */
.login-section {
  padding: 6rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
}

.login-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: right;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
}

.form-input:focus {
  border-color: var(--primary-color);
}

.role-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.role-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.role-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.demo-credentials {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.2);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
}

.demo-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.quick-login-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-quick-login {
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.btn-quick-login:hover {
  background-color: var(--border-color);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Dashboards Styling */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

@media (max-width: 992px) {
  .dashboard-layout {
    flex-direction: column;
  }
}

.dashboard-sidebar {
  width: 260px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 992px) {
  .dashboard-sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
  }
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  text-align: right;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .sidebar-link {
    padding: 0.5rem 1rem;
  }
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--text-main);
  background-color: var(--bg-input);
}

.sidebar-link.active {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.08);
  border-right: 3px solid var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.dashboard-content {
  flex: 1;
  padding: 2.5rem;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 1.5rem;
  }
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.stat-info h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-info p {
  font-size: 1.8rem;
  font-weight: 800;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.stat-icon.purple {
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--secondary-color);
}

.stat-icon.green {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stat-icon.amber {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

/* Dashboard List tables / Blocks */
.content-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.block-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

th {
  font-weight: 700;
  color: var(--text-muted);
  background-color: rgba(15, 23, 42, 0.2);
}

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

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
}

.badge-pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning-color);
}

.badge-approved {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

/* Student Enrolled Courses Specifics */
.student-course-card {
  display: flex;
  gap: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  align-items: center;
}

@media (max-width: 576px) {
  .student-course-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.student-course-img {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.student-course-info {
  flex: 1;
}

.student-course-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  margin: 0.6rem 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s ease;
}

.student-course-actions {
  display: flex;
  gap: 0.5rem;
}

/* Course Viewer Modal/Overlay Layout */
.course-viewer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: 500px;
}

@media (max-width: 768px) {
  .course-viewer-layout {
    grid-template-columns: 1fr;
  }
}

.viewer-main {
  padding: 1rem;
  border-left: 1px solid var(--border-color);
}

.viewer-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.viewer-video {
  width: 100%;
  height: 100%;
}

.viewer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.viewer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.viewer-playlist {
  padding: 1rem;
  overflow-y: auto;
  max-height: 500px;
}

.playlist-header {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.playlist-item:hover {
  background-color: var(--bg-input);
}

.playlist-item.active {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.playlist-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.playlist-item-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer styling */
footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-brand h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-col h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--primary-color);
}

/* Fontawesome fallback helper */
.fa-fallback {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-right: 4px solid var(--primary-color);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideIn 0.3s ease;
  min-width: 250px;
  justify-content: space-between;
}

.toast.toast-success {
  border-right-color: var(--success-color);
}

.toast.toast-danger {
  border-right-color: var(--danger-color);
}

.toast.toast-warning {
  border-right-color: var(--warning-color);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

/* Roadmap Styles */
.roadmap-container {
  max-width: 900px;
  margin: 3rem auto;
  position: relative;
  padding: 1rem 0;
}

.roadmap-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 48px; /* Aligned with node circles */
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  z-index: 1;
}

.roadmap-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  gap: 2rem;
  text-align: right;
}

.roadmap-node {
  width: 100px;
  height: 100px;
  background-color: var(--bg-card);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.roadmap-node .node-num {
  font-size: 1.8rem;
  line-height: 1;
}

.roadmap-node .node-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.roadmap-step.completed .roadmap-node {
  border-color: var(--success-color);
  background-color: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.roadmap-step.completed .roadmap-node .node-num {
  color: var(--success-color);
}

.roadmap-step.capstone .roadmap-node {
  border-color: var(--warning-color);
  background-color: rgba(245, 158, 11, 0.05);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  color: var(--warning-color);
}

.roadmap-step.capstone .roadmap-node .node-num {
  color: var(--warning-color);
  font-size: 2.2rem;
}

.roadmap-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  flex: 1;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.roadmap-content:hover {
  transform: translateX(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.roadmap-step.capstone .roadmap-content {
  border: 2px dashed var(--warning-color);
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.04));
}

.roadmap-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.roadmap-step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.roadmap-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  background-color: var(--bg-input);
  color: var(--text-muted);
}

.roadmap-status-badge.active {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--primary-color);
}

.roadmap-status-badge.completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

.roadmap-status-badge.capstone {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning-color);
}

@media (max-width: 768px) {
  .roadmap-line {
    right: 24px;
  }
  .roadmap-node {
    width: 60px;
    height: 60px;
    border-width: 3px;
  }
  .roadmap-node .node-num {
    font-size: 1.2rem;
  }
  .roadmap-node .node-label {
    font-size: 0.55rem;
  }
  .roadmap-step {
    gap: 1rem;
  }
}

/* Capstone Home Section styling */
.capstone-horizontal-card {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  align-items: stretch;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capstone-horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.capstone-card-info {
  flex: 2;
  min-width: 280px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.capstone-card-features {
  flex: 1;
  min-width: 250px;
  border-right: 1px solid var(--border-color);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .capstone-horizontal-card {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .capstone-card-features {
    border-right: none;
    border-top: 1px solid var(--border-color);
    padding-right: 0;
    padding-top: 1.5rem;
  }
}
