:root {
    --primary-color: #4CAF50;
    --hover-color: #45a049;
    --border-color: #ddd;
    --header-bg: #f8f9fa;
    --error-color: #dc3545
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5
}

.container {
    width: 95%;
    min-height: 90vh;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgb(0 0 0 / .1);
    padding: 20px;
    display: flex;
    flex-direction: column
}

h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.3em
}

.input-section {
    margin-bottom: 15px
}

.input-section h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em
}

textarea {
    width: 100%;
    height: 200px;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 8px;
    font-family: 'Consolas',monospace;
    font-size: 14px;
    resize: vertical;
    line-height: 1.5;
    background: #fff0;
    box-sizing: border-box;
    white-space: pre;
    min-height: 80px
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgb(76 175 80 / .2)
}

.buttons {
    margin: 12px 0;
    display: flex;
    gap: 10px
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px
}

.convert-btn {
    background-color: var(--primary-color);
    color: #fff
}

.export-btn {
    background-color: #007bff;
    color: #fff
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

.convert-btn:hover {
    background-color: var(--hover-color)
}

.export-btn:hover {
    background-color: #0056b3
}

.error {
    color: var(--error-color);
    padding: 10px;
    border-radius: 6px;
    background-color: rgb(220 53 69 / .1);
    margin: 10px 0;
    display: none
}

.table-container {
    flex: 1;
    margin-top: 20px;
    border-radius: 8px;
    overflow: auto;
    position: relative;
    border: 1px solid var(--border-color)
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    font-size: 14px;
    table-layout: auto
}

th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    min-width: 120px
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    min-width: 120px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative
}

td:hover {
    overflow: hidden;
    background-color: #f8f9fa
}

.nested-table-container {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .05);
    overflow: visible
}

.nested-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff
}

.nested-table-container th,.nested-table-container td {
    padding: 12px 15px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 13px;
    min-width: 120px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative
}

.nested-table-container td:hover {
    overflow: hidden;
    background-color: #f8f9fa
}

.nested-table-container th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap
}

.expand-btn {
    padding: 6px 12px;
    margin: 2px 0;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease
}

@media (max-width: 768px) {
    .container {
        padding:10px
    }

    button {
        padding: 10px 20px;
        font-size: 14px
    }

    th,td {
        padding: 10px
    }
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background: #555
}

.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1
}

.table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #555
}

.dragging {
    opacity: .5;
    background-color: #e9ecef
}

@media (max-width: 1920px) {
    .container {
        width:97%
    }
}

@media (max-width: 1440px) {
    .container {
        width:97%
    }
}

@media (max-width: 768px) {
    .container {
        width:100%;
        margin: 0;
        padding: 10px;
        border-radius: 0
    }

    body {
        padding: 0
    }
}

.format-btn {
    background-color: #6c757d;
    color: #fff
}

.format-btn:hover {
    background-color: #5a6268
}

.sample-btn {
    background-color: #ffc107;
    color: #333
}

.sample-btn:hover {
    background-color: #e0a800;
    color: #333
}

.input-wrapper {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    overflow: hidden
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgb(76 175 80 / .2)
}

.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    padding: 15px 10px;
    font-family: 'Consolas',monospace;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    color: #999;
    background: #f8f9fa;
    border-right: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    user-select: none;
    white-space: pre;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden
}

.collapse-btn {
    cursor: pointer;
    user-select: none;
    color: #666
}

.collapse-btn:hover {
    color: var(--primary-color)
}

.collapse-all-btn {
    padding: 5px 10px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px
}

.collapse-all-btn:hover {
    background: #5a6268
}

.json-key {
    color: #2c3e50;
    font-weight: 600
}

.json-string {
    color: #28a745
}

.json-number {
    color: #007bff
}

.json-boolean {
    color: #dc3545
}

.json-null {
    color: #6c757d
}

.json-toggle {
    cursor: pointer;
    user-select: none
}

.json-toggle:before {
    content: "+";
    display: inline-block;
    width: 16px;
    text-align: center;
    color: #666
}

.json-toggle.collapsed:before {
    content: "-"
}

.formatted-content {
    position: relative;
    display: flex;
    overflow: hidden;
    max-height: 1000px;
    border: 1px solid var(--border-color);
    border-radius: 4px
}

