
/* Keep site header and navigation visible - removed hiding styles */

/* Apply minimal body styles when lesson player is active */
body:has(.lesson-player) {
  margin: 0;
  padding: 0;
}

/* Override any parent container constraints only for lesson player */
.lesson-player .container,
.lesson-player .main-content,
.lesson-player .wrapper {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lesson-player {
  display: flex;
  height: calc(100vh - 80px);
  width: 100vw;
  position: fixed;
  top: 80px;
  left: 0;
  z-index: 1000;
}

/* LEFT SIDEBAR */
.lesson-sidebar {
  width: 500px;
  border-right: 1px solid #222222;
  background: #0f0f0f;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 32px 24px;
  border-bottom: 1px solid #222222;
}

.sidebar-header h2 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.sidebar-header p {
  color: #999999;
  margin: 0 0 16px 0;
  font-size: 14px;
}

.course-progress-section {
  margin-top: 16px;
}

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

.progress-bar-sidebar {
  width: 100%;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-sidebar-fill {
  height: 100%;
  background: #60a5fa;
  transition: width 0.3s ease;
}

/* Sprint Navigation */
.sprint-nav {
  padding: 24px 16px;
}

.sprint-section {
  margin-bottom: 8px;
}

.sprint-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.sprint-toggle:hover {
  background: #1a1a1a;
}

.sprint-chevron {
  width: 16px;
  height: 16px;
  color: #999999;
  flex-shrink: 0;
}

.sprint-info {
  flex: 1;
}

.sprint-title {
  color: #e0e0e0;
  font-size: 14px;
  margin-bottom: 2px;
}

.sprint-weeks {
  color: #60a5fa;
  font-size: 12px;
}

.lesson-list {
  margin-left: 24px;
  margin-top: 4px;
}

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

.lesson-item:hover {
  background: #151515;
}

.lesson-item.active {
  background: #1a1a1a;
}

.lesson-item.active .lesson-title {
  color: #ffffff;
}

.lesson-status-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lesson-status-icon.completed {
  color: #60a5fa;
}

.lesson-status-icon.incomplete {
  color: #444444;
}

.lesson-title {
  color: #cccccc;
  font-size: 14px;
  flex: 1;
}

/* MAIN CONTENT AREA */
.lesson-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Bar */
.lesson-topbar {
  border-bottom: 1px solid #222222;
  background: #0a0a0a;
  padding: 16px 24px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #60a5fa;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.back-btn:hover {
  background: #1a1a1a;
  color: #93c5fd;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999999;
  font-size: 14px;
}

.breadcrumbs .current {
  color: #e0e0e0;
}

.topbar-progress {
  width: 100%;
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.topbar-progress-fill {
  height: 100%;
  background: #60a5fa;
  width: 15%;
  transition: width 0.3s ease;
}

/* Lesson Content */
.lesson-content {
  flex: 1;
  overflow-y: auto;
  padding: 48px 64px;
  background: #0a0a0a;
}

.lesson-content-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.lesson-header h1 {
  color: #ffffff;
  font-size: 2rem;
  margin: 0 0 12px 0;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 32px;
}

.lesson-body {
  color: #cccccc;
  line-height: 1.7;
}

.lesson-body h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 32px 0 16px 0;
}

.lesson-body h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 24px 0 12px 0;
}

.lesson-body h4 {
  color: #e0e0e0;
  font-size: 1.1rem;
  margin: 20px 0 10px 0;
}

.lesson-body p {
  margin-bottom: 16px;
}

.lesson-body ul, .lesson-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.lesson-body li {
  margin-bottom: 8px;
}

.lesson-body a {
  color: #60a5fa;
  text-decoration: none;
}

.lesson-body a:hover {
  text-decoration: underline;
}

.lesson-body code {
  background: #1a1a1a;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #e0e0e0;
}

.lesson-body pre {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.lesson-body pre code {
  background: none;
  padding: 0;
}

.lesson-body blockquote {
  border-left: 4px solid #60a5fa;
  padding-left: 16px;
  margin-left: 0;
  color: #999999;
}

.lesson-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.lesson-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.lesson-body table th,
.lesson-body table td {
  border: 1px solid #2a2a2a;
  padding: 8px 12px;
  text-align: left;
}

.lesson-body table th {
  background: #1a1a1a;
  color: #ffffff;
}

/* Assignment Submission Widget */
.assignment-submission {
  margin-top: 48px;
  padding: 24px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

.assignment-submission h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assignment-submission-icon {
  color: #60a5fa;
}

.submission-options {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.submission-tab {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #cccccc;
  cursor: pointer;
  transition: all 0.2s;
}

.submission-tab:hover {
  background: #0f0f0f;
  color: #ffffff;
}

.submission-tab.active {
  background: #60a5fa;
  color: #0a0a0a;
  border-color: #60a5fa;
}

.submission-form {
  display: none;
}

.submission-form.active {
  display: block;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: #e0e0e0;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #60a5fa;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.file-upload-area {
  border: 2px dashed #2a2a2a;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-area:hover {
  border-color: #60a5fa;
  background: #0f0f0f;
}

.file-upload-area.dragover {
  border-color: #60a5fa;
  background: #0f0f0f;
}

.file-upload-icon {
  font-size: 48px;
  color: #60a5fa;
  margin-bottom: 12px;
}

.file-upload-text {
  color: #cccccc;
  margin-bottom: 8px;
}

.file-upload-hint {
  color: #666666;
  font-size: 12px;
}

.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #0f0f0f;
  border-radius: 6px;
  margin-bottom: 8px;
}

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

.file-name {
  color: #e0e0e0;
  font-size: 14px;
}

.file-size {
  color: #999999;
  font-size: 12px;
}

.remove-file {
  background: transparent;
  border: none;
  color: #999999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.remove-file:hover {
  background: #1a1a1a;
  color: #ff6b6b;
}

.submit-btn {
  padding: 12px 24px;
  background: #60a5fa;
  color: #0a0a0a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover {
  background: #93c5fd;
}

.submit-btn:disabled {
  background: #2a2a2a;
  color: #666666;
  cursor: not-allowed;
}

.submission-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  display: none;
}

.submission-status.success {
  display: block;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid #60a5fa;
  color: #60a5fa;
}

.submission-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* Bottom Navigation */
.lesson-bottom {
  border-top: 1px solid #222222;
  background: #0f0f0f;
  padding: 24px 64px;
}

.lesson-bottom-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
}

.btn-outline:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-primary {
  background: #60a5fa;
  color: #0a0a0a;
}

.btn-primary:hover {
  background: #93c5fd;
}

@media (max-width: 768px) {
  .lesson-player {
    flex-direction: column;
    height: auto;
    position: static;
    width: 100%;
  }

  .lesson-sidebar {
    display: none;
  }

  .lesson-main {
    flex: none;
    width: 100%;
  }

  .floating-menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #60a5fa;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .floating-menu-btn:hover {
    background: #3b82f6;
    transform: scale(1.1);
  }

  .floating-menu-btn:active {
    transform: scale(0.95);
  }

  .timeline-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 800px;
    height: 80vh;
    background: #0a0a0a;
    border: 1px solid #222222;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
  }

  .timeline-modal.open {
    display: flex;
  }

  .timeline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    display: none;
  }

  .timeline-modal-overlay.open {
    display: block;
  }

  .timeline-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #1f1f1f;
    background: #111111;
  }

  .timeline-modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
  }

  .timeline-close-btn {
    background: transparent;
    border: none;
    color: #999999;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .timeline-close-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
  }

  .timeline-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }

  /* Sprint cards in modal - matching timeline view */
  .modal-sprint-card {
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  .modal-sprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1f2338;
  }

  .modal-sprint-title {
    color: #f8fafc;
    font-size: 1.2rem;
    margin: 0;
  }

  .modal-sprint-toggle {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #60a5fa;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
  }

  .modal-sprint-toggle:hover {
    background: #1a1a1a;
  }

  .modal-lessons {
    display: none;
  }

  .modal-lessons.expanded {
    display: block;
  }

  .modal-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #222222;
    border-radius: 8px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s;
    margin-bottom: 8px;
  }

  .modal-lesson-item:hover {
    background: #1a1a1a;
    border-color: #60a5fa;
  }

  .modal-lesson-item.active {
    background: #1a1a1a;
    border-color: #60a5fa;
    color: #60a5fa;
  }

  .modal-lesson-status {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .modal-lesson-status.completed {
    color: #60a5fa;
  }

  .modal-lesson-status.incomplete {
    color: #444444;
  }

  .modal-lesson-title {
    flex: 1;
    font-size: 14px;
  }

  .lesson-topbar {
    padding: 12px 16px;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .breadcrumbs {
    font-size: 12px;
  }

  .lesson-content {
    padding: 16px;
  }

  .lesson-header h1 {
    font-size: 1.5rem;
  }

  .lesson-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lesson-bottom {
    padding: 16px;
  }

  .lesson-bottom-inner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .bottom-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .assignment-submission {
    margin-top: 24px;
    padding: 16px;
  }

  .submission-options {
    flex-direction: column;
    gap: 8px;
  }

  .submission-tab {
    width: 100%;
    text-align: center;
  }

  .file-upload-area {
    padding: 20px;
  }

  .file-upload-icon {
    font-size: 32px;
  }
}

