/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2a1810 50%, #1a1a1a 75%, #0a0a0a 100%);
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

/* App Layout */
.app {
  display: flex;
  height: 100vh;
  position: relative;
}

/* Sidebar Styles */
.sidebar {
  width: 320px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Profile Section */
.profile-section {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 14px;
  color: rgba(255, 215, 0, 0.8);
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffa500);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Navigation */
.navigation {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}

.navigation h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 215, 0, 0.1);
  color: white;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  color: white;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.nav-item i {
  width: 20px;
  color: #ffd700;
}

.nav-item.active i {
  color: #ffd700;
}

/* Modules Section */
.modules-section {
  padding: 16px;
}

.modules-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.module-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

.module-item.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.module-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-item.completed .module-icon {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.module-item:not(.completed) .module-icon {
  background: #6b7280;
}

.module-info {
  flex: 1;
}

.module-info h5 {
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}

.module-duration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.module-duration i {
  width: 12px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 320px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Mobile Header */
.mobile-header {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 16px;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-btn {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.2);
  border: none;
  color: #ffd700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 215, 0, 0.3);
}

.mobile-header h1 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spacer {
  width: 40px;
}

/* Content Container */
.content-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

/* Views */
.view {
  display: none;
  height: 100%;
}

.view.active {
  display: block;
}

.view-content {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Page Headers */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.welcome-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.welcome-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.welcome-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.stat-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.stat-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon.green {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.stat-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.stat-icon.gold {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.stat-icon.orange {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

/* Section */
.section {
  margin-bottom: 48px;
}

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

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.view-all-btn {
  background: none;
  border: none;
  color: #ffd700;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.view-all-btn:hover {
  color: #ffa500;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.course-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.course-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-4px);
}

.course-thumbnail {
  position: relative;
  height: 192px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.5);
}

/* Favorite Button */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffd700;
  transform: scale(1.1);
}

.favorite-btn.active {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.favorite-btn.active:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
}

/* Player Favorite Button */
.player-favorite-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.2);
  border: none;
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.player-favorite-btn:hover {
  background: rgba(255, 215, 0, 0.3);
}

.player-favorite-btn.active {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.course-info {
  padding: 24px;
}

.course-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.course-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.course-progress span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.course-progress .progress-bar {
  width: 64px;
  height: 8px;
}

/* Course Card Large */
.course-card-large {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  margin-bottom: 32px;
}

.course-card-large:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.course-card-large .course-thumbnail {
  position: relative;
  height: 240px;
}

.course-level {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.course-rating {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 14px;
}

.course-rating i {
  color: #ffd700;
}

.course-content {
  padding: 24px;
}

.course-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.course-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.continue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.continue-btn:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
}

.module-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.module-card .module-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-card.completed .module-icon {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.module-card:not(.completed) .module-icon {
  background: #6b7280;
}

.module-card .module-info {
  flex: 1;
}

.module-card .module-info h4 {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}

.module-card .module-duration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-actions .favorite-btn {
  position: static;
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.module-play {
  width: 32px;
  height: 32px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffd700;
}

.module-card:hover .module-play {
  opacity: 1;
}

/* Favorites Grid */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.favorite-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.favorite-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-4px);
}

.favorite-thumbnail {
  position: relative;
  height: 192px;
  overflow: hidden;
}

.favorite-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.favorite-card:hover .favorite-thumbnail img {
  transform: scale(1.05);
}

.favorite-info {
  padding: 24px;
}

.favorite-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.favorite-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.favorite-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.progress-text {
  color: #ffd700;
  font-weight: 500;
}

/* Quick Actions */
.quick-actions {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.quick-actions h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.action-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.action-card:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 215, 0, 0.4);
}

.action-card i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
  color: #ffd700;
}

.action-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.action-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Player View */
.player-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.2);
  border: none;
  color: #ffd700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 215, 0, 0.3);
}

.player-info h1 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.meta-item.completed {
  color: #ffd700;
}

.notes-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.2);
  border: none;
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notes-toggle:hover {
  background: rgba(255, 215, 0, 0.3);
}

.player-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.video-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-player {
  flex: 1;
  background: black;
  position: relative;
}

.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-description {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  padding: 24px;
}

.video-description h2 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.video-description p {
  color: rgba(255, 255, 255, 0.7);
}

.notes-sidebar {
  width: 320px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 215, 0, 0.2);
  padding: 24px;
  overflow-y: auto;
  display: none;
}

.notes-sidebar.active {
  display: block;
}

.notes-sidebar h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.notes-list {
  margin-bottom: 24px;
}

.note-item {
  background: rgba(255, 215, 0, 0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  margin-bottom: 12px;
}

.note-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.add-note textarea {
  width: 100%;
  height: 128px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: white;
  resize: none;
  font-family: inherit;
  margin-bottom: 12px;
}

.add-note textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.add-note textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 1px #ffd700;
}

