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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1e293b;
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-header nav a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.main-header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    transition: width 0.3s;
}

.main-header nav a:hover {
    color: #1e293b;
}

.main-header nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(14, 165, 233, 0.2);
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.loader-spinner {
    will-change: transform;
    transform: translateZ(0);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Page Transition */
main {
    transition: opacity 0.4s ease;
    opacity: 1;
}

/* Main Content */
main {
    padding: 0;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #0ea5e9;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
    animation: float 20s ease-in-out infinite, pulse 4s ease-in-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    bottom: -150px;
    left: -50px;
    animation-delay: 5s;
    animation: float 25s ease-in-out infinite reverse, pulse 5s ease-in-out infinite 1s;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #14b8a6;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
    animation: float-orb3 18s ease-in-out infinite, pulse 3.5s ease-in-out infinite 0.5s;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(30px, -30px, 0) scale(1.1);
    }
    66% {
        transform: translate3d(-20px, 20px, 0) scale(0.9);
    }
}

/* Special handling for orb-3 which uses translate(-50%, -50%) */
@keyframes float-orb3 {
    0%, 100% {
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
    33% {
        transform: translate3d(calc(-50% + 30px), calc(-50% - 30px), 0) scale(1.1);
    }
    66% {
        transform: translate3d(calc(-50% - 20px), calc(-50% + 20px), 0) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
    will-change: transform, opacity;
}

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

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    will-change: transform, opacity;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    will-change: transform, opacity;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-hero-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate3d(0, -2px, 0);
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    will-change: transform, opacity;
}


.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.tools-section .section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
    padding: 0;
    display: block;
}

.tools-section .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
}

.tools-section .section-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-top: 1.5rem;
    font-weight: 400;
    text-align: center;
}

.tools-section .section-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 70px;
    height: 3px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card-link:hover {
    transform: translate3d(0, -4px, 0);
}

.tool-card-link:active {
    transform: translate3d(0, -2px, 0);
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
    will-change: transform;
}

.tool-card-link:hover .tool-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.tool-card-link:hover .tool-card::before {
    transform: scaleX(1);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s;
}

.tool-card-link:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
    will-change: transform;
}

.tool-content {
    flex: 1;
}

.tool-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.tool-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tool-footer {
    margin-top: auto;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    pointer-events: none;
}

.tool-card-link:hover .tool-link {
    color: #0284c7;
    gap: 0.75rem;
}

.tool-link .arrow {
    transition: transform 0.2s;
}

.tool-card-link:hover .tool-link .arrow {
    transform: translate3d(4px, 0, 0);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translate3d(0, -4px, 0);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}


.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.tool-header h1 {
    font-size: 1.875rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tool-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Mode Toggle */
.mode-toggle {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    display: inline-block;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0ea5e9;
}

.toggle-text {
    font-weight: 500;
    color: #1e293b;
}

.toggle-info {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
}

.tool-container {
    background: white;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.tool-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.08);
}

/* Unified JSON Editor Layout */
.unified-json-editor {
    display: flex;
    flex-direction: column;
    min-height: 700px;
    max-height: 80vh;
    background: #ffffff;
}

/* Main Tabs */
.main-tabs {
    display: flex;
    gap: 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    margin: 0;
}

.main-tab-btn {
    padding: 0.875rem 1.75rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-tab-btn:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.main-tab-btn.active {
    color: #2563eb;
    background: white;
    border-bottom-color: #3b82f6;
    font-weight: 700;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-toolbar {
    padding: 0.5rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1.5;
}

.btn-toolbar:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-toolbar:active {
    background: #e5e7eb;
    transform: translate3d(0, 1px, 0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-toolbar-primary {
    padding: 0.5rem 0.875rem;
    border: 1px solid #3b82f6;
    border-radius: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.btn-toolbar-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.4);
    transform: translate3d(0, -1px, 0);
}

.btn-toolbar-primary.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.btn-toolbar-primary.active:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.5);
}

/* Tab Content */
.tab-content {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    min-height: 400px;
}

.tab-content.active {
    display: flex;
}

/* Ensure input tab is visible on mobile when active */
#inputTabContent.active {
    display: flex !important;
}

