/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base font sizes and responsive typography */
:root {
  --base-font-size: 16px;
  --h1-size: 2.5rem;
  --h2-size: 2rem;
  --h3-size: 1.5rem;
  --h4-size: 1.25rem;
  --h5-size: 1.1rem;
  --h6-size: 1rem;
  --small-text: 0.875rem;
  --tiny-text: 0.75rem;
}

/* Mobile-first responsive typography */
@media (max-width: 767px) {
  :root {
    --base-font-size: 14px;
    --h1-size: 2rem;
    --h2-size: 1.75rem;
    --h3-size: 1.5rem;
    --h4-size: 1.25rem;
    --h5-size: 1.1rem;
    --h6-size: 1rem;
  }
}

@media (min-width: 1920px) {
  :root {
    --base-font-size: 18px;
    --h1-size: 3rem;
    --h2-size: 2.5rem;
    --h3-size: 2rem;
    --h4-size: 1.5rem;
    --h5-size: 1.25rem;
    --h6-size: 1.1rem;
  }
}

html {
  font-size: var(--base-font-size);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #fafafa;
}

/* Main container wrapper */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Container responsive padding */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

header {
  background: white;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav li {
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  nav ul {
    font-size: var(--small-text);
    gap: 0.25rem;
  }
  
  nav li {
    margin-right: 0.25rem;
  }
}

@media (min-width: 768px) {
  nav li {
    margin-right: 1rem;
  }
}

nav a {
  text-decoration: none;
  color: #333;
  padding: 0.25rem 0.5rem;
  display: inline-block;
}

nav a:hover {
  color: #0066cc;
}

/* Style the welcome text to match nav links */
nav .welcome-text {
  color: #333;
  padding: 0.25rem 0.5rem;
  display: inline-block;
}

/* Notification badge */
.notification-badge {
  display: inline-block;
  background-color: #dc3545;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  min-width: 20px;
  text-align: center;
}

main {
  background: white;
  min-height: 80vh;
  min-height: 80svh;
}

main .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: var(--h1-size);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content {
  margin: 2rem 0;
}

footer {
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

footer .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

/* Dashboard Styles */
.dashboard {
  margin: 2rem 0;
}

@media (max-width: 480px) {
  .dashboard {
    margin: 1rem 0;
  }
}

/* Full-width backgrounds for dashboard sections */
.full-width-section {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.super-admin-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.super-admin-dashboard>h3 {
  color: white;
}

.admin-actions {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.admin-actions p,
.admin-actions ul,
.admin-actions li,
.admin-actions strong {
  color: #333;
}

.org-admin-dashboard {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.org-admin-dashboard>h3 {
  color: white;
}

.org-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.org-info p,
.org-info ul,
.org-info li,
.org-info strong {
  color: #333;
}

.member-dashboard {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.member-dashboard>h3 {
  color: white;
}

.student-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.student-info p,
.student-info ul,
.student-info li,
.student-info strong {
  color: #333;
}

.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .quick-actions {
    gap: 0.5rem;
  }
}

.action-btn {
  background: #0066cc;
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: var(--small-text);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .action-btn {
    padding: 0.5rem 0.75rem;
    font-size: var(--tiny-text);
    flex: 1 1 auto;
    min-width: 120px;
  }
}

.action-btn:hover {
  background: #0052a3;
  transform: translateY(-2px);
  color: white;
}

.recent-activity {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}



/* Flash message styles */
.flash-messages {
  margin: 1rem 0;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.flash-notice {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-messages {
  padding: 1em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
}

.flash {
  margin-bottom: 0.5em;
  padding: 0.5em;
  background-color: #eee;
}

.flash-notice {
  background-color: #d4edda;
  color: #155724;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Submission History Styles */
.submission-history {
  margin-top: 2rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
}

.submission-history summary {
  cursor: pointer;
  font-weight: bold;
  color: #495057;
  padding: 0.5rem;
}

.history-list {
  margin-top: 1rem;
}

.history-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

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

.submission-number {
  font-weight: bold;
  color: #495057;
}

.history-item .date {
  color: #6c757d;
  font-size: 0.9em;
}

.history-item .status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
}

.submission-details {
  margin-top: 0.5rem;
}

.submission-details summary {
  cursor: pointer;
  color: #0066cc;
  font-size: 0.9em;
  padding: 0.25rem;
}

.details-content {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.details-content h5 {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  color: #495057;
}

.feedback-box {
  background: #e9ecef;
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.reviewer-name {
  font-weight: bold;
  color: #6c757d;
  font-size: 0.9em;
  margin-bottom: 0.25rem;
}

/* Course Styles */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 576px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* Course card link wrapper */
.course-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-card-link:hover {
  text-decoration: none;
}

.course-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

@media (min-width: 768px) {
  .course-card {
    padding: 1.5rem;
  }
}

.course-card-link:hover .course-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-card h3 {
  margin-bottom: 0.5rem;
  color: #0066cc;
}

.course-description {
  color: #6c757d;
  margin-bottom: 1rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.status {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.status.published {
  background-color: #d4edda;
  color: #155724;
}

.status.draft {
  background-color: #fff3cd;
  color: #856404;
}

.progress {
  color: #495057;
}

/* Course Detail Styles */
.breadcrumb,
.breadcrumbs {
  margin-bottom: 1.5rem;
  color: #6c757d;
  padding: 0;
  margin-left: 0;
}

.breadcrumb a,
.breadcrumbs a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb .current-module,
.breadcrumbs .current-module {
  color: #6c757d;
  font-weight: 500;
}

.modules-list {
  margin-top: 2rem;
}

.module {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .module {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.module h3 {
  margin-bottom: 0.5rem;
}

.module-description {
  color: #6c757d;
  margin-bottom: 1rem;
}

.lessons {
  list-style: none;
  padding: 0;
}

.lesson {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dee2e6;
}

.lesson:last-child {
  border-bottom: none;
}

.lesson a {
  flex: 1;
  text-decoration: none;
  color: #333;
}

.lesson:hover a {
  color: #0066cc;
}

.lesson-type {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin: 0 0.5rem;
}

.lesson-type.markdown {
  background-color: #e9ecef;
  color: #495057;
}

.lesson-type.url {
  background-color: #cfe2ff;
  color: #084298;
}

.lesson-type.video {
  background-color: #f8d7da;
  color: #842029;
}

.lesson .status {
  font-size: 0.75rem;
}

/* Lesson View Styles */
.lesson-container {
  max-width: 100%;
  margin: 0 auto;
}

.lesson-content {
  margin: 2rem 0;
}

.content-display {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.markdown-content {
  line-height: 1.8;
}

.markdown-content > *:first-child {
  margin-top: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.markdown-content h1 {
  font-size: var(--h1-size);
}

.markdown-content h2 {
  font-size: var(--h2-size);
}

.markdown-content h3 {
  font-size: var(--h3-size);
}

.markdown-content h4 {
  font-size: var(--h4-size);
}

.markdown-content h5 {
  font-size: var(--h5-size);
}

.markdown-content h6 {
  font-size: var(--h6-size);
}

.markdown-content p {
  margin-bottom: 1em;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.markdown-content li {
  margin-bottom: 0.25em;
}

.markdown-content code {
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.markdown-content pre {
  background-color: #f5f5f5;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1em;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1em;
  margin-left: 0;
  margin-bottom: 1em;
  color: #666;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1em;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
}

.markdown-content th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
}

.markdown-content a {
  color: #0066cc;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

/* Syntax highlighting styles */
.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight .cm {
  color: #999988;
  font-style: italic;
}

.highlight .cp {
  color: #999999;
  font-weight: bold;
}

.highlight .c1 {
  color: #999988;
  font-style: italic;
}

.highlight .cs {
  color: #999999;
  font-weight: bold;
  font-style: italic;
}

.highlight .c,
.highlight .cd {
  color: #999988;
  font-style: italic;
}

.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}

.highlight .gd {
  color: #000000;
  background-color: #ffdddd;
}

.highlight .ge {
  color: #000000;
  font-style: italic;
}

.highlight .gr {
  color: #aa0000;
}

.highlight .gh {
  color: #999999;
}

.highlight .gi {
  color: #000000;
  background-color: #ddffdd;
}

.highlight .go {
  color: #888888;
}

.highlight .gp {
  color: #555555;
}

.highlight .gs {
  font-weight: bold;
}

.highlight .gu {
  color: #aaaaaa;
}

.highlight .gt {
  color: #aa0000;
}

.highlight .kc {
  color: #000000;
  font-weight: bold;
}

.highlight .kd {
  color: #000000;
  font-weight: bold;
}

.highlight .kn {
  color: #000000;
  font-weight: bold;
}

.highlight .kp {
  color: #000000;
  font-weight: bold;
}

.highlight .kr {
  color: #000000;
  font-weight: bold;
}

.highlight .kt {
  color: #445588;
  font-weight: bold;
}

.highlight .k,
.highlight .kv {
  color: #000000;
  font-weight: bold;
}

.highlight .mf {
  color: #009999;
}

.highlight .mh {
  color: #009999;
}

.highlight .il {
  color: #009999;
}

.highlight .mi {
  color: #009999;
}

.highlight .mo {
  color: #009999;
}

.highlight .m,
.highlight .mb {
  color: #009999;
}

.highlight .mx {
  color: #009999;
}

.highlight .sb {
  color: #d14;
}

.highlight .sc {
  color: #d14;
}

.highlight .sd {
  color: #d14;
}

.highlight .s2 {
  color: #d14;
}

.highlight .se {
  color: #d14;
}

.highlight .sh {
  color: #d14;
}

.highlight .si {
  color: #d14;
}

.highlight .sx {
  color: #d14;
}

.highlight .sr {
  color: #009926;
}

.highlight .s1 {
  color: #d14;
}

.highlight .ss {
  color: #990073;
}

.highlight .s {
  color: #d14;
}

.highlight .na {
  color: #008080;
}

.highlight .bp {
  color: #999999;
}

.highlight .nb {
  color: #0086B3;
}

.highlight .nc {
  color: #445588;
  font-weight: bold;
}

.highlight .no {
  color: #008080;
}

.highlight .nd {
  color: #3c5d5d;
  font-weight: bold;
}

.highlight .ni {
  color: #800080;
}

.highlight .ne {
  color: #990000;
  font-weight: bold;
}

.highlight .nf {
  color: #990000;
  font-weight: bold;
}

.highlight .nl {
  color: #990000;
  font-weight: bold;
}

.highlight .nn {
  color: #555555;
}

.highlight .nt {
  color: #000080;
}

.highlight .vc {
  color: #008080;
}

.highlight .vg {
  color: #008080;
}

.highlight .vi {
  color: #008080;
}

.highlight .nv {
  color: #008080;
}

.highlight .ow {
  color: #000000;
  font-weight: bold;
}

.highlight .o {
  color: #000000;
  font-weight: bold;
}

.highlight .w {
  color: #bbbbbb;
}

/* Video content styles */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 1em;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.assignment-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #dee2e6;
}

.assignment-instructions {
  background: #e9ecef;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.assignment-instructions ul,
.assignment-instructions ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.assignment-instructions li {
  margin-bottom: 0.25em;
}

.assignment-instructions h1,
.assignment-instructions h2,
.assignment-instructions h3,
.assignment-instructions h4,
.assignment-instructions h5,
.assignment-instructions h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.assignment-instructions p {
  margin-bottom: 1em;
}

.assignment-instructions code {
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.assignment-instructions strong {
  font-weight: 600;
}

.assignment-instructions em {
  font-style: italic;
}

.reviewer-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.reviewer-info h3 {
  margin-bottom: 1rem;
  color: #495057;
  font-size: 1.25rem;
}

.reviewer-info h3 i {
  color: #28a745;
  margin-right: 0.5rem;
}

.reviewer-details p {
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.reviewer-details strong {
  color: #495057;
  font-weight: 600;
}

.submission-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group textarea,
.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.radio-group {
  margin-bottom: 1.5rem;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-weight: 400;
}

.radio-label input[type="radio"] {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  width: auto;
  flex-shrink: 0;
}

.radio-label .approved {
  color: #155724;
  background-color: #d4edda;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.radio-label .needs-improvement {
  color: #721c24;
  background-color: #f8d7da;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

/* =============================================================================
   BUTTON SYSTEM - Comprehensive button styles for consistent UI
   ============================================================================= */

/* Base button class - shared styles for all buttons */
.btn, .button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background-color: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease-in-out;
  min-width: auto;
  white-space: nowrap;
}

.btn:focus, .button:focus,
.btn:hover, .button:hover {
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active, .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled, .button:disabled,
.btn.disabled, .button.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* PRIMARY BUTTONS - Main actions, most important */
.btn-primary, .button.primary {
  background-color: #0066cc;
  border-color: #0066cc;
  color: #ffffff;
}

.btn-primary:hover, .button.primary:hover,
.btn-primary:focus, .button.primary:focus {
  background-color: #0052a3;
  border-color: #004080;
  color: #ffffff;
}

.btn-primary:active, .button.primary:active {
  background-color: #004080;
  border-color: #003366;
}

/* SECONDARY BUTTONS - Secondary actions, supporting */
.btn-secondary, .button.secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

.btn-secondary:hover, .button.secondary:hover,
.btn-secondary:focus, .button.secondary:focus {
  background-color: #5a6268;
  border-color: #545b62;
  color: #ffffff;
}

.btn-secondary:active, .button.secondary:active {
  background-color: #545b62;
  border-color: #4e555b;
}

/* TERTIARY BUTTONS - Minimal actions, least prominent */
.btn-tertiary, .button.tertiary {
  background-color: transparent;
  border-color: #dee2e6;
  color: #495057;
}

.btn-tertiary:hover, .button.tertiary:hover,
.btn-tertiary:focus, .button.tertiary:focus {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}

.btn-tertiary:active, .button.tertiary:active {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

/* DANGER BUTTONS - Destructive actions */
.btn-danger, .button.danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
}

.btn-danger:hover, .button.danger:hover,
.btn-danger:focus, .button.danger:focus {
  background-color: #c82333;
  border-color: #bd2130;
  color: #ffffff;
}

.btn-danger:active, .button.danger:active {
  background-color: #bd2130;
  border-color: #b21f2d;
}

/* SUCCESS BUTTONS - Positive actions */
.btn-success, .button.success {
  background-color: #28a745;
  border-color: #28a745;
  color: #ffffff;
}

.btn-success:hover, .button.success:hover,
.btn-success:focus, .button.success:focus {
  background-color: #218838;
  border-color: #1e7e34;
  color: #ffffff;
}

.btn-success:active, .button.success:active {
  background-color: #1e7e34;
  border-color: #1c7430;
}

/* WARNING BUTTONS - Caution actions */
.btn-warning, .button.warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
}

.btn-warning:hover, .button.warning:hover,
.btn-warning:focus, .button.warning:focus {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
}

.btn-warning:active, .button.warning:active {
  background-color: #d39e00;
  border-color: #c69500;
}

/* BUTTON SIZES */
.btn-sm, .button.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 4px;
}

.btn-lg, .button.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 8px;
}

/* BLOCK BUTTONS - Full width */
.btn-block, .button.block {
  display: block;
  width: 100%;
}

/* LINK BUTTONS - Look like links but behave like buttons */
.btn-link, .button.link {
  font-weight: 400;
  color: #0066cc;
  text-decoration: underline;
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.btn-link:hover, .button.link:hover,
.btn-link:focus, .button.link:focus {
  color: #0052a3;
  text-decoration: underline;
  background-color: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

/* ICON BUTTONS - Buttons with icons */
.btn .icon, .button .icon {
  margin-right: 0.5rem;
}

.btn .icon:last-child, .button .icon:last-child {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* BUTTON GROUPS */
.btn-group {
  display: inline-flex;
  vertical-align: middle;
}

.btn-group > .btn, .btn-group > .button {
  position: relative;
  flex: 1 1 auto;
  border-radius: 0;
  margin-left: -1px;
}

.btn-group > .btn:first-child, .btn-group > .button:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  margin-left: 0;
}

.btn-group > .btn:last-child, .btn-group > .button:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* RESPONSIVE BUTTON STYLES */
@media (max-width: 768px) {
  .btn, .button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .btn-sm, .button.small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .btn-lg, .button.large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .btn, .button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Make buttons full width on mobile for better UX */
  .btn-responsive, .button.responsive {
    display: block;
    width: 100%;
  }
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .navigation {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
  }
}

.navigation .button {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: var(--small-text);
}

@media (max-width: 480px) {
  .navigation .button {
    width: 100%;
    padding: 0.75rem;
  }
}

@media (min-width: 768px) {
  .navigation .button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.navigation .button:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
}

.navigation .button.disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

.navigation .button.disabled:hover {
  transform: none;
  background-color: #e9ecef;
}

.navigation .prev-lesson {
  text-align: left;
}

.navigation .next-lesson {
  text-align: right;
}

.admin-actions {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.admin-actions h2 {
  margin-bottom: 1rem;
}

.admin-actions ul {
  list-style: none;
  padding: 0;
}

.admin-actions li {
  margin-bottom: 0.5rem;
}

.pending-submission,
.approved-submission,
.needs-improvement {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.pending-submission {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
}

.approved-submission {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.needs-improvement {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.submission-history {
  margin-top: 2rem;
}

.submission-history summary {
  cursor: pointer;
  font-weight: 500;
}
/* Admin controls */
.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .lesson-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .lesson-header h1 {
    margin-bottom: 0.5rem;
  }
}

.admin-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-controls .button,
.admin-controls .edit-btn,
.admin-controls .delete-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  min-width: 120px;
  text-align: center;
  font-family: inherit;
  box-sizing: border-box;
  vertical-align: top;
  height: auto;
  line-height: 1.5;
}

.admin-controls form {
  display: inline-block;
  margin: 0;
  vertical-align: top;
}

@media (max-width: 480px) {
  .admin-controls {
    width: 100%;
    gap: 0.25rem;
  }
  
  .admin-controls .button,
  .admin-controls .edit-btn,
  .admin-controls .delete-btn {
    flex: 1;
    min-width: 0;
    font-size: var(--small-text);
    padding: 0.5rem 0.75rem;
  }
}

.admin-controls .edit-btn {
  background-color: #17a2b8;
  color: white;
}

.admin-controls .edit-btn:hover {
  background-color: #138496;
}

.admin-controls .delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.admin-controls .delete-btn:hover {
  background-color: #c82333;
}

/* Form responsive styles */
.form-group {
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .form-group {
    margin-bottom: 1rem;
  }
}

.form-group label {
  font-size: var(--small-text);
  margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

.form-group textarea,
.form-group input,
.form-group select {
  font-size: 1rem;
  padding: 0.625rem;
}

@media (max-width: 480px) {
  .form-group textarea,
  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
}

/* Table responsive styles */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  min-width: 600px;
}

@media (max-width: 768px) {
  table {
    font-size: var(--small-text);
  }
  
  th, td {
    padding: 0.5rem 0.25rem;
  }
}

/* Legacy button responsive styles - now handled by main button system above */

/* Flash messages responsive */
@media (max-width: 480px) {
  .flash-messages {
    margin: 0.5rem 0;
    font-size: var(--small-text);
  }
  
  .flash {
    padding: 0.5rem 0.75rem;
  }
}

/* Dashboard cards responsive */
@media (max-width: 480px) {
  .super-admin-dashboard,
  .org-admin-dashboard,
  .member-dashboard {
    padding: 1.25rem;
  }
  
  .admin-actions,
  .org-info,
  .student-info,
  .recent-activity {
    padding: 1rem;
  }
}

/* Content display responsive */
@media (max-width: 768px) {
  .content-display {
    padding: 1rem;
  }
  
  .markdown-content {
    font-size: var(--small-text);
  }
  
  .markdown-content pre {
    font-size: var(--tiny-text);
    padding: 0.75rem;
    overflow-x: auto;
  }
}

/* Video responsive - already handled but ensure it works */
.video-wrapper {
  max-width: 100%;
  margin: 1rem 0;
}

/* Assignment section responsive */
@media (max-width: 768px) {
  .assignment-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  .assignment-instructions {
    padding: 0.75rem;
    font-size: var(--small-text);
  }
}

/* Submission history responsive */
@media (max-width: 768px) {
  .submission-history {
    padding: 0.75rem;
  }
  
  .history-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Notification badge responsive */
@media (max-width: 480px) {
  .notification-badge {
    font-size: 10px;
    padding: 1px 4px;
    min-width: 16px;
  }
}

/* Breadcrumb responsive */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: var(--small-text);
    margin-bottom: 1rem;
    line-height: 1.8;
  }
}

/* Status badges responsive */
@media (max-width: 480px) {
  .status,
  .lesson-type {
    font-size: var(--tiny-text);
    padding: 0.125rem 0.375rem;
  }
}

/* Lesson list responsive */
@media (max-width: 768px) {
  .lesson {
    padding: 0.625rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .lesson a {
    font-size: var(--small-text);
  }
}

/* Hide elements on mobile if needed */
@media (max-width: 480px) {
  .hide-mobile {
    display: none;
  }
}

/* Landscape mode adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  main {
    padding: 1rem 0;
    min-height: auto;
  }
  
  .navigation {
    flex-direction: row;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large desktop adjustments */
@media (min-width: 1920px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
  
  .markdown-content {
    font-size: 1.125rem;
  }
}

/* Additional container styles for better layout */
@media (min-width: 1400px) {
  /* Center content with max-width already set */
  .hero {
    padding: 3rem 0;
  }
  
  .courses-grid {
    gap: 2rem;
  }
  
  .module {
    max-width: 100%;
  }
}

/* Ensure forms don't exceed container width */
form {
  max-width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
  max-width: 100%;
}

/* Tables should respect container */
.table-responsive {
  max-width: 100%;
}

/* Print styles */
@media print {
  header, footer, .navigation, .admin-controls, .admin-actions {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
  }
  
  .content-display {
    background: white;
    padding: 0;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* Course Completion Indicators */
.course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.course-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.completion-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.completion-indicator i {
  margin-right: 0.25rem;
}

.completion-indicator.completed {
  background-color: #d4edda;
  color: #155724;
}

.completion-indicator.in-progress {
  background-color: #cfe2ff;
  color: #084298;
}

.completion-indicator.not-started {
  background-color: #e9ecef;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .course-header,
  .course-detail-header {
    flex-wrap: wrap;
  }
  
  .course-header h3 {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .course-detail-header h1 {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .completion-indicator {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Finish Course Section */
.finish-course-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.finish-course-section h3 {
  margin-bottom: 1rem;
  color: #333;
}

.finish-course-section i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.ready-to-finish {
  color: #155724;
}

.ready-to-finish h3 {
  color: #155724;
}

.cannot-finish-yet {
  color: #856404;
}

.cannot-finish-yet h3 {
  color: #856404;
}

.course-already-completed {
  color: #004085;
}

.course-already-completed h3 {
  color: #004085;
}

.finish-form {
  margin-top: 1.5rem;
}

.button.large {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* Course Completed Banner */
.course-completed-banner {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.course-completed-banner i {
  font-size: 3rem;
  color: #155724;
  display: block;
  margin-bottom: 1rem;
}

.course-completed-banner h2 {
  color: #155724;
  margin-bottom: 0.5rem;
}

.course-completed-banner p {
  color: #155724;
  margin: 0;
}

/* Reviewer Dashboard Box */
.reviewer-dashboard {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 500px;
}

.reviewer-dashboard h4 {
  margin: 0 0 1rem 0;
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
}

.reviewer-content {
  margin-top: 1rem;
}

.reviewer-type {
  font-weight: 600;
  color: #007bff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.course-item, .course-group {
  margin-bottom: 0.5rem;
}

.course-name {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
  display: block;
}

.module-item, .lesson-item {
  padding-left: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.responsibility-item {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

.resp-type {
  font-weight: 600;
  color: #007bff;
  margin-right: 0.5rem;
}

.reviewer-action {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.reviewer-btn {
  display: inline-block;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.reviewer-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  color: white;
  text-decoration: none;
}

/* Secondary Dashboard Layout */
.secondary-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

/* Responsive design for secondary dashboard */
@media (max-width: 640px) {
  .secondary-dashboard {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .reviewer-dashboard {
    margin: 0;
    padding: 1rem;
    max-width: 100%;
  }
  
  .reviewer-dashboard h4 {
    font-size: 1rem;
  }
  
  .reviewer-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* === Progress Page Styles === */
.progress-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.progress-dashboard h1 {
  margin-bottom: 2rem;
  color: #2c3e50;
  font-weight: 600;
}

.progress-dashboard h2 {
  margin-bottom: 1.5rem;
  color: #34495e;
  font-weight: 500;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 0.5rem;
}

/* Stats Grid - Progress Page (prominent) */
.progress-summary {
  margin-bottom: 3rem;
}

.progress-summary .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.progress-summary .stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.progress-summary .stat-card:hover {
  transform: translateY(-2px);
}

.progress-summary .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.progress-summary .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

/* Stats Grid - Home Page (subtle) */
.recent-activity .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.recent-activity .stat-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  transition: all 0.2s ease;
}

.recent-activity .stat-card:hover {
  background: #f1f3f4;
  border-color: #dee2e6;
}

.recent-activity .stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.recent-activity .stat-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  display: block;
}

/* Progress Section */
.progress-section {
  margin-bottom: 3rem;
}

/* Course Progress Cards */
.course-progress-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.course-progress-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-progress-link:hover {
  text-decoration: none;
}

.course-progress-card {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.course-progress-link:hover .course-progress-card,
.course-progress-link:focus .course-progress-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.course-progress-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
  border-radius: 12px;
}

.course-info h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.course-progress-link:hover .course-info h3,
.course-progress-link:focus .course-info h3 {
  color: #e74c3c;
}

.course-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Progress Bars */
.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

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

.progress-text {
  font-weight: 600;
  color: #495057;
  min-width: 3rem;
  text-align: right;
}

/* Status Labels */
.progress-status .status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status.completed {
  background-color: #d4edda;
  color: #155724;
}

.status.in-progress {
  background-color: #fff3cd;
  color: #856404;
}

.status.not-started {
  background-color: #f8d7da;
  color: #721c24;
}

/* Recent Activity */
.recent-activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f8f9fa;
}

.activity-icon i {
  font-size: 1rem;
}

.status-completed {
  color: #28a745;
}

.status-submitted {
  color: #17a2b8;
}

.status-in-progress {
  color: #ffc107;
}

.status-not-started {
  color: #6c757d;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  margin-bottom: 0.25rem;
}

.activity-content h4 a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

.activity-content h4 a:hover {
  color: #e74c3c;
}

.activity-course {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.activity-status {
  font-size: 0.85rem;
  color: #666;
}

.activity-time {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .progress-dashboard {
    padding: 1rem;
  }
  
  .progress-summary .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .progress-summary .stat-card {
    padding: 1rem;
  }
  
  .progress-summary .stat-value {
    font-size: 2rem;
  }
  
  .recent-activity .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .course-progress-card {
    padding: 1rem;
  }
  
  .activity-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .activity-time {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .progress-summary .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .recent-activity .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-bar-container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .progress-text {
    text-align: center;
  }
}

/* === Practice Block Styles === */
.practice-block {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #007bff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.practice-block.completed {
  border-color: #28a745;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.practice-block.completed::before {
  content: "✓ CORRECT";
  position: absolute;
  top: -10px;
  right: 15px;
  background: #28a745;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.practice-question {
  margin-bottom: 1.5rem;
}

.practice-question h4 {
  color: #007bff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.practice-question h4::before {
  content: "💡";
  margin-right: 0.5rem;
  font-size: 1.2em;
}

.practice-question p {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.6;
  margin: 0;
}

.practice-input {
  margin-bottom: 1.5rem;
}

.practice-text-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.practice-text-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.practice-input label {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 2px solid #ced4da;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  position: relative;
}

.practice-input label:hover {
  border-color: #007bff;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.practice-input label:has(input:checked) {
  border-color: #007bff;
  background: #e3f2fd;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.practice-input input[type="radio"] {
  margin-right: 0.75rem;
  transform: scale(1.2);
}

.multiple-choice-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.practice-submit-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.practice-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.practice-submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.practice-feedback {
  border-radius: 8px;
  padding: 0;
  margin-top: 1rem;
  animation: slideDown 0.3s ease-out;
}

.feedback-correct {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #c3e6cb;
  color: #155724;
}

.feedback-incorrect {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1.5rem;
  border-radius: 8px;
}

.feedback-correct h4,
.feedback-incorrect h4 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Enhanced Rich Feedback Styles */
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
  gap: 1rem;
}

.xp-badge {
  background: #28a745;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.progress-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-dots {
  display: flex;
  gap: 0.25rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.dot.filled {
  background: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
}

.reset-indicator {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.explanation-content {
  margin: 0 0 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  border-left: 4px solid currentColor;
}

.explanation-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.8;
}

.correct-answer-section {
  margin: 0 0 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  border-left: 4px solid #ffc107;
}

.correct-answer-highlight {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 193, 7, 0.2);
  border-radius: 4px;
}

.mastery-celebration {
  text-align: center;
  padding: 0.75rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 6px;
  margin-top: 1rem;
}

.celebration-text {
  font-weight: 600;
  color: #28a745;
  font-size: 0.95rem;
}

.encouragement {
  text-align: center;
  padding: 0.5rem;
  margin-top: 1rem;
}

.encouragement-text {
  font-style: italic;
  color: #6c757d;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.try-again-section {
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.try-again-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background-color 0.2s ease;
}

.try-again-btn:hover {
  background: #c82333;
}


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

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@keyframes xpGainFade {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1);
  }
}

/* Responsive Design for Practice Blocks */
@media (max-width: 768px) {
  .practice-block {
    padding: 1rem;
    margin: 1.5rem 0;
  }
  
  .practice-question p {
    font-size: 1rem;
  }
  
  .practice-text-input {
    padding: 0.625rem;
  }
  
  .practice-submit-btn {
    width: 100%;
    padding: 0.875rem;
  }
  
}

@media (max-width: 480px) {
  .practice-block {
    padding: 0.75rem;
    margin: 1rem 0;
  }
  
  .practice-question h4 {
    font-size: 1rem;
  }
  
  .practice-input label {
    padding: 0.375rem;
    font-size: 0.9rem;
  }
  
}

/* Mastery Progress Indicator */
.mastery-progress {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mastery-progress .progress-bar-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mastery-progress .progress-bar {
  flex: 1;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mastery-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc107 0%, #fd7e14 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.mastery-progress .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

.mastery-progress .progress-text {
  font-weight: 600;
  color: #495057;
  font-size: 0.85rem;
  min-width: 3rem;
  text-align: center;
}

.mastery-progress::before {
  content: "🎯 Progress to Mastery";
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