.add-note button {
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.add-note button:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
}

/* Profile Edit Form */
.profile-edit-form {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.profile-edit-form h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 1px #ffd700;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cancel-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

.save-btn {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
}

/* Chart Section */
.chart-section {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  margin-bottom: 32px;
}

.chart-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.weekly-chart {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 192px;
  gap: 16px;
}

.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar {
  width: 100%;
  background: linear-gradient(to top, #ffd700, #ffa500);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: all 0.5s ease;
}

.chart-bar span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.chart-bar small {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

/* Achievements Section */
.achievements-section {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.achievements-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.achievement-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  flex-shrink: 0;
}

.achievement-info {
  flex: 1;
}

.achievement-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.achievement-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.achievement-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Profile Layout */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.profile-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  height: fit-content;
}

.profile-avatar-section {
  text-align: center;
  margin-bottom: 24px;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.avatar-container img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #ffd700;
  object-fit: cover;
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  border-radius: 50%;
  color: #0a0a0a;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.avatar-edit:hover {
  transform: scale(1.1);
}

.profile-avatar-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.user-level {
  color: #ffd700;
  font-weight: 500;
  margin-bottom: 8px;
}

.rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.rating i {
  color: #ffd700;
}

.profile-progress {
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.progress-info span:first-child {
  color: rgba(255, 255, 255, 0.6);
}

.progress-info span:last-child {
  color: white;
  font-weight: 500;
}

.edit-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-profile-btn:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.stat-item .stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.personal-info {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.personal-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-item label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.info-value {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  color: white;
}

.info-value i {
  color: #ffd700;
  width: 16px;
}

.certificates-section {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.certificates-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.certificates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certificate-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.certificate-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  flex-shrink: 0;
}

.certificate-info {
  flex: 1;
}

.certificate-info h4 {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}

.certificate-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.certificate-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-btn {
  background: none;
  border: none;
  color: #ffd700;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.download-btn:hover {
  color: #ffa500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 16px;
  color: rgba(255, 215, 0, 0.3);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.empty-state-small {
  text-align: center;
  padding: 32px 16px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-state-small i {
  font-size: 32px;
  margin-bottom: 12px;
  color: rgba(255, 215, 0, 0.3);
}

.empty-state-small p {
  font-size: 14px;
}

/* Certificates Grid */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.certificate-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  text-align: center;
}

.certificate-header {
  margin-bottom: 16px;
}

.certificate-header i {
  font-size: 48px;
  color: #ffd700;
  margin-bottom: 12px;
}

.certificate-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.certificate-info {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.6);
}

.download-certificate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-certificate:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
}

/* Settings */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.settings-section {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.settings-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.setting-item {
  margin-bottom: 16px;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: white;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #ffd700;
}

/* Support Chat */
.support-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

.chat-toggle.active {
  transform: rotate(180deg);
}

.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 384px;
  height: 480px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  animation: slideInUp 0.3s ease;
}

.chat-window.active {
  display: flex;
}

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

.chat-header {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
  border-radius: 16px 16px 0 0;
}

.chat-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
}

.chat-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.chat-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  gap: 8px;
  max-width: 80%;
}

.message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.user-message .message-avatar {
  background: #6b7280;
  color: white;
}

.message-content {
  flex: 1;
}

.message-header {
  margin-bottom: 4px;
}

.message-header span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.message-content p {
  font-size: 14px;
  color: white;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 12px;
}

.bot-message .message-content p {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.user-message .message-content p {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #0a0a0a;
}

.chat-input {
  padding: 16px;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  display: flex;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 14px;
}

.chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-input input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 1px #ffd700;
}

.chat-input button {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  color: #0a0a0a;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-input button:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
  transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-header {
    display: flex;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
  }

  .mobile-overlay.active {
    display: block;
  }

  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .welcome-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .notes-toggle {
    display: none;
  }

  .notes-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 50vh;
    border-left: none;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px 16px 0 0;
    z-index: 1001;
  }

  .player-container {
    flex-direction: column;
  }

  .video-section {
    height: 50vh;
  }

  .chat-window {
    width: calc(100vw - 48px);
    height: 60vh;
    right: 24px;
    bottom: 72px;
  }
}

@media (max-width: 640px) {
  .view-content {
    padding: 16px;
  }

  .welcome-section {
    padding: 24px;
  }

  .welcome-content h1 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-info h3 {
    font-size: 24px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .weekly-chart {
    gap: 8px;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .chat-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 80px;
  }

  .support-chat {
    bottom: 16px;
    right: 16px;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.3s ease;
}

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

.slide-in {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success notification */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  display: none;
}

.success-notification.show {
  display: block;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
