:root {
    --base-font-size: 13px;
    --base-line-height: 1.5;
    --h1-size: 1.8rem;
    --h2-size: 1.4rem;
    --h3-size: 1.1rem;
    --p-size: 0.95rem;
    --small-text: 0.85rem;
    --code-font-size: 0.9rem;
    --content-max-width: 1200px;
    --article-padding: 2rem;
    --section-spacing: 2rem;
}

/* Markdown body styles for better rendering */
.markdown-body {
    background: transparent !important;
    color: #ffffff !important; /* ข้อความทั่วไป - สีขาว */
    font-family: var(--font-mixed, 'IBM Plex Sans Thai Looped', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
    line-height: 1.6;
}

/* Thai text in markdown */
.markdown-body .thai-text {
    font-family: var(--font-thai, 'IBM Plex Sans Thai Looped', sans-serif) !important;
}

.markdown-body pre {
    background: transparent !important;
    border-radius: 6px;
    margin: 1rem 0;
    padding: 1rem;
    overflow-x: auto;
}

.markdown-body code {
    background: rgba(255, 204, 0, 0.2) !important; /* พื้นหลังโค้ดเหลืองสด */
    color: #ffcc00 !important; /* โค้ดอินไลน์ - สีเหลืองสด */
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: var(--font-mono, 'JetBrains Mono', 'Courier New', monospace) !important;
    font-weight: 500;
    /* border: 1px solid rgba(255, 204, 0, 0.4); */
    text-shadow: 0 0 2px rgba(255, 204, 0, 0.2);
}

.markdown-body pre code {
    background: transparent !important;
    color: inherit !important; /* ใช้สีจาก Prism.js โดยตรง */
    padding: 0;
    font-size: 0.9em;
}

/* หัวข้อต่างๆ - ไล่โทนสีเขียวสำหรับพื้นหลังดำ */
.markdown-body h1 {
    color: #00ff00 !important; /* หัวข้อหลัก - สีเขียวสดใส */
    border-bottom: 2px solid #00ff00;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.markdown-body h2 {
    color: #00e600 !important; /* หัวข้อรอง - เขียวสดเข้มลง */
    border-bottom: 1px solid #00e600;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 230, 0, 0.3);
}

.markdown-body h3 {
    color: #00cc00 !important; /* หัวข้อย่อย - เขียวกลาง */
    border-bottom: 1px solid #00cc00;
    padding-bottom: 0.3rem;
    margin: 1.2rem 0 0.8rem 0;
    font-weight: 600;
    font-size: 1.25rem;
}

.markdown-body h4 {
    color: #00b300 !important; /* หัวข้อย่อยเล็ก - เขียวเข้มลง */
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.markdown-body h5 {
    color: #009900 !important; /* หัวข้อย่อยเล็กมาก - เขียวเข้ม */
    margin: 0.8rem 0 0.4rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.markdown-body h6 {
    color: #008000 !important; /* หัวข้อเล็กสุด - เขียวเข้มสุด */
    margin: 0.6rem 0 0.3rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.markdown-body blockquote {
    border-left: 4px solid #ffc107; /* เส้นขอบเหลือง */
    background: rgba(255, 193, 7, 0.08);
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    color: #f8f9fa !important; /* ข้อความ blockquote - สีขาวอ่อน */
    border-radius: 4px;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    border-radius: 6px;
    overflow: hidden;
}

.markdown-body th, .markdown-body td {
    border: 1px solid #495057;
    padding: 0.75rem;
    text-align: left;
}

.markdown-body th {
    background: #00cc00; /* หัวตาราง - สีเขียวกลาง */
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.markdown-body td {
    color: #ffffff !important; /* ข้อมูลในตาราง - สีขาว */
}

/* ลิสต์ */
.markdown-body ul, .markdown-body ol {
    color: #ffffff !important; /* รายการ - สีขาว */
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-body li {
    color: #ffffff !important; /* รายการ - สีขาว */
    margin: 0.3rem 0;
}

/* ลิงก์ */
.markdown-body a {
    color: #ffcc00 !important; /* ลิงก์ - สีเหลืองสด */
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(255, 204, 0, 0.4);
}

.markdown-body a:hover {
    color: #ffff00 !important; /* ลิงก์เมื่อชี้ - สีเหลืองสดใส */
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

/* ข้อความตัวหนา */
.markdown-body strong, .markdown-body b {
    color: #ffff00 !important; /* ข้อความหนา - สีเหลืองสดใส */
    font-weight: 700;
    text-shadow: 0 0 4px rgba(255, 255, 0, 0.3);
}

/* ข้อความตัวเอียง */
.markdown-body em, .markdown-body i {
    color: #e9ecef !important; /* ข้อความเอียง - สีขาวอ่อน */
    font-style: italic;
}

/* ข้อความปกติในย่อหน้า */
.markdown-body p {
    color: #ffffff !important; /* ย่อหน้า - สีขาว */
    margin: 0.8rem 0;
    line-height: 1.6;
}

.markdown-body a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 500;
}

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

.markdown-body ul, .markdown-body ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-body li {
    margin: 0.5rem 0;
    color: var(--text-primary) !important;
    line-height: 1.6;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

@media screen and (max-width: 480px) {
    :root {
        --base-font-size: 12px;
        --h1-size: 1.6rem;
        --h2-size: 1.3rem;
        --h3-size: 1.1rem;
        --p-size: 0.95rem;
        --small-text: 0.8rem;
        --code-font-size: 0.85rem;
        --article-padding: 1rem;
        --section-spacing: 1.5rem;
    }

    .article-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .article-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .article-layout {
        gap: 1rem;
        margin-top: 1rem;
    }

    .article-content {
        padding: 1rem;
    }


    .code-block {
        margin: 1rem 0;
    }

    .code-header {
        padding: 0.5rem 0.75rem;
    }

    .code-block pre[class*="language-"] {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .admin-controls {
        gap: 0.5rem;
    }

    .content-p {
        margin-bottom: 1rem;
    }

    .content-h1 {
        margin: 1.5rem 0 1rem 0;
    }

    .content-h2 {
        margin: 1.5rem 0 1rem 0;
    }

    .content-h3 {
        margin: 1rem 0 0.5rem 0;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    :root {
        --base-font-size: 13px;
        --h1-size: 1.8rem;
        --h2-size: 1.4rem;
        --h3-size: 1.15rem;
        --p-size: 0.95rem;
        --small-text: 0.85rem;
        --code-font-size: 0.9rem;
        --article-padding: 1.5rem;
        --section-spacing: 2rem;
    }

    .article-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-layout {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    :root {
        --base-font-size: 13px;
        --h1-size: 1.7rem;
        --h2-size: 1.4rem;
        --h3-size: 1.1rem;
        --p-size: 0.95rem;
        --small-text: 0.85rem;
        --code-font-size: 0.9rem;
    }
}

@media screen and (min-width: 1025px) {
    :root {
        --base-font-size: 14px;
        --h1-size: 2rem;
        --h2-size: 1.5rem;
        --h3-size: 1.2rem;
        --p-size: 1rem;
        --small-text: 0.9rem;
        --code-font-size: 0.95rem;
        --article-padding: 2.5rem;
    }
}

body {
    font-size: var(--base-font-size);
    line-height: var(--base-line-height);
}

.content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.article-header {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 50, 0, 0.3) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--article-padding);
    margin-bottom: var(--section-spacing);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.article-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
}

.article-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.article-header.pinned {
    border-left: 6px solid var(--accent-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 255, 255, 0.05) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.article-header.admin-only {
    border-right: 4px solid var(--warning-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 0, 0.03) 100%);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-title {
    font-size: var(--h1-size);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.article-title.pinned {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.article-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: var(--small-text);
    align-items: center;
    flex-wrap: wrap;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.toggle-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toggle-btn.active {
    animation: pulse 2s infinite;
}

.toggle-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.toggle-btn:hover::before {
    transform: translateX(100%);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    }
}

.article-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: clamp(1rem, 5vw, 2rem);
    margin-bottom: clamp(1rem, 5vw, 2rem);
    line-height: var(--base-line-height);
    color: var(--text-white);
    font-family: inherit;
}

.content-h1 {
    color: var(--text-primary);
    font-size: var(--h1-size);
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
    position: relative;
}

.content-h1::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
    border-radius: 1px;
}

.content-h2 {
    color: var(--text-primary);
    font-size: var(--h2-size);
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    position: relative;
}

.content-h2::before {
    content: "";
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 15px;
    background: var(--text-primary);
    border-radius: 1px;
}

.content-h3 {
    color: var(--text-secondary);
    font-size: var(--h3-size);
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    position: relative;
}

.content-h3::before {
    content: "▸";
    color: var(--text-primary);
    margin-right: 0.4rem;
    font-size: 0.8em;
}

.content-p {
    margin-bottom: 1rem;
    color: var(--text-white);
    font-size: var(--p-size);
    line-height: var(--base-line-height);
    text-align: left;
    text-indent: 0;
}

.content-list-item {
    margin-left: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: var(--p-size);
    line-height: 1.3;
}

.content-numbered-item {
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-size: var(--p-size);
    line-height: 1.3;
}

.code-block {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(0, 50, 0, 0.2) 100%);
    border: 1px solid var(--text-primary);
    border-radius: 12px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.15);
    position: relative;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.code-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 255, 0, 0.2);
}

.code-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 80, 0, 0.3) 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.code-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--text-primary), var(--accent-color));
    border-radius: 0 2px 2px 0;
}

.code-language {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--small-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.code-language::before {
    content: "⚙";
    color: var(--accent-color);
    font-size: 1.2em;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.code-copy-btn {
    background: linear-gradient(135deg, transparent, rgba(0, 255, 0, 0.1));
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--small-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.code-copy-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.code-copy-btn:hover::before {
    left: 100%;
}

.code-copy-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.code-copy-btn.copied {
    border-color: var(--success-color);
    color: var(--success-color);
}

.code-block pre[class*="language-"] {
    margin: 0;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    background: transparent !important;
    color: inherit !important;
    font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Monaco', 'Courier New', monospace) !important;
    font-size: var(--code-font-size);
    line-height: 1.6;
    overflow-x: auto;
    border: none;
    border-radius: 0;
    position: relative;
    text-shadow: none;
    counter-reset: line-number;
}

/* Line numbers for code blocks */
.line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 3rem;
    letter-spacing: -1px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    counter-reset: linenumber;
    height: 100%;
    padding: 1.5rem 0;
}

.line-numbers-rows > span {
    pointer-events: none;
    display: block;
    counter-increment: linenumber;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--code-font-size);
    line-height: 1.6;
    text-align: right;
    padding-right: 0.8rem;
    font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Monaco', 'Courier New', monospace) !important;
}

.line-numbers-rows > span:before {
    content: counter(linenumber);
}

/* Copy button in code header */
.code-header {
    position: relative;
}

.code-copy-button {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.code-copy-button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.code-copy-button.copied {
    background: rgba(0, 255, 0, 0.3);
    border-color: rgba(0, 255, 0, 0.6);
    color: #00ff00;
}

.code-copy-button.copied::after {
    content: " ✓";
}

.code-block pre[class*="language-"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
}

.code-block code[class*="language-"] {
    background: transparent !important;
    color: inherit !important;
    text-shadow: none !important;
    white-space: pre-wrap;
    word-break: break-word;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a737d !important;
}

.token.punctuation {
    color: var(--text-white) !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #79b8ff !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #85e89d !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #56b6c2 !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #c678dd !important;
}

.token.function,
.token.class-name {
    color: #ffd700 !important;
}

.token.regex,
.token.important,
.token.variable {
    color: #e6db74 !important;
}

.back-nav {
    margin-bottom: 2rem;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-content {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
}

.loading-content::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: -20px;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-content::after {
    content: ".";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60% { content: "..."; }
    80%, 100% { content: "...."; }
}

.content-error {
    padding: 1rem;
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 4px solid var(--error-color);
    margin-bottom: 1rem;
    color: var(--error-color);
}

.delete-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.delete-modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border: 2px solid var(--error-color);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.badge.pinned-badge {
    background: var(--accent-color);
    color: var(--bg-primary);
    animation: pulse-cyan 2s infinite;
}

.badge.admin-only-badge {
    background: var(--warning-color);
    color: var(--bg-primary);
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-cyan {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.8); }
}

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 0, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 0, 0.8); }
}