.formatted-line-numbers {
    position: sticky;
    left: 0;
    padding: 15px 10px;
    font-family: 'Consolas',monospace;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    color: #999;
    background: #f8f9fa;
    border-right: 1px solid var(--border-color);
    user-select: none;
    min-width: 45px;
    white-space: pre;
    height: fit-content;
    z-index: 1
}

.formatted-json {
    flex: 1;
    padding: 15px;
    margin: 0;
    font-family: 'Consolas',monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow: auto;
    white-space: pre;
    background: #fff;
    box-sizing: border-box
}

.formatted-output {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgb(0 0 0 / .1)
}

.formatted-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0
}

.formatted-json::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

.formatted-json::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px
}

.formatted-json::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px
}

.formatted-json::-webkit-scrollbar-thumb:hover {
    background: #555
}

.tool-description {
    max-width: 800px;
    margin: 10px auto;
    text-align: center;
    color: #666;
    line-height: 1.4;
    font-size: .9em
}

footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #666
}

.footer-links {
    margin-top: 10px
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px
}

.footer-links a:hover {
    text-decoration: underline
}

.content-viewer {
    position: fixed;
    z-index: 1000;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .15);
    padding: 10px 15px;
    max-width: 800px;
    max-height: 400px;
    overflow: auto;
    font-family: 'Consolas',monospace;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    font-size: 14px;
    display: none
}

.content-viewer-inner {
    padding: 5px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Consolas',monospace
}

.nested-toggle {
    cursor: pointer;
    color: #06c;
    padding: 2px 6px;
    border-radius: 3px;
    background: #e6f3ff;
    border: 1px solid #cce5ff;
    font-size: 12px;
    transition: all 0.2s ease
}

.nested-toggle:hover {
    background: #cce5ff
}

.nested-toggle.expanded {
    background: #06c;
    color: #fff
}

.cell-content {
    position: static
}

.cell-content.expandable:after {
    display: none
}

.cell-tooltip {
    display: none
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    margin: 25px 0
}

.feature-card {
    background: #f7f8f9b3;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgb(0 0 0 / .05)
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgb(0 0 0 / .1)
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px
}

.feature-card h4 {
    margin: 10px 0;
    color: #2c3e50
}

.faq-section {
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgb(0 0 0 / .08);
    overflow: hidden
}

.faq-header {
    background: linear-gradient(135deg,#f093fb 0%,#f5576c 100%);
    color: #fff;
    padding: 24px 32px;
    text-align: center
}

.faq-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600
}

.faq-content {
    padding: 32px
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer
}

.faq-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / .1)
}

.faq-item:last-child {
    margin-bottom: 0
}

.faq-question {
    color: #9dceff;
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px
}

.faq-question::before {
    content: "❓";
    font-size: 1.2em
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding-left: 32px
}

.how-to-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgb(0 0 0 / .08);
    overflow: hidden
}

.how-to-header {
    background: #fff;
    padding: 32px 32px 20px 32px;
    border-bottom: 1px solid #e9ecef
}

.how-to-header h2 {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center
}

.how-to-intro {
    color: #666;
    font-size: 1.1em;
    text-align: center;
    margin: 0
}

.how-to-content {
    padding: 32px
}

.step-by-step-header {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: left
}

.steps-list {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 32px
}

.step-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative
}

.step-item:last-child {
    border-bottom: none
}

.step-number {
    background: #4CAF50;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 16px;
    flex-shrink: 0;
    margin-top: 2px
}

.step-content {
    flex: 1
}

.step-text {
    color: #333;
    line-height: 1.6;
    margin: 0
}

.step-text strong {
    color: #4CAF50;
    font-weight: 600
}

.step-text em {
    color: #999;
    font-style: italic
}

.step-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4CAF50;
    font-weight: 600
}

.tool-description-box {
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px
}

.tool-description-text {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 1em
}

.supported-formats-section {
    margin-top: 32px
}

.supported-formats-header {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left
}

.supported-formats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 12px
}

.supported-formats-list li {
    color: #333;
    padding: 8px 0;
    position: relative;
    padding-left: 20px
}

.supported-formats-list li::before {
    content: "•";
    color: #4CAF50;
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.2em
}

@media (max-width: 768px) {
    .how-to-content {
        padding:20px
    }

    .supported-formats-list {
        grid-template-columns: 1fr
    }
}

html {
    scroll-behavior: smooth
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee
}

.header-inner {
    width: 95%;
    margin: 0 auto;
    padding: 5px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    background: var(--primary-color);
    align-items: center;
    gap: 16px;
    border-radius: 6px;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 18px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    margin-right: 10px
}