/* Ensure viewer tab is visible on mobile when active */
#viewerTabContent.active {
    display: flex !important;
}

.unified-textarea {
    flex: 1;
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    resize: none;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.7;
    outline: none;
    overflow-y: auto;
    min-height: 500px;
    tab-size: 2;
    -moz-tab-size: 2;
}

.unified-textarea:focus {
    background: #ffffff;
    outline: none;
}

.unified-textarea[readonly] {
    background: #f9fafb;
    color: #374151;
    cursor: default;
}

.unified-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Side-by-side JSON Editor Layout */
.json-editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 700px;
    max-height: 80vh;
}

.json-input-panel {
    display: flex;
    flex-direction: column;
    border-right: 2px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
}

.json-output-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-icon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.panel-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #fafbfc;
    border-bottom: 1px solid #e2e8f0;
}

.btn-action {
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #334155;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
}

.btn-action:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0ea5e9;
}

.btn-action.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-color: #0ea5e9;
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-action.active:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

.json-input-textarea {
    flex: 1;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    background: #fafbfc;
    color: #1e293b;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    min-height: 400px;
}

.json-input-textarea:focus {
    background: #ffffff;
}

.json-output-textarea {
    flex: 1;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    min-height: 400px;
}

.mode-toggle-bottom {
    padding: 0.875rem 1.25rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.panel-header-small {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.panel-header-small h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.input-section, .output-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #1e293b;
}

.code-textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    background: #f8fafc;
    line-height: 1.5;
}

.code-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
}

.code-textarea.output {
    background: #f1f5f9;
}

/* Buttons */
.btn, .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    background: #0ea5e9;
    color: white;
}

.btn-primary:hover {
    background: #0284c7;
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translate3d(0, 0, 0);
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Validation Message - Above Container */
.validation-message {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 10;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.validation-message.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid #059669;
}

.validation-message.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 1px solid #dc2626;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.validation-message.fadeOut {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
}

/* Error Message - Internal errors (below container) */
.error-message {
    display: none;
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

/* Footer */
.main-footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-brand {
    text-align: left;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
}

.footer-brand h3 {
    justify-content: flex-start;
}

.footer-logo-icon {
    font-size: 1.5rem;
    display: inline-block;
}

.footer-logo-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-weight: 600;
    text-align: left;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
}

.footer-brand p {
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #06b6d4;
    text-decoration: underline;
}

/* Page Content Styles */
.page-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 2rem auto;
    line-height: 1.8;
    border: 1px solid #e2e8f0;
}

.page-content h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #0ea5e9;
    padding-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-content h3 {
    font-size: 1.3rem;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.page-content section {
    margin-bottom: 2rem;
}

.page-content ul, .page-content ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: #0ea5e9;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.last-updated {
    color: #64748b;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Contact Page Styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.contact-method h3 {
    margin-top: 0;
    color: #1e293b;
}

