/* ==========================================
   NOTES PAGE - STYLES & COLOR SYSTEM
   ========================================== */

   :root {
    --nt-dark-navy: #060B18;
    --nt-hero-bg: #091228;
    --nt-accent-gold: #F59E0B;
    --nt-accent-gold-hover: #D97706;
    --nt-page-bg: #F4F6FB;
    --nt-border-color: #E2E8F0;
    --nt-text-heading: #0F172A;
    --nt-text-muted: #64748B;
    
    /* Tag & Accent Surface Colors */
    --nt-orange-tag: #FFF7ED;
    --nt-orange-text: #C2410C;
    --nt-green-tag: #F0FDF4;
    --nt-green-text: #15803D;
    --nt-purple-tag: #FAF5FF;
    --nt-purple-text: #7E22CE;
    --nt-red-tag: #FEF2F2;
    --nt-red-text: #B91C1C;
    --nt-blue-tag: #EFF6FF;
    --nt-blue-text: #1D4ED8;
    --nt-yellow-tag: #FEFCE8;
    --nt-yellow-text: #A16207;
  }
  
  .notes-page {
    background-color: var(--nt-page-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--nt-text-heading);
    overflow-x: hidden;
  }
  
  .notes-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* ==========================================
     HERO SECTION
     ========================================== */
  .notes-hero {
    position: relative;
    background: linear-gradient(135deg, #060B18 0%, #0A1633 50%, #091228 100%);
    padding: 40px 0 110px 0;
    color: #FFFFFF;
    overflow: hidden;
  }
  
  .notes-hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
  }
  
  .notes-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 30px;
  }
  
  /* Breadcrumb */
  .notes-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  
  .notes-breadcrumb li a {
    color: #94A3B8;
    text-decoration: none;
  }
  
  .notes-breadcrumb li.active {
    color: #FFFFFF;
  }
  
  .notes-breadcrumb li+li::before {
    content: ">";
    color: #64748B;
    margin-right: 8px;
  }
  
  .notes-hero-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
  }
  
  .notes-hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 48px;
    height: 4px;
    background-color: var(--nt-accent-gold);
    border-radius: 2px;
  }
  
  .notes-hero-desc {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.6;
    max-width: 520px;
    margin-top: 16px;
    margin-bottom: 36px;
  }
  
  /* Hero Stats Bar */
  .notes-stats-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  
  .stat-icon.purple { color: #A855F7; }
  .stat-icon.blue { color: #3B82F6; }
  .stat-icon.green { color: #22C55E; }
  .stat-icon.yellow { color: #F59E0B; }
  
  .stat-info strong {
    display: block;
    font-size: 13px;
    color: #FFFFFF;
  }
  
  .stat-info span {
    font-size: 11px;
    color: #94A3B8;
  }
  
  /* Hero Illustration Accents */
  .notes-hero-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .purple-bg-bubble {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(67, 34, 133, 0.6) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: 1;
  }
  
  .yellow-dots-accent {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 140px;
    background-image: radial-gradient(#F59E0B 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: 0.6;
    z-index: 1;
  }
  
  .notes-3d-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 290px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
  }
  
  /* Wavy Bottom SVG Container */
  .hero-wavy-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
  }
  
  .hero-wavy-bottom svg {
    width: 100%;
    height: 100%;
  }
  
  /* ==========================================
     TOP FILTER BAR (SCROLLS WITH PAGE)
     ========================================== */
  .notes-main-wrapper {
    padding: 0 0 60px;
  }
  
  .notes-filter-card {
    position: relative;
    z-index: 10;
    margin-top: -55px; /* Overlays half over hero wavy bottom */
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
  }
  
  .filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--nt-border-color);
    border-radius: 8px;
    font-size: 13px;
    background-color: #F8FAFC;
    color: var(--nt-text-heading);
    outline: none;
  }
  
  .btn-filter-action {
    background-color: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
  }
  
  /* ==========================================
     LAYOUT GRID & STICKY SIDEBAR
     ========================================== */
  .notes-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
  }
  
  /* Clean Sticky Left Sidebar */
  .sticky-sidebar {
    position: sticky;
    top: 20px; /* Locks at top as user scrolls cards */
    z-index: 5;
    overflow: visible !important;
    max-height: none !important;
  }
  
  .sidebar-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid var(--nt-border-color);
  }
  
  .sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    background: #0F172A;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .subject-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .subject-list li.active a,
  .subject-list li a:hover {
    background-color: #FFF7ED;
    color: var(--nt-accent-gold-hover);
    font-weight: 600;
  }
  
  .subject-list li a .subject-name {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .subject-list li a .badge {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
  }
  
  /* Sidebar Promo Card */
  .sidebar-promo-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
  }
  
  .promo-crown-icon {
    width: 32px;
    height: 32px;
    background: #FEF3C7;
    color: var(--nt-accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 14px;
  }
  
  .sidebar-promo-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 6px 0;
  }
  
  .sidebar-promo-card p {
    font-size: 11px;
    color: #64748B;
    line-height: 1.4;
    margin: 0 0 14px 0;
  }
  
  .btn-sidebar-login {
    display: block;
    background: var(--nt-accent-gold);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
  }
  
  .btn-sidebar-login:hover {
    background: var(--nt-accent-gold-hover);
  }
  
  /* ==========================================
     CARDS CONTENT AREA
     ========================================== */
  .content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .content-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
  }
  
  .total-count {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
  }
  
  .notes-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .note-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--nt-border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }
  
  .btn-bookmark {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 14px;
  }
  
  .exam-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 16px;
  }
  
  .tag-orange { background: var(--nt-orange-tag); color: var(--nt-orange-text); }
  .tag-green { background: var(--nt-green-tag); color: var(--nt-green-text); }
  .tag-purple { background: var(--nt-purple-tag); color: var(--nt-purple-text); }
  .tag-red { background: var(--nt-red-tag); color: var(--nt-red-text); }
  .tag-blue { background: var(--nt-blue-tag); color: var(--nt-blue-text); }
  .tag-yellow { background: var(--nt-yellow-tag); color: var(--nt-yellow-text); }
  
  .note-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .bg-light-orange { background-color: #FFF7ED; }
  .bg-light-green { background-color: #F0FDF4; }
  .bg-light-purple { background-color: #FAF5FF; }
  .bg-light-red { background-color: #FEF2F2; }
  .bg-light-blue { background-color: #EFF6FF; }
  .bg-light-yellow { background-color: #FEFCE8; }
  
  .note-card-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
  
  .note-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 6px 0;
  }
  
  .note-card-desc {
    font-size: 11px;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 16px 0;
  }
  
  .note-card-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #64748B;
    margin-top: auto;
    margin-bottom: 16px;
  }
  
  .note-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .btn-read-notes {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .btn-read-notes.orange { color: var(--nt-orange-text); }
  .btn-read-notes.green { color: var(--nt-green-text); }
  .btn-read-notes.purple { color: var(--nt-purple-text); }
  .btn-read-notes.red { color: var(--nt-red-text); }
  .btn-read-notes.blue { color: var(--nt-blue-text); }
  
  /* ==========================================
     PAGINATION
     ========================================== */
  .notes-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
  }
  
  .page-link {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid var(--nt-border-color);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
  }
  
  .page-link.active {
    background: #0B1120;
    color: #FFFFFF;
    border-color: #0B1120;
  }
  
  .page-dots {
    color: #94A3B8;
    font-size: 12px;
  }
  
  /* ==========================================
     REQUEST BANNER & BOTTOM FEATURES BAR
     ========================================== */
  .notes-request-banner {
    background: #EEF2FF;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  
  .request-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .request-icon {
    width: 44px;
    height: 44px;
    background: #E0E7FF;
    color: #4338CA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  
  .request-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px 0;
  }
  
  .request-text p {
    font-size: 12px;
    color: #64748B;
    margin: 0;
  }
  
  .btn-request-note {
    background: #0B1120;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  
  /* Card Container Bottom Features Bar */
  .notes-features-bar {
    background: #FFFFFF;
    border: 1px solid var(--nt-border-color);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-top: 20px;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .feature-icon {
    width: 42px;
    height: 42px;
    background: #EEF2FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338CA;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .feature-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 2px 0;
  }
  
  .feature-info p {
    font-size: 11px;
    color: #64748B;
    margin: 0;
  }
  
  /* ==========================================
     FULL RESPONSIVE MEDIA QUERIES
     ========================================== */
  
  /* Laptop / Medium Desktops (1025px - 1200px) */
  @media (max-width: 1200px) {
    .notes-cards-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Tablets / Small Laptops (769px - 1024px) */
  @media (max-width: 1024px) {
    .notes-filter-card {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
  
    .btn-filter-action {
      grid-column: span 2;
      justify-content: center;
    }
  
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }
  }
  
  /* Mobile & Tablets Breakdown (Under 991px) */
  @media (max-width: 991px) {
    .notes-hero-grid {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .notes-hero-title::after {
      left: 50%;
      transform: translateX(-50%);
    }
  
    .notes-breadcrumb {
      justify-content: center;
    }
  
    .notes-hero-desc {
      margin-left: auto;
      margin-right: auto;
    }
  
    .notes-stats-bar {
      justify-content: center;
    }
  
    .notes-hero-illustration {
      display: none;
    }
  
    .notes-layout-grid {
      grid-template-columns: 1fr;
    }
  
    .sticky-sidebar {
      position: relative;
      top: 0;
    }
  }
  
  /* Small Mobile Screens (Under 576px) */
  @media (max-width: 576px) {
    .notes-hero {
      padding: 30px 0 80px 0;
    }
  
    .notes-filter-card {
      grid-template-columns: 1fr;
      margin-top: -30px;
      padding: 14px;
    }
  
    .btn-filter-action {
      grid-column: span 1;
    }
  
    .notes-cards-grid {
      grid-template-columns: 1fr;
    }
  
    .notes-request-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  
    .features-grid {
      grid-template-columns: 1fr;
    }
  }


  /* Color Variables */
:root {
  --purple-primary: #6f42c1;
  --purple-light: #f3eefc;
  --purple-hover: #59319c;
  --warning-light: #fff9e6;
  --bg-light: #f8f9fa;
}

body {
  background-color: #f6f8fa;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Custom Text & Progress Styling */
.text-purple {
  color: var(--purple-primary) !important;
}

.bg-purple {
  background-color: var(--purple-primary) !important;
}

.bg-purple-soft {
  background-color: var(--purple-light);
  color: var(--purple-primary);
}

.bg-blue-soft {
  background-color: #e8f1ff;
  color: #0d6efd;
}

.btn-outline-purple {
  color: var(--purple-primary);
  border-color: var(--purple-primary);
}

.btn-outline-purple:hover {
  background-color: var(--purple-primary);
  color: #ffffff;
}

.progress-sm {
  height: 6px;
  border-radius: 10px;
  background-color: #e9ecef;
}

.extra-small {
  font-size: 0.75rem;
}

/* Top PDF Badge */
.pdf-icon-badge {
  background-color: #6f42c1;
  color: #fff;
  width: 48px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
}

.pdf-icon-badge i {
  font-size: 1.4rem;
  line-height: 1;
}

/* Header & Breadcrumb */
.notes-header {
  flex-shrink: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eef0f3;
  z-index: 10;
}

.notes-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1d20;
}

.notes-subtitle {
  font-size: 0.95rem;
}

.meta-item {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Left Sidebar - Chapter Navigation */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.chapter-item:hover {
  background-color: #f1f3f5;
  color: #000;
}

.chapter-item.active {
  background-color: var(--purple-light);
  color: var(--purple-primary);
  font-weight: 600;
  border-left: 3px solid var(--purple-primary);
}

/* Reader Toolbar & Viewer */
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.reader-content {
  background-color: #ffffff;
  min-height: 650px;
}

.heading-divider {
  border-top: 2px solid var(--purple-primary);
  opacity: 1;
  width: 100%;
}

.alert-purple-light {
  background-color: var(--purple-light);
}

.alert-warning-light {
  background-color: var(--warning-light);
}

.math-fraction {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
}

.property-list li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.property-list code {
  display: inline-block;
  background-color: #f8f9fa;
  padding: 2px 8px;
  border-radius: 4px;
  color: #d63384;
  margin-top: 4px;
}

/* Right Sidebar Elements */
.toc-nav .nav-link {
  font-size: 0.875rem;
}

.toc-nav .nav-link.active {
  color: var(--purple-primary);
  border-left: 2px solid var(--purple-primary);
  padding-left: 8px !important;
}

.sub-toc .nav-link {
  font-size: 0.8rem;
}

.sticky-note {
  background-color: #fffde7;
  border: 1px solid #ffe082;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.hover-bg:hover {
  background-color: #f8f9fa !important;
  border-radius: 6px;
}