.nav-links a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 8px
}

.nav-links a:hover {
    color: var(--primary-color)
}

.nav-links .cta {
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px
}

.nav-links .cta:hover {
    background: var(--hover-color);
    color: #fff
}

.nav-toggle {
    margin-left: auto;
    display: none;
    background: #fff0;
    border: none;
    font-size: 20px;
    color: #2c3e50;
    cursor: pointer
}

@media (max-width: 768px) {
    .header-inner {
        width:100%
    }

    .nav-toggle {
        display: inline-flex
    }

    .nav-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }

    .nav-links.open {
        display: flex
    }

    .nav-links a {
        padding: 12px 20px;
        border-top: 1px solid #f5f5f5
    }
}

.theme-toggle {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1001;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / .06);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600
}

html[data-theme="dark"] .theme-toggle {
    background: #161b22;
    color: #e6edf3;
    border-color: #30363d
}

html[data-theme="dark"] {
    background-color: #0d1117;
    color: #e6edf3;
    --border-color: #30363d;
    --header-bg: #161b22
}

html[data-theme="dark"] .container {
    background: #0d1117;
    box-shadow: 0 0 20px rgb(0 0 0 / .6)
}

html[data-theme="dark"] .input-wrapper {
    background: #0d1117;
    border-color: var(--border-color)
}

html[data-theme="dark"] textarea {
    background: #0d1117;
    color: #e6edf3
}

html[data-theme="dark"] .line-numbers {
    background: #161b22;
    color: #8b949e;
    border-color: var(--border-color)
}

html[data-theme="dark"] .formatted-content {
    border-color: var(--border-color)
}

html[data-theme="dark"] .formatted-json,html[data-theme="dark"] .formatted-output {
    background: var(--card)!important;
    color: #58b2ff
}

html[data-theme="dark"] table {
    background: #0d1117;
    color: #e6edf3
}

html[data-theme="dark"] th {
    background: #161b22;
    color: #e6edf3;
    border-bottom: 1px solid var(--border-color)
}

html[data-theme="dark"] td {
    border-bottom: 1px solid var(--border-color)
}

html[data-theme="dark"] td:hover,html[data-theme="dark"] .nested-table-container td:hover {
    background: #161b22
}

html[data-theme="dark"] .nested-table-container {
    background: #0d1117;
    box-shadow: none
}

html[data-theme="dark"] .nested-table-container th {
    background: #161b22;
    color: #e6edf3;
    border-bottom: 1px solid var(--border-color)
}

html[data-theme="dark"] .nested-table-container td {
    background: #0d1117;
    color: #e6edf3;
    border-color: #30363d
}

html[data-theme="dark"] .content-viewer {
    background: #0d1117;
    color: #e6edf3;
    border-color: #30363d
}

html[data-theme="dark"] .info-box {
    background: #0b2a3a;
    border-left-color: #0ea5e9;
    color: #e6edf3
}

html[data-theme="dark"] .feature-card {
    background: #161b22;
    color: #e6edf3;
    box-shadow: none
}

html[data-theme="dark"] .faq-section {
    background: #0d1117
}

html[data-theme="dark"] .faq-item {
    background: #161b22;
    border-color: #30363d
}

html[data-theme="dark"] a {
    color: #58a6ff
}

html[data-theme="dark"] .formatted-line-numbers {
    background: var(--surface-2)!important;
    color: #8b96a6!important;
    border-color: var(--border)!important
}

html[data-theme="dark"] .json-key {
    color: #609fde!important
}

:root {
    --bg: #ffffff;
    --text: #222222;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    --link: #4caf50
}

html[data-theme="dark"] {
    --bg: #0d1117;
    --text: #e6edf3;
    --muted: #9aa4b2;
    --card: #0d1117;
    --border: #30363d;
    --link: #58a6ff
}

body,.container {
    background: var(--bg);
    color: var(--text)
}

h1,h2,h3,h4 {
    color: var(--text)
}

a {
    color: var(--link)
}

.input-wrapper,.formatted-output,.table-container,.nested-table-container,.feature-card,.faq-section,.faq-item,.how-to-section {
    background: var(--card);
    border-color: var(--border)
}

th {
    border-bottom: 1px solid var(--border)
}

td {
    border-bottom: 1px solid var(--border)
}

.how-to-header {
    border-bottom: 1px solid var(--border)
}

