/* =========================================================
   SQL NOTES LEVELS PAGE  ·  notes_selection.css
   Same background & container pattern as practice-selection
========================================================= */

/* ─── PAGE BACKGROUND ─────────────────────────────────── */
body:has(.notes-page) {
    background-color: #020713 !important;
    background-image:
        linear-gradient(rgba(2, 6, 18, 0.48), rgba(2, 6, 18, 0.58)),
        url("../images/practice_page_bg_image.png") !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #f1f5f9;
}

body:has(.notes-page) .app-layout   { background: transparent !important; }
body:has(.notes-page) .main-wrapper { background: transparent !important; }

body:has(.notes-page) .sidebar {
    background: rgba(3, 9, 22, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(56, 189, 248, 0.12) !important;
}

body:has(.notes-page) .main-header {
    background: rgba(2, 7, 18, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12) !important;
}

body:has(.notes-page) .header-db-icon {
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

body:has(.notes-page) .content-container {
    max-width: 1440px !important;
    padding: 20px 36px 36px !important;
    background: transparent !important;
}

body:has(.notes-page) .footer.customer-footer {
    background: transparent !important;
    border-top: 1px solid rgba(56, 189, 248, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 36px !important;
    color: #64748b;
    font-size: 0.78rem;
}

body:has(.notes-page) .footer-links { display: flex; align-items: center; gap: 20px; }
body:has(.notes-page) .footer-links a { color: #64748b; text-decoration: none; transition: color 0.2s; }
body:has(.notes-page) .footer-links a:hover { color: #38bdf8; }

/* ─── PAGE WRAPPER ────────────────────────────────────── */
.notes-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ─── HEADER ──────────────────────────────────────────── */
.notes-page-header {
    margin-bottom: 28px;
}

.notes-page-header h1 {
    font-size: 2.55rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notes-page-header h1 i {
    color: #38bdf8;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
    font-size: 2.2rem;
}

.notes-page-header p {
    font-size: 0.92rem;
    color: #94a3b8;
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

/* ─── LEVEL CARDS (HORIZONTAL ROWS) ──────────────────── */
.notes-levels-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Base Card */
.notes-level-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 0 22px;
    padding: 26px 30px;
    border-radius: 20px;
    background: rgba(6, 18, 36, 0.76);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

.notes-level-card:hover {
    transform: translateY(-3px);
}

/* ─── ICON BOX ────────────────────────────────────────── */
.nlc-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    flex-shrink: 0;
}

/* ─── BODY ────────────────────────────────────────────── */
.nlc-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.nlc-eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.nlc-title {
    font-size: 1.30rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.2;
}

.nlc-desc {
    font-size: 0.80rem;
    color: #94a3b8;
    margin: 0 0 12px;
    line-height: 1.45;
    max-width: 500px;
}

/* Topic Tags Row */
.nlc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nlc-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── INLINE META LINE ────────────────────────────────── */
.nlc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ─── ACTION COL ──────────────────────────────────────── */
.nlc-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.nlc-sub-link {
    font-size: 0.74rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.nlc-sub-link:hover {
    color: #34d399;
    text-decoration: underline;
}

/* ─── PRO BUTTON ──────────────────────────────────────── */
.nlc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 172px;
    height: 48px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: none;
    cursor: not-allowed;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.92;
}

.nlc-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════
   BEGINNER  (green)
══════════════════════════════════════════════════════════ */
.notes-level-card--beginner {
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        0 0 28px rgba(16, 185, 129, 0.12);
}
.notes-level-card--beginner:hover {
    border-color: rgba(16, 185, 129, 0.70);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 40px rgba(16, 185, 129, 0.22);
}
.notes-level-card--beginner .nlc-icon {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.40);
}
.notes-level-card--beginner .nlc-eyebrow { color: #34d399; }
.notes-level-card--beginner .nlc-tag     { border-color: rgba(16, 185, 129, 0.22); color: #6ee7b7; }
.notes-level-card--beginner .nlc-btn {
    background: rgba(6, 40, 26, 0.80);
    border: 1px solid rgba(16, 185, 129, 0.42);
    color: #34d399;
}
.notes-level-card--beginner .nlc-btn--active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: none !important;
    color: #021a12 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.40) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.notes-level-card--beginner .nlc-btn--active:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.55) !important;
    color: #021a12 !important;
    transform: translateY(-2px) !important;
}

/* ══════════════════════════════════════════════════════════
   INTERMEDIATE  (blue)
══════════════════════════════════════════════════════════ */
.notes-level-card--intermediate {
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 28px rgba(59, 130, 246, 0.10);
}
.notes-level-card--intermediate:hover {
    border-color: rgba(59, 130, 246, 0.60);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 40px rgba(59, 130, 246, 0.20);
}
.notes-level-card--intermediate .nlc-icon {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.35);
}
.notes-level-card--intermediate .nlc-eyebrow { color: #60a5fa; }
.notes-level-card--intermediate .nlc-tag     { border-color: rgba(59, 130, 246, 0.22); color: #93c5fd; }
.notes-level-card--intermediate .nlc-btn {
    background: rgba(10, 24, 56, 0.80);
    border: 1px solid rgba(59, 130, 246, 0.38);
    color: #93c5fd;
}

/* ══════════════════════════════════════════════════════════
   ADVANCED  (purple)
══════════════════════════════════════════════════════════ */
.notes-level-card--advanced {
    border: 1px solid rgba(147, 51, 234, 0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 28px rgba(147, 51, 234, 0.10);
}
.notes-level-card--advanced:hover {
    border-color: rgba(147, 51, 234, 0.60);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 40px rgba(147, 51, 234, 0.20);
}
.notes-level-card--advanced .nlc-icon {
    background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(147, 51, 234, 0.35);
}
.notes-level-card--advanced .nlc-eyebrow { color: #c084fc; }
.notes-level-card--advanced .nlc-tag     { border-color: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
.notes-level-card--advanced .nlc-btn {
    background: rgba(28, 10, 54, 0.80);
    border: 1px solid rgba(168, 85, 247, 0.38);
    color: #d8b4fe;
}

/* ══════════════════════════════════════════════════════════
   INTERVIEW  (amber)
══════════════════════════════════════════════════════════ */
.notes-level-card--interview {
    border: 1px solid rgba(217, 119, 6, 0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 28px rgba(217, 119, 6, 0.10);
}
.notes-level-card--interview:hover {
    border-color: rgba(217, 119, 6, 0.60);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 40px rgba(217, 119, 6, 0.20);
}
.notes-level-card--interview .nlc-icon {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
}
.notes-level-card--interview .nlc-eyebrow { color: #fbbf24; }
.notes-level-card--interview .nlc-tag     { border-color: rgba(245, 158, 11, 0.22); color: #fde68a; }
.notes-level-card--interview .nlc-btn {
    background: rgba(44, 22, 4, 0.80);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fde047;
}

/* ─── BOTTOM BENEFITS BAR ─────────────────────────────── */
.notes-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 14px 22px;
    border-radius: 14px;
    background: rgba(6, 18, 36, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    margin-top: 20px;
}

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

.nb-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 1.15rem; flex-shrink: 0;
}

.nb-icon--cyan   { background: rgba(34, 211, 238, 0.13); color: #22d3ee; }
.nb-icon--green  { background: rgba(16, 185, 129, 0.13); color: #34d399; }
.nb-icon--purple { background: rgba(168, 85, 247, 0.13); color: #c084fc; }
.nb-icon--amber  { background: rgba(245, 158, 11, 0.13); color: #fbbf24; }

.nb-text { display: flex; flex-direction: column; }
.nb-text b     { font-size: 0.84rem; font-weight: 700; color: #fff; line-height: 1.2; }
.nb-text small { font-size: 0.70rem; color: #8493a8; margin-top: 2px; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
    .notes-level-card {
        grid-template-columns: 62px 1fr;
        grid-template-rows: auto auto;
    }
    .nlc-action {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 14px;
    }
}

@media (max-width: 700px) {
    .notes-level-card { grid-template-columns: 1fr; gap: 14px; }
    .nlc-icon { width: 52px; height: 52px; font-size: 1.35rem; }
    .nlc-action { justify-content: stretch; }
    .nlc-btn { width: 100%; }
    .notes-benefits { grid-template-columns: 1fr; }
    body:has(.notes-page) .content-container { padding: 16px 18px 24px !important; }
}

/* ─── LIGHT THEME OVERRIDES ────────────────────────────── */
html[data-bs-theme="light"] body:has(.notes-page) {
    background-color: #f1f5f9 !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(241, 245, 249, 0.28)),
        url("../images/light_color_practice_bg.png") !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
}

html[data-bs-theme="light"] body:has(.notes-page) .sidebar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-right-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-bs-theme="light"] body:has(.notes-page) .main-header {
    background: rgba(255, 255, 255, 0.90) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-bs-theme="light"] .notes-page-header h1 {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .notes-page-header p {
    color: #475569 !important;
}

html[data-bs-theme="light"] .notes-level-card {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

html[data-bs-theme="light"] .notes-level-card:hover {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10) !important;
}

html[data-bs-theme="light"] .nlc-title {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .nlc-desc {
    color: #475569 !important;
}

html[data-bs-theme="light"] .nlc-tag {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-bs-theme="light"] .nlc-meta {
    color: #64748b !important;
}

html[data-bs-theme="light"] .notes-benefits {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: blur(20px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
}

html[data-bs-theme="light"] .nb-text b {
    color: #0f172a !important;
}

html[data-bs-theme="light"] .nb-text small {
    color: #64748b !important;
}

html[data-bs-theme="light"] body:has(.notes-page) .footer.customer-footer {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}

/* ─── BEGINNER TOPICS SECTION ─────────────────────────── */
.beginner-notes-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.bns-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.bns-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    margin-bottom: 8px;
}

.bns-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.bns-header p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    max-width: 600px;
}

.bns-count-badge {
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(6, 18, 36, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.16);
    font-size: 0.80rem;
    color: #cbd5e1;
}

.bns-count-badge strong {
    color: #34d399;
    font-weight: 800;
}

/* Topics Grid */
.beginner-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.topic-card {
    background: rgba(6, 18, 36, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 16px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.topic-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.50);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.15);
}

.topic-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.topic-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    padding: 2px 8px;
    border-radius: 6px;
}

.topic-free-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #34d399;
}

.topic-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.topic-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.topic-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.30);
    text-decoration: none;
    transition: all 0.2s ease;
}

.topic-open-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #021a12;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Light Theme Overrides for Topics Grid */
html[data-bs-theme="light"] .beginner-notes-section {
    border-top-color: rgba(0, 0, 0, 0.08);
}
html[data-bs-theme="light"] .bns-header h2 {
    color: #0f172a;
}
html[data-bs-theme="light"] .bns-header p {
    color: #475569;
}
html[data-bs-theme="light"] .bns-count-badge {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #334155;
}
html[data-bs-theme="light"] .topic-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
html[data-bs-theme="light"] .topic-card:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"] .topic-title {
    color: #0f172a;
}
html[data-bs-theme="light"] .topic-desc {
    color: #475569;
}
html[data-bs-theme="light"] .topic-card-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