.status-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.status-badge.pinned {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: rotate(45deg);
}

.status-badge.admin-only {
    background: var(--warning-color);
    color: var(--bg-primary);
}

.btn-success {
    background: var(--success-color);
    color: var(--bg-primary);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #00cc00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.article-layout {
    display: block;
    margin-top: var(--section-spacing);
}

.article-content {
    width: 100%;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 50, 0, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--article-padding);
    line-height: var(--base-line-height);
    color: var(--text-white);
    font-family: inherit;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.article-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 1s ease;
}

.article-content:hover::before {
    left: 100%;
}

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

.article-sidebar {
    display: none;
}



/* Simplified Table Styling */
.table-container {
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: var(--card-bg);
    color: var(--text-white);
    font-family: inherit;
}

.table-container th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: var(--small-text);
}

.table-container td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    text-align: left;
    font-size: var(--p-size);
}

/* Simple hover effect */
.table-container tbody tr:hover {
    background: rgba(0, 255, 0, 0.05);
}

/* Alternating row colors */
.table-container tbody tr:nth-child(even) {
    background: rgba(0, 255, 0, 0.02);
}

@media (max-width: 768px) {
    .content {
        padding: 0 0.5rem;
    }

    .article-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .article-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .article-layout {
        margin-top: 1.5rem;
    }

    .article-content {
        width: 100%;
        padding: 1.5rem;
    }


    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .code-block {
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .code-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .code-block pre[class*="language-"] {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .status-indicator {
        position: static;
        justify-content: flex-start;
        margin-bottom: 1rem;
    }

    .status-badge {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .table-container {
        font-size: 0.8rem;
        margin: 1rem 0;
    }

    .table-container th,
    .table-container td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }

    .table-container table {
        min-width: 500px;
    }

    .content-p {
        text-indent: 0;
        text-align: left;
    }

    .content-h1::after {
        width: 40px;
        height: 2px;
    }

    .content-h2::before {
        display: none;
    }


    .loading-content {
        padding: 2rem 1rem;
    }

    .back-nav {
        margin-bottom: 1rem;
    }


}