.how-to-header h2,.step-by-step-header,.supported-formats-header {
    color: var(--text)!important
}

.how-to-intro,.step-text,.supported-formats-list li,.tool-description-text,.faq-answer {
    color: var(--muted)!important
}

.faq-item {
    border: 1px solid var(--border)
}

.feature-card h4 {
    color: var(--text)!important
}

.feature-card p {
    color: var(--muted)!important
}

html[data-theme="dark"] .info-box {
    background: #0b2a3a;
    border-left-color: #0ea5e9;
    color: var(--text)
}

html[data-theme="dark"] {
    --bg: #141a22;
    --card: #1b2330;
    --surface-2: #202a38;
    --text: #e9eef6;
    --muted: #b7c0cc;
    --border: #3b4554;
    --border-strong: #4b5565;
    --link: #8ab4ff
}

html[data-theme="dark"] body,html[data-theme="dark"] .container {
    background: var(--bg)!important;
    color: var(--text)!important
}

html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4 {
    color: var(--text)!important
}

html[data-theme="dark"] a {
    color: var(--link)!important
}

html[data-theme="dark"] .site-header {
    background: var(--card)!important;
    border-bottom: 1px solid var(--border)!important;
    box-shadow: 0 1px 0 rgb(0 0 0 / .25)
}

html[data-theme="dark"] .site-header .brand,html[data-theme="dark"] .site-header .nav-links a {
    color: var(--text)!important
}

html[data-theme="dark"] .site-header .nav-links a:hover {
    color: var(--link)!important
}

html[data-theme="dark"] .site-header .nav-links {
    background: var(--bg)!important
}

html[data-theme="dark"] .input-wrapper,html[data-theme="dark"] .formatted-output,html[data-theme="dark"] .table-container,html[data-theme="dark"] .nested-table-container,html[data-theme="dark"] .feature-card,html[data-theme="dark"] .faq-section,html[data-theme="dark"] .faq-item,html[data-theme="dark"] .how-to-section {
    background: var(--card)!important;
    border-color: var(--border)!important;
    box-shadow: 0 6px 20px rgb(0 0 0 / .35)!important
}

html[data-theme="dark"] .info-box {
    background: #102435!important;
    border-left-color: #11a1e6!important;
    color: var(--text)!important
}

html[data-theme="dark"] .how-to-header {
    background: var(--card)!important;
    border-bottom: 1px solid var(--border-strong)!important
}

html[data-theme="dark"] .how-to-header h2,html[data-theme="dark"] .step-by-step-header,html[data-theme="dark"] .supported-formats-header {
    color: var(--text)!important
}

html[data-theme="dark"] .how-to-intro,html[data-theme="dark"] .step-text,html[data-theme="dark"] .supported-formats-list li,html[data-theme="dark"] .tool-description-text {
    color: var(--muted)!important
}

html[data-theme="dark"] .step-number {
    background: var(--primary-color)!important;
    color: #fff!important;
    border: 2px solid var(--border-strong);
    box-shadow: 0 1px 0 rgb(0 0 0 / .25)
}

html[data-theme="dark"] table {
    background: var(--card)!important;
    color: var(--text)!important
}

html[data-theme="dark"] th {
    background: var(--surface-2)!important;
    color: var(--text)!important;
    border-bottom: 1px solid var(--border)!important
}

html[data-theme="dark"] td {
    border-bottom: 1px solid var(--border)!important
}

html[data-theme="dark"] td:hover,html[data-theme="dark"] .nested-table-container td:hover {
    background: #223043!important
}

html[data-theme="dark"] .nested-table-container {
    box-shadow: none!important
}

html[data-theme="dark"] .nested-table-container th {
    background: var(--surface-2)!important;
    color: var(--text)!important;
    border-bottom: 1px solid var(--border)!important
}

html[data-theme="dark"] .nested-table-container td {
    background: var(--card)!important;
    color: var(--text)!important;
    border-color: var(--border)!important
}

html[data-theme="dark"] textarea {
    background: var(--card)!important;
    color: var(--text)!important
}

html[data-theme="dark"] .line-numbers {
    background: var(--surface-2)!important;
    color: #8b96a6!important;
    border-color: var(--border)!important
}

html[data-theme="dark"] .input-wrapper:focus-within {
    border-color: var(--border-strong)!important;
    box-shadow: 0 0 0 3px rgb(76 175 80 / .18)!important
}

