/* =============================================
   HTML Learning Docs — Global Stylesheet
   ============================================= */

/* ---------- Headings ---------- */
h1.text-success,
h2.text-success,
h3.text-success,
h4.text-success {
    color: #2e7d52 !important;
}

/* ---------- Code Blocks (pre) ---------- */
pre {
    background-color: #f6f8fa;
    color: #24292e;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-x: auto;
    border: 1px solid #d0d7de;
    margin: 1rem 0 1.4rem;
}

pre code {
    font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
    font-size: inherit;
    color: inherit;
    background: none;
    padding: 0;
}

/* ---------- Inline code ---------- */
code {
    background-color: #f0f4ff;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
    font-size: 0.875em;
}

/* ---------- Keyboard keys (kbd) ---------- */
kbd {
    background-color: #f1f3f5;
    color: #212529;
    border: 1px solid #ced4da;
    border-bottom: 2px solid #adb5bd;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.82em;
    font-family: 'Consolas', 'Fira Code', 'Courier New', monospace;
}

/* ---------- Page navigation (Next / Prev buttons) ---------- */
.page-nav {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Note / Tip / Warning boxes ---------- */
.note-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.93rem;
}

.tip-box {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.93rem;
}

.warning-box {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.93rem;
}

/* ---------- Tables ---------- */
.table {
    border-color: #a3cfbb !important;
}

.table-bordered> :not(caption)>*>* {
    border-color: #a3cfbb;
}

.table thead.table-dark {
    background-color: #198754 !important;
    color: #ffffff;
}

.table thead.table-dark th {
    background-color: #198754;
    border-color: #146c43;
}

.table tbody tr:hover {
    background-color: #f0faf4;
}