/* Modern eLearning UI Styles - 2025 */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --success: #00b894;
    --danger: #d63031;
    --gray: #dfe6e9;
    --dark: #23272f;
    --radius: 10px;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: #f9fafb;
}

h1, .h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h2, .h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
h4, .h4 { font-size: 1.1rem; font-weight: 600; }
h5, .h5 { font-size: 1rem; font-weight: 600; }
h6, .h6 { font-size: 0.95rem; font-weight: 600; }

@media (max-width: 575.98px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.3rem; }
  h3, .h3 { font-size: 1.1rem; }
  .btn, .btn-lg { font-size: 1rem; padding: 0.75em 1.25em; }
}

.btn, .btn-lg, .btn-primary, .btn-outline-primary {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.75em 1.5em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.btn-primary {
  background: #fff;
  color: #6c5ce7;
  border: 2px solid #6c5ce7;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #5649c0 0%, #4f46e5 100%);
  color: black;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15);
}

.btn-outline-primary {
  background: #fff;
  color: #6c5ce7;
  border: 2px solid #6c5ce7;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: #6c5ce7;
  color: #fff;
}

.btn-lg {
  font-size: 1.125rem;
  padding: 1em 2em;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
}

.card, .form-section, .navbar, .preview-img {
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(60,72,120,0.07);
}

@media (max-width: 575.98px) {
  .card, .form-section, .navbar, .preview-img {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .btn, .btn-lg {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
  }
  .navbar {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.navbar {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}
.nav-link, .dropdown-item {
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.2s;
}
.nav-link.active, .nav-link:hover, .dropdown-item:hover {
    background: var(--primary);
    color: #fff !important;
}
.btn {
    border-radius: 0.6rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(37,99,235,0.07);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
}

.btn-danger {
    background: linear-gradient(90deg, var(--danger), #b91c1c);
    border: none;
}
.btn:hover {
    box-shadow: 0 2px 8px rgba(37,99,235,0.13);
}
.card, .course-card {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    border: none;
    margin-bottom: 2rem;
}
.course-card {
    min-height: unset;
    max-width: 340px;
    margin: 0 auto 0.5rem auto;
    padding: 0.18rem 0.18rem 0.18rem 0.18rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.07);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transition: box-shadow 0.2s, transform 0.2s;
}
.course-card .btn {
    margin-top: auto;
    font-size: 0.53rem;
    padding: 0.09rem 0.39rem;
}
.hero {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}
.sidebar {
    background: var(--primary-dark);
    color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem 1rem;
    min-height: 90vh;
}
.sidebar .nav-link {
    color: #fff;
    margin-bottom: 0.7rem;
}
.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background: var(--accent);
    color: #fff !important;
}
.profile-dropdown {
    border-radius: 1rem;
    box-shadow: var(--shadow);
}
.lesson-nav-item, .lesson-nav-item:visited, .lesson-nav-item:active, .lesson-nav-item:hover {
    text-decoration: none !important;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}
.lesson-title {
    text-decoration: none !important;
}
/* Responsive tweaks */
@media (max-width: 991px) {
    .sidebar { min-height: auto; border-radius: 0.5rem; }
    .hero { padding: 2rem 1rem; }
    .lesson-nav-item, .lesson-nav-item:visited, .lesson-nav-item:active, .lesson-nav-item:hover {
      margin-top: 0.7rem;
    }
}
@media (max-width: 991.98px) {
  .d-flex.flex-grow-1[style*="padding-top:56px"] {
    padding-top: 0 !important;
  }
}

.mobile-header-best {
  height: 60px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(80,80,120,0.04);
}
.mobile-header-best .rounded-circle {
  box-shadow: 0 2px 8px rgba(80,80,120,0.08);
  border: 2px solid #f3f3f3;
  transition: box-shadow 0.2s;
}
.mobile-header-best .rounded-circle:active,
.mobile-header-best .rounded-circle:focus {
  box-shadow: 0 4px 16px rgba(80,80,120,0.13);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Notes & Discussions Card Styles */
.note-card, .discussion-card {
  background: #f8fafc;
  border-radius: 1.1rem;
  box-shadow: 0 2px 8px rgba(60,60,60,0.07);
  padding: 1rem 1.2rem 0.7rem 1.2rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}
.note-avatar, .discussion-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede9fe 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #6c5ce7;
  font-weight: 700;
  flex-shrink: 0;
}
.note-meta, .discussion-meta {
  font-size: 0.92rem;
  color: #6b7280;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.note-actions, .discussion-actions {
  margin-left: auto;
  display: flex;
  gap: 0.3rem;
}
.note-actions button, .discussion-actions button {
  background: none;
  border: none;
  color: #6c5ce7;
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.note-actions button:hover, .discussion-actions button:hover {
  background: #ede9fe;
}
.note-text, .discussion-text {
  font-size: 1.04rem;
  color: #22223b;
  margin-bottom: 0.2rem;
  line-height: 1.5;
  word-break: break-word;
}
@media (max-width: 575.98px) {
  .note-card, .discussion-card {
    padding: 0.8rem 0.7rem 0.6rem 0.7rem;
    border-radius: 0.8rem;
    font-size: 1.05rem;
  }
  .note-avatar, .discussion-avatar {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
}

.continue-btn {
  background: linear-gradient(90deg, #1e90ff 0%, #1c86ee 100%) !important;
}