html[data-theme="dark"] .faq-answer {
    color: var(--muted)!important
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #111823
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #55637a
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #6a7a94
}

.how-to-section .step-by-step-header {
    color: var(--text)!important;
    font-size: 1.25em!important;
    font-weight: 700!important;
    margin: 0 0 16px!important;
    padding-bottom: 8px!important;
    border-bottom: 1px solid var(--border)!important
}

.tool-description-box {
    background: var(--card)!important;
    border: 1px solid var(--border)!important;
    border-left: 4px solid var(--primary-color)!important;
    border-radius: 8px!important;
    padding: 16px 20px!important
}

.tool-description-text {
    color: var(--muted)!important
}

.how-to-section .step-number {
    background: var(--primary-color)!important;
    color: #fff!important;
    border: 2px solid var(--border)!important;
    box-shadow: 0 1px 0 rgb(0 0 0 / .2)!important
}

.how-to-section .supported-formats-list li {
    color: var(--muted)!important
}

.site-header {
    background: var(--card)!important;
    border-bottom: 1px solid var(--border)!important
}

.site-header .brand,.site-header .nav-links a {
    color: var(--text)!important
}

.site-header .nav-links a:hover {
    color: var(--link)!important
}

.site-header .cta {
    color: var(--bg)!important
}

.site-header .cta:hover {
    color: var(--bg)!important
}

html[data-theme="dark"] .tool-description-box {
    background: #1b2330!important;
    border-color: var(--border)!important
}

html[data-theme="dark"] .how-to-section {
    box-shadow: 0 6px 20px rgb(0 0 0 / .35)!important
}

html[data-theme="dark"] .how-to-section {
    background: var(--card)!important;
    border: 1px solid var(--border)!important;
    box-shadow: 0 6px 20px rgb(0 0 0 / .35)!important
}

html[data-theme="dark"] .how-to-header {
    background: var(--card)!important;
    border-bottom: 1px solid var(--border)!important
}

html[data-theme="dark"] .how-to-header h2,html[data-theme="dark"] .step-by-step-header {
    color: var(--text)!important
}

html[data-theme="dark"] .how-to-intro,html[data-theme="dark"] .step-text {
    color: var(--muted)!important
}

html[data-theme="dark"] .steps-list {
    background: transparent!important
}

html[data-theme="dark"] .step-item {
    border-bottom: 1px solid var(--border)!important
}

html[data-theme="dark"] .step-number {
    background: var(--primary-color)!important;
    color: #fff!important;
    border: 2px solid var(--border)!important;
    box-shadow: 0 1px 0 rgb(0 0 0 / .25)!important
}

html[data-theme="dark"] .step-icons {
    color: var(--primary-color)!important
}

html[data-theme="dark"] .supported-formats-header {
    color: var(--text)!important
}

html[data-theme="dark"] .supported-formats-list li {
    color: var(--muted)!important
}

.notification-container {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.notification {
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgb(0 0 0 / .15);
    overflow: hidden;
    display: flex;
    animation: slideIn 0.4s ease forwards;
    transform: translateX(100%);
    opacity: 0
}

.notification-content {
    flex: 1;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 12px
}

.notification-icon {
    font-size: 1.5rem
}

.notification-message {
    flex: 1;
    color: #2c3e50;
    text-align: left;
    font-size: .92rem;
    line-height: 1.5
}

.notification-close {
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #95a5a6;
    transition: all 0.2s
}

.notification-close:hover {
    color: #e74c3c
}

.info .notification-icon {
    color: #3498db
}

.success .notification-icon {
    color: #2ecc71
}

.warning .notification-icon {
    color: #f39c12
}

.error .notification-icon {
    color: #e74c3c
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0
    }

    100% {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0);
        opacity: 1
    }

    100% {
        transform: translateX(100%);
        opacity: 0
    }
}

@media (max-width: 600px) {
    .notification {
        width:260px
    }

    h1 {
        font-size: 2rem
    }

    .btn {
        min-width: 130px;
        padding: 10px 16px;
        font-size: .9rem
    }
}

@media (max-width: 400px) {
    .notification {
        width:240px
    }
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7
}

.blog-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #7f8c8d;
    font-size: .9rem
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: .5rem
}

.blog-content {
    font-size: 1.1rem
}

.blog-section {
    margin-bottom: 3rem
}

.blog-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem
}

.blog-section h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0
}

.blog-section h4 {
    color: #34495e;
    font-size: 1.2rem;
    margin: 1.5rem 0 .5rem 0
}