.contact-info {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.help-category {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid #0ea5e9;
}

.help-category h3 {
    margin-top: 0;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    /* Header - Shorten logo on mobile */
    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 1rem;
        letter-spacing: -0.02em;
    }
    
    /* On very small screens, make logo even more compact */
    @media (max-width: 480px) {
        .logo {
            font-size: 1rem;
            gap: 0.4rem;
        }
        
        .logo-icon {
            font-size: 1.2rem;
        }
        
        .logo-text {
            font-size: 0.95rem;
        }
    }
    
    .main-header {
        padding: 1rem 0;
    }
    
    .main-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide regular nav on mobile */
    .main-header nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.3s ease;
        will-change: transform;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        overflow-y: auto;
        margin-top: 0;
        font-size: 1.1rem;
    }
    
    .main-header nav.mobile-menu-open {
        transform: translate3d(0, 0, 0);
    }
    
    .main-header nav a {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .main-header nav a::after {
        display: none;
    }
    
    .main-header nav a:hover {
        color: #0ea5e9;
        border-bottom-color: #0ea5e9;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 0 5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Tools Section - Fix mobile layout */
    .tools-section {
        padding: 4rem 0;
    }
    
    .tools-section .container {
        padding: 0 1.5rem;
    }
    
    .tools-section .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
        text-align: center;
        display: block;
    }
    
    .tools-section .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -0.02em;
        text-align: center;
    }
    
    .tools-section .section-subtitle {
        font-size: 0.95rem;
        padding: 0;
        line-height: 1.6;
        color: #64748b;
        max-width: 100%;
        margin: 0 auto;
        padding-top: 1.25rem;
        font-weight: 400;
        text-align: center;
    }
    
    .tools-section .section-subtitle::before {
        width: 50px;
        height: 2.5px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .tool-card-link {
        width: 100%;
        box-sizing: border-box;
    }
    
    .tool-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .tool-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .tool-name {
        font-size: 1.2rem;
        margin-bottom: 0.625rem;
        line-height: 1.3;
        font-weight: 700;
    }
    
    .tool-description {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        color: #64748b;
    }
    
    .tool-link {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    /* Very small screens */
    @media (max-width: 480px) {
        .tools-section {
            padding: 3rem 0;
        }
        
        .tools-section .container {
            padding: 0 1rem;
        }
        
        .tools-section .section-header {
            margin-bottom: 2.5rem;
            padding: 0 0.5rem;
            text-align: center;
        }
        
        .tools-section .section-title {
            font-size: 1.75rem;
            margin-bottom: 0.875rem;
            text-align: center;
        }
        
        .tools-section .section-subtitle {
            font-size: 0.875rem;
            max-width: 100%;
            padding: 0;
            margin: 0 auto;
            padding-top: 1rem;
            text-align: center;
        }
        
        .tools-section .section-subtitle::before {
            width: 45px;
            height: 2px;
        }
        
        .tool-card-link {
            width: 100%;
            box-sizing: border-box;
        }
        
        .tool-card {
            padding: 1.25rem;
            width: 100%;
            box-sizing: border-box;
        }
        
        .tool-icon {
            font-size: 2rem;
            margin-bottom: 0.875rem;
        }
        
        .tool-name {
            font-size: 1.1rem;
        }
        
        .tool-description {
            font-size: 0.8rem;
        }
    }
    
    /* Features Section */
    .features-section {
        padding: 3rem 0;
    }
    
    .features-section .container {
        padding: 0 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
    }
    
    .feature-card {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Tool Page */
    main > .container {
        padding: 1rem 0.5rem;
    }
    
    .tool-header {
        margin-bottom: 1.25rem;
        padding: 0.75rem 0.5rem;
    }
    
    .tool-header h1 {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }
    
    .tool-header p {
        font-size: 0.875rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .tool-container {
        padding: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    
    .tool-container:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    /* Unified editor mobile styles */
    .unified-json-editor {
        min-height: 600px;
        max-height: none;
    }
    
    .tool-container {
        margin: 0 0.75rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .unified-json-editor {
        min-height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
    }
    
    .main-tabs {
        padding: 0.375rem 0.5rem;
        background: #f9fafb;
        display: flex;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex: 1;
        min-width: 80px;
    }
    
    .main-tab-btn.active {
        border-bottom-color: #3b82f6;
        color: #2563eb;
        border-bottom-width: 3px;
    }
    
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.625rem;
        background: #f9fafb;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .btn-toolbar,
    .btn-toolbar-primary {
        flex: 1 1 auto;
        min-width: 75px;
        max-width: 48%;
        font-size: 0.7rem;
        padding: 0.45rem 0.5rem;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-toolbar-primary {
        font-weight: 600;
        box-shadow: 0 1px 2px rgba(59, 130, 246, 0.25);
    }
    
    .btn-toolbar-primary:hover {
        transform: translate3d(0, 0, 0);
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.35);
    }
    
    .btn-toolbar-primary.active {
        box-shadow: 0 2px 4px rgba(16, 185, 129, 0.35);
    }
    
    .btn-toolbar-primary.active:hover {
        transform: translate3d(0, 0, 0);
        box-shadow: 0 3px 6px rgba(16, 185, 129, 0.4);
    }
    
    .btn-toolbar:hover {
        transform: translate3d(0, 0, 0);
    }
    
    /* Button text truncation on very small screens */
    @media (max-width: 480px) {
        .btn-toolbar,
        .btn-toolbar-primary {
            font-size: 0.65rem;
            padding: 0.4rem 0.4rem;
            min-width: 65px;
        }
        
        .btn-toolbar-primary[id="minifyBtn"] {
            font-size: 0.6rem;
        }
    }
    
    .tab-content {
        min-height: 300px;
        display: none !important;
    }
    
    .tab-content.active {
        display: flex !important;
    }
    
    .unified-textarea {
        min-height: 300px;
        font-size: 13px;
        padding: 0.875rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mode-toggle-bottom {
        padding: 0.5rem 0.75rem;
        background: #f9fafb;
        width: 100%;
        box-sizing: border-box;
    }
    
    .toggle-label {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .toggle-label .toggle-text {
        font-size: 0.8rem;
    }
    
    .toggle-label .toggle-info {
        font-size: 0.7rem;
        width: 100%;
    }
    
    .viewer-panels {
        grid-template-columns: 1fr;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    .viewer-left-panel {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        min-height: 250px;
        max-height: 50vh;
        flex: 1;
    }
    
    .viewer-right-panel {
        min-height: 200px;
        max-height: 30vh;
        flex: 1;
    }
    
    .json-tree-view,
    .json-table-view {
        font-size: 12px;
        padding: 0.625rem;
        overflow-x: auto;
    }
    
    .panel-header-small {
        background: #f9fafb;
        padding: 0.625rem 0.875rem;
    }
    
    .panel-header-small h4 {
        font-size: 0.75rem;
    }
    
    /* Validation Message Mobile Styles */
    .validation-message {
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
        margin: 0 auto 1.25rem;
        max-width: 100%;
        border-radius: 8px;
    }
    
    /* Output Controls - Fix alignment on mobile */
    .output-controls {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .view-tabs {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* On mobile, hide two-panel viewer, show single tree view */
    .viewer-container {
        display: none !important;
    }
    
    .viewer-container.active {
        display: none !important;
    }
    
    /* Show old tree container on mobile when viewer is active */
    #treeOutputContainer {
        display: none;
        background: #f8fafc;
        border: 2px solid #e2e8f0;
        border-radius: 6px;
        padding: 1rem;
        min-height: 250px;
        max-height: 40vh;
        overflow-y: auto;
        margin: 0.75rem 1.25rem;
    }
    
    .text-output-container {
        display: none !important;
        flex-direction: column;
    }
    
    .text-output-container.active {
        display: flex !important;
    }
    
    .code-textarea {
        min-height: 250px;
        font-size: 13px;
        padding: 0.875rem;
    }
    
    /* Footer mobile fixes */
    .main-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        justify-content: flex-start;
    }
    
    .footer-brand h3 {
        justify-content: flex-start;
    }
    
    .footer-section h4 {
        text-align: left;
    }
    
    .footer-section p {
        text-align: left;
    }
    
    .footer-brand p {
        text-align: left;
    }
    
    .footer-logo-icon {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        border-top: 1px solid #334155;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .footer-bottom a {
        word-break: break-word;
    }
    
    .tool-container {
        padding: 1.5rem;
    }
    
    .code-textarea {
        min-height: 250px;
        font-size: 13px;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-methods,
    .help-categories {
        grid-template-columns: 1fr;
    }
}

/* JSON Tree View Styles */
.output-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.view-tabs {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-right: 0.5rem;
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.tab-btn.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.tab-btn.active:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
}

/* Viewer Container - Two Panel Layout */
.viewer-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    min-height: 500px;
    max-height: 100%;
}

@media (max-width: 1024px) {
    .json-editor-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }
    
    .json-input-panel {
        border-right: none;
        border-bottom: 2px solid #e2e8f0;
        min-height: 400px;
        max-height: 50vh;
    }
    
    .json-output-panel {
        min-height: 400px;
        max-height: 50vh;
    }
    
    .viewer-panels {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 400px;
    }
    
    .viewer-left-panel {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        min-height: 300px;
        max-height: 40vh;
    }
    
    .viewer-right-panel {
        min-height: 200px;
        max-height: 30vh;
    }
}

.viewer-left-panel {
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.viewer-right-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.json-tree-view {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.875rem 1rem;
    background: #ffffff;
    min-height: 300px;
    max-height: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.json-table-view {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 300px;
    max-height: 100%;
    background: #ffffff;
}

.properties-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.properties-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.properties-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    background: #f9fafb;
}

.properties-table th.sortable:hover {
    background: rgba(14, 165, 233, 0.1);
}

.properties-table th.sortable {
    position: relative;
}

.sort-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.properties-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
}

.properties-table tbody tr {
    transition: background-color 0.1s ease;
}

.properties-table tbody tr:hover {
    background: #f9fafb;
}

.properties-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.properties-table tbody tr:nth-child(even):hover {
    background: #f9fafb;
}

.properties-table .empty-message {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 3rem 1rem;
    font-size: 0.875rem;
}

.text-output-container {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

.text-output-container.active {
    display: flex;
}

#treeOutputContainer {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    display: none;
}

.json-tree,
.json-tree-view {
    padding: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 14px;
}

.tree-node {
    margin: 0.25rem 0;
}

.tree-node-header {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-radius: 3px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.tree-node-header:hover {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 3px solid #0ea5e9;
    padding-left: calc(0.5rem - 3px);
}

.tree-node-header.selected {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 3px solid #0ea5e9;
    padding-left: calc(0.5rem - 3px);
}

.tree-node-header.expandable {
    cursor: pointer;
}

.tree-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    color: #0ea5e9;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    transition: transform 0.2s, color 0.2s;
    font-weight: bold;
}

.tree-node-header:hover .tree-icon {
    color: #8b5cf6;
}

.tree-node-header.expanded .tree-icon {
    color: #059669;
}

.tree-spacer {
    display: inline-block;
    width: 16px;
    margin-right: 0.5rem;
}

.tree-key {
    color: #7c3aed;
    font-weight: 600;
    margin-right: 0.5rem;
}

.tree-value {
    color: #1e293b;
    margin-right: 0.5rem;
}

.tree-value-string {
    color: #059669;
    font-weight: 500;
}

.tree-value-number {
    color: #dc2626;
    font-weight: 600;
}

.tree-value-boolean {
    color: #ea580c;
    font-weight: 600;
}

.tree-value-null {
    color: #6b7280;
    font-style: italic;
    font-weight: 500;
}

.tree-value-object {
    color: #0ea5e9;
    font-weight: 600;
}

.tree-value-array {
    color: #8b5cf6;
    font-weight: 600;
}

.tree-type {
    color: #64748b;
    font-size: 0.85em;
    font-style: italic;
    margin-left: 0.5rem;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.tree-children {
    margin-left: 1.5rem;
    border-left: 2px solid rgba(14, 165, 233, 0.3);
    padding-left: 1rem;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.tree-error {
    color: #dc2626;
    padding: 1rem;
    background: #fee2e2;
    border-radius: 6px;
    text-align: center;
}

/* Scrollbar styling for tree view */
#treeOutputContainer::-webkit-scrollbar {
    width: 8px;
}

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

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

#treeOutputContainer::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Coming Soon Page Styles */
.coming-soon-container {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.coming-soon-container h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.coming-soon-message {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.coming-soon-features {
    text-align: left;
    display: inline-block;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    list-style: none;
    max-width: 500px;
}

.coming-soon-features li {
    padding: 0.75rem 0;
    color: #334155;
    font-size: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.coming-soon-features li:last-child {
    border-bottom: none;
}

.coming-soon-note {
    color: #64748b;
    font-size: 0.95rem;
    margin: 2rem 0;
    line-height: 1.6;
}

.coming-soon-note a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.coming-soon-note a:hover {
    text-decoration: underline;
}

.coming-soon-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.coming-soon-actions .btn-primary,
.coming-soon-actions .btn-secondary {
    min-width: 180px;
}

/* Additional mobile fixes for coming soon pages */
@media (max-width: 768px) {
    .coming-soon-container {
        padding: 2rem 1rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
    
    .coming-soon-container h2 {
        font-size: 1.5rem;
    }
    
    .coming-soon-features {
        padding: 1.5rem;
    }
    
    .coming-soon-actions {
        flex-direction: column;
    }
    
    .coming-soon-actions .btn-primary,
    .coming-soon-actions .btn-secondary {
        width: 100%;
    }
    
    /* Tree view mobile fixes */
    #treeOutputContainer {
        min-height: 250px;
        max-height: 400px;
        padding: 0.75rem;
    }
    
    .tree-node-header {
        padding: 0.375rem 0.5rem;
    }
    
    .tree-icon {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .tree-children {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }
    
    /* Blog mobile fixes */
    .blog-hero {
        padding: 3rem 0;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
    
    .blog-section .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .blog-card {
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .blog-post-container {
        padding: 2rem 0;
        overflow-x: hidden;
    }
    
    .blog-post-container .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .blog-post-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
        word-wrap: break-word;
    }
    
    .blog-post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .blog-post-content {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .blog-post-content h3 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }
    
    .blog-post-content pre {
        overflow-x: auto;
        max-width: 100%;
        font-size: 0.85rem;
    }
    
    .blog-post-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
    
    .blog-post-content img {
        max-width: 100%;
        height: auto;
    }
}

/* Blog Styles */
.blog-hero {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.blog-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: white;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.blog-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-link:hover {
    transform: translate3d(0, -4px, 0);
}

.blog-card-link:active {
    transform: translate3d(0, -2px, 0);
}

.blog-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card-link:hover .blog-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
    will-change: transform;
}

.blog-card-link:hover .blog-card::before {
    transform: scaleX(1);
}

.blog-card:nth-child(1),
.blog-card:nth-child(2),
.blog-card:nth-child(3),
.blog-card:nth-child(4),
.blog-card:nth-child(5),
.blog-card:nth-child(6) {
    animation: none;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date,
.blog-reading-time {
    display: inline-flex;
    align-items: center;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.2s;
    pointer-events: none;
}

.blog-card-link:hover .blog-card-title {
    color: #0ea5e9;
}

.blog-card-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.blog-read-more {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: inline-block;
    pointer-events: none;
}

.blog-card-link:hover .blog-read-more {
    color: #0284c7;
    transform: translate3d(4px, 0, 0);
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

/* Blog Post Styles */
.blog-post-container {
    padding: 3rem 0;
    background: white;
    overflow-x: hidden;
    width: 100%;
}

.blog-post-container .container {
    max-width: 100%;
    padding: 0 1rem;
    overflow-x: hidden;
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-date,
.blog-post-reading-time,
.blog-post-author {
    display: inline-flex;
    align-items: center;
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-post-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #334155;
    font-size: 1.1rem;
    overflow-x: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    scroll-margin-top: 80px; /* Offset for fixed header */
}

.blog-post-content h2[id],
.blog-post-content h3[id],
.blog-post-content h4[id] {
    scroll-margin-top: 80px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    scroll-margin-top: 80px;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    scroll-margin-top: 80px;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.blog-post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.blog-post-content blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #475569;
    font-style: italic;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-post-content table th,
.blog-post-content table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.blog-post-content table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.blog-post-content a {
    color: #0ea5e9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-post-content a:hover {
    border-bottom-color: #0ea5e9;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog-post-footer {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.blog-post-cta {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
}

.blog-post-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: white;
}

.blog-post-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.blog-post-cta .btn-primary {
    background: white;
    color: #0ea5e9;
}

.blog-post-cta .btn-primary:hover {
    background: #f8fafc;
    transform: translate3d(0, -2px, 0);
}

.related-posts {
    padding: 4rem 0;
    background: #f8fafc;
}

.related-posts-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