.blog-section p {
    margin-bottom: 1rem;
    color: #2c3e50
}

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

.blog-section li {
    margin-bottom: .5rem
}

.intro-section {
    background: linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color)
}

.intro-section p {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0
}

.info-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: #1565c0
}

.info-box i {
    font-size: 1.2rem;
    margin-top: .1rem
}

.code-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0
}

.code-example h4 {
    margin-top: 0;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 1rem
}

.code-example pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0;
    font-size: .9rem;
    line-height: 1.5
}

.code-example code {
    font-family: 'Consolas','Monaco','Courier New',monospace
}

.example-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgb(0 0 0 / .1)
}

.example-card h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem
}

.example-card pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
    font-size: .9rem;
    line-height: 1.4
}

.rules-list,.best-practices,.mistakes-list,.validation-benefits,.validation-types,.error-examples,.parsing-optimizations,.compression-methods,.caching-strategies,.monitoring-tools,.performance-impacts,.optimization-techniques,.challenges-list,.use-cases,.converter-features,.performance-tips,.real-world-examples,.converter-benefits {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0
}

.rule-item,.practice-item,.mistake-item,.benefit-item,.validation-type,.error-example,.optimization-item,.method-card,.strategy-item,.tool-item,.impact-item,.technique-card,.challenge-item,.use-case,.feature-item,.tip-item,.example-item,.benefit-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgb(0 0 0 / .05)
}

.rule-item h4,.practice-item h4,.mistake-item h4,.benefit-item h4,.validation-type h3,.error-example h4,.optimization-item h4,.method-card h4,.strategy-item h4,.tool-item h4,.impact-item h4,.technique-card h3,.challenge-item h4,.use-case h4,.feature-item h4,.tip-item h4,.example-item h4,.benefit-item h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.rule-item h4 i,.practice-item h4 i,.mistake-item h4 i,.benefit-item h4 i,.validation-type h3 i,.error-example h4 i,.optimization-item h4 i,.method-card h4 i,.strategy-item h4 i,.tool-item h4 i,.impact-item h4 i,.technique-card h3 i,.challenge-item h4 i,.use-case h4 i,.feature-item h4 i,.tip-item h4 i,.example-item h4 i,.benefit-item h4 i {
    color: var(--primary-color)
}

.methods-grid,.auth-methods,.validation-techniques,.language-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 1.5rem;
    margin: 1.5rem 0
}

.method-card,.auth-method,.technique,.language-example {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgb(0 0 0 / .05)
}

.method-card h4,.auth-method h4,.technique h4,.language-example h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.method-card h4 i,.auth-method h4 i,.technique h4 i,.language-example h4 i {
    color: var(--primary-color)
}

.code-snippet {
    margin-top: 1rem
}

.code-snippet pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.4
}

.comparison-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0
}

.before-after h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1rem
}

.before-after pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.4;
    margin: 0
}

.schema-example {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgb(0 0 0 / .05)
}

.schema-example h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 1rem
}

.schema-example pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.4;
    margin: 0
}

.error-example {
    border-left: 4px solid #e74c3c
}

.error-example h4 i {
    color: #e74c3c
}

.blog-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0
}

.share-section {
    margin-bottom: 2rem
}

.share-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.share-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease
}

.share-btn.twitter {
    background: #1da1f2
}

.share-btn.linkedin {
    background: #0077b5
}

.share-btn.facebook {
    background: #4267b2
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / .2)
}

.related-posts h4 {
    color: #2c3e50;
    margin-bottom: 1rem
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.related-posts li {
    margin-bottom: .75rem
}

.related-posts a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease
}

.related-posts a:hover {
    color: var(--hover-color);
    text-decoration: underline
}

.blog-index {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start
}

.blog-main-content {
    min-width: 0
}

.blog-index-header {
    text-align: center;
    margin-bottom: 3rem
}

.blog-index-header h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6
}

.blog-categories {
    margin-bottom: 3rem
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap
}

.category-btn {
    padding: .75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: #fff;
    color: #495057;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color)
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    gap: 2rem;
    margin-bottom: 3rem
}

.blog-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgb(0 0 0 / .1);
    transition: all 0.3s ease
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgb(0 0 0 / .15)
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg,var(--primary-color) 0%,#45a049 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem
}

.blog-card-content {
    padding: 1.5rem
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem
}

.category-tag {
    background: var(--primary-color);
    color: #fff;
    padding: .25rem .75rem;
    border-radius: 15px;
    font-size: .8rem;
    font-weight: 500
}

.read-time {
    color: #7f8c8d;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .25rem
}

.blog-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    line-height: 1.3
}

.blog-card h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease
}

.blog-card h2 a:hover {
    color: var(--primary-color)
}

.blog-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6
}

.blog-card-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1.5rem
}

.blog-card-features span {
    color: #495057;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.blog-card-features i {
    color: var(--primary-color);
    font-size: .8rem
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef
}

.publish-date {
    color: #7f8c8d;
    font-size: .9rem
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: all 0.3s ease
}

.read-more:hover {
    color: var(--hover-color);
    transform: translateX(4px)
}

.blog-sidebar {
    max-width: 300px;
    margin: 0 auto
}

.sidebar-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgb(0 0 0 / .05)
}

.sidebar-section h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.topic-tag {
    background: #f8f9fa;
    color: #495057;
    padding: .5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: .9rem;
    transition: all 0.3s ease
}

.topic-tag:hover {
    background: var(--primary-color);
    color: #fff
}

.latest-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.latest-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef
}

.latest-article:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.article-date {
    background: var(--primary-color);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center
}

.latest-article a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease
}

.latest-article a:hover {
    color: var(--primary-color)
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.tool-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease
}

.tool-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(4px)
}

.tool-link i {
    font-size: 1.2rem;
    color: var(--primary-color)
}

.tool-link:hover i {
    color: #fff
}

.newsletter-signup p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: .9rem
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.newsletter-form input {
    padding: .75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: .9rem
}

.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: .75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease
}

.newsletter-form button:hover {
    background: var(--hover-color)
}

.blog-cta {
    background: linear-gradient(135deg,var(--primary-color) 0%,#45a049 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: .9
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem
}

.cta-btn.primary {
    background: #fff;
    color: var(--primary-color)
}

.cta-btn.secondary {
    background: #fff0;
    color: #fff;
    border: 2px solid #fff
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(0 0 0 / .2)
}

[data-theme="dark"] .blog-post {
    color: #e2e8f0
}

[data-theme="dark"] .blog-header h1,[data-theme="dark"] .blog-section h2,[data-theme="dark"] .blog-section h3,[data-theme="dark"] .blog-section h4 {
    color: #f7fafc
}

[data-theme="dark"] .blog-section p {
    color: #e2e8f0
}

[data-theme="dark"] .intro-section {
    background: linear-gradient(135deg,#3f4a5d 0%,#4a5568 100%);
    border-left-color: var(--primary-color)
}

[data-theme="dark"] .info-box {
    background: #1a365d;
    border-color: #3182ce;
    color: #90cdf4
}

[data-theme="dark"] .code-example,[data-theme="dark"] .example-card,[data-theme="dark"] .schema-example {
    background: #2d3748;
    border-color: #4a5568
}

[data-theme="dark"] .code-example pre,[data-theme="dark"] .example-card pre,[data-theme="dark"] .schema-example pre,[data-theme="dark"] .before-after pre,[data-theme="dark"] .code-snippet pre {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0
}

[data-theme="dark"] .rule-item,[data-theme="dark"] .practice-item,[data-theme="dark"] .mistake-item,[data-theme="dark"] .benefit-item,[data-theme="dark"] .validation-type,[data-theme="dark"] .error-example,[data-theme="dark"] .optimization-item,[data-theme="dark"] .method-card,[data-theme="dark"] .strategy-item,[data-theme="dark"] .tool-item,[data-theme="dark"] .impact-item,[data-theme="dark"] .technique-card,[data-theme="dark"] .challenge-item,[data-theme="dark"] .use-case,[data-theme="dark"] .feature-item,[data-theme="dark"] .tip-item,[data-theme="dark"] .example-item,[data-theme="dark"] .benefit-item {
    background: #2d3748;
    border-color: #4a5568
}

[data-theme="dark"] .blog-card {
    background: #2d3748;
    border-color: #4a5568
}

[data-theme="dark"] .blog-card h2 a {
    color: #f7fafc
}

[data-theme="dark"] .blog-card p {
    color: #a0aec0
}

[data-theme="dark"] .blog-card-features span {
    color: #e2e8f0
}

[data-theme="dark"] .sidebar-section {
    background: #2d3748;
    border-color: #4a5568
}

[data-theme="dark"] .topic-tag {
    background: #4a5568;
    color: #e2e8f0
}

[data-theme="dark"] .tool-link {
    background: #4a5568;
    color: #e2e8f0
}

[data-theme="dark"] .latest-article a {
    color: #e2e8f0
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size:2rem
    }

    .blog-index-header h1 {
        font-size: 2.5rem
    }

    .blog-index {
        grid-template-columns: 1fr;
        gap: 2rem
    }

    .blog-grid {
        grid-template-columns: 1fr
    }

    .comparison-example {
        grid-template-columns: 1fr
    }

    .methods-grid,.auth-methods,.validation-techniques,.language-examples {
        grid-template-columns: 1fr
    }

    .blog-card-features {
        grid-template-columns: 1fr
    }

    .cta-content h2 {
        font-size: 2rem
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center
    }

    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: .5rem
    }

    .category-btn {
        white-space: nowrap
    }
}

@media (max-width: 480px) {
    .blog-meta {
        flex-direction:column;
        gap: .5rem
    }

    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start
    }

    .blog-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start
    }

    .share-buttons {
        flex-direction: column
    }

    .share-btn {
        justify-content: center
    }
}

#languageSelect {
    width: 100px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 8px 32px 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px
}

#languageSelect:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgb(0 123 255 / .15)
}

#languageSelect:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgb(0 123 255 / .25)
}

[data-theme="dark"] #languageSelect {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23f8f9fa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e')
}

[data-theme="dark"] #languageSelect:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgb(0 123 255 / .3)
}

[data-theme="dark"] #languageSelect:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgb(0 123 255 / .4)
}

@media (max-width: 768px) {
    #languageSelect {
        font-size:13px;
        padding: 6px 28px 6px 12px
    }
}

#languageSelect option {
    background-color: #fff;
    color: #333;
    padding: 8px
}

[data-theme="dark"] #languageSelect option {
    background-color: #343a40;
    color: #f8f9fa
}

/* Page title — compact H1 above tool */
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin: 0 0 16px;
    padding: 0;
    letter-spacing: -0.01em
}

[data-theme="dark"] .page-title {
    color: #f0f6fc
}

@media (max-width: 768px) {
    .buttons {
        flex-wrap:wrap
    }

    button {
        padding: 8px 14px;
        font-size: 13px;
        gap: 5px
    }

    button svg {
        width: 14px;
        height: 14px
    }

    .page-title {
        font-size: 1.15rem;
        margin-bottom: 12px
    }
}

/* Table zebra striping - Light theme */
#output table {
    border-collapse: collapse;
}

#output table tbody tr:nth-child(even) td {
    background-color: #f7f9fc;
}

#output table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

#output table tbody tr:hover td {
    background-color: #eef3fb;
}

/* Nested tables zebra striping - Light theme */
.nested-table-container table tbody tr:nth-child(even) td {
    background-color: #f8fbff;
}

.nested-table-container table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.nested-table-container table tbody tr:hover td {
    background-color: #eef3fb;
}

/* Table zebra striping - Dark theme */
html[data-theme='dark'] #output table tbody tr:nth-child(even) td {
    background-color: #1a2433;
}

html[data-theme='dark'] #output table tbody tr:nth-child(odd) td {
    background-color: #0d1117;
}

html[data-theme='dark'] #output table tbody tr:hover td {
    background-color: #223043;
}

html[data-theme='dark'] .nested-table-container table tbody tr:nth-child(even) td {
    background-color: #162131;
}

html[data-theme='dark'] .nested-table-container table tbody tr:nth-child(odd) td {
    background-color: #0d1117;
}

html[data-theme='dark'] .nested-table-container table tbody tr:hover td {
    background-color: #223043;
}

/* JSON syntax highlight — !important to resist dark theme cascade */
.json-key {
    color: #3b7dd8 !important;
}

.json-string {
    color: #28a745 !important;
}

.json-number {
    color: #d4880f !important;
}

.json-boolean {
    color: #dc3545 !important;
}

.json-null {
    color: #6c757d !important;
}

html[data-theme='dark'] .json-key {
    color: #7eb8f0 !important;
}

html[data-theme='dark'] .json-string {
    color: #63d97e !important;
}

html[data-theme='dark'] .json-number {
    color: #ffd700 !important;
}

html[data-theme='dark'] .json-boolean {
    color: #f88181 !important;
}

html[data-theme='dark'] .json-null {
    color: #8b949e !important;
}
