/* ============================================
   JSON-TOOLS.HTML - YENİ TASARIM
   Modern, Temiz, Kullanıcı Dostu
   ============================================ */

/* 1. WORKSPACE LAYOUT */
.json-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* 2. PANEL DESIGN */
.json-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.json-panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(38, 188, 194, 0.08), rgba(14, 165, 233, 0.08));
    border-bottom: 1px solid var(--border);
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header i {
    color: var(--primary);
}

.panel-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Fira Code', 'Consolas', monospace;
}

.panel-body {
    padding: 24px;
}

.panel-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
}

/* 3. TEXTAREA */
.json-textarea {
    width: 100%;
    min-height: 450px;
    padding: 16px;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-main);
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
}

.json-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 188, 194, 0.1);
}

/* 4. ACTION BUTTONS */
.action-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.action-btn i {
    font-size: 1rem;
}

.action-btn.validate {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.action-btn.validate:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.action-btn.beautify {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

.action-btn.beautify:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.action-btn.minify {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #9333ea;
}

.action-btn.minify:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.action-btn.clear {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-main);
}

.action-btn.clear:hover {
    background: var(--bg-body);
    transform: translateY(-2px);
}

.action-btn.copy,
.action-btn.download {
    background: rgba(38, 188, 194, 0.1);
    border-color: rgba(38, 188, 194, 0.3);
    color: var(--primary);
}

.action-btn.copy:hover,
.action-btn.download:hover {
    background: rgba(38, 188, 194, 0.2);
    transform: translateY(-2px);
}

/* 5. VIEW TABS */
.view-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    padding: 4px;
    border-radius: 8px;
}

.view-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-tab:hover {
    background: var(--surface);
    color: var(--text-main);
}

.view-tab.active {
    background: var(--primary);
    color: #fff;
}

/* 6. OUTPUT */
.json-output {
    width: 100%;
    min-height: 450px;
    padding: 16px;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.output-stats {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(38, 188, 194, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Fira Code', 'Consolas', monospace;
}

/* 7. ADVANCED TOOLS */
.advanced-tools {
    margin: 60px 0 40px;
}

.tools-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-title i {
    color: var(--primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

/* 8. TOOL CARDS */
.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tool-card-wide {
    grid-column: span 3;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tool-header i {
    font-size: 1.3rem;
    color: var(--primary);
}

.tool-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.tool-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tool-btn {
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.tool-btn-full {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.1));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #16a34a;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.tool-btn-full:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
    transform: translateY(-2px);
}

/* 9. SEARCH & SCHEMA */
.tool-search {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-group {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    font-family: 'Fira Code', 'Consolas', monospace;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-btn {
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.tool-schema {
    display: flex;
    flex-direction: column;
}

.schema-input {
    min-height: 150px;
    margin-bottom: 0;
}

/* 10. RESULTS PANELS */
.results-panel {
    margin-top: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.results-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
}

/* 11. SAMPLES SECTION */
.samples-section {
    margin: 40px 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.samples-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sample-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sample-btn {
    padding: 14px 16px;
    background: var(--bg-body);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sample-btn i {
    color: var(--primary);
}

.sample-btn:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* 12. VALIDATION STATUS */
.validation-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.validation-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* 13. INFO ALERT */
.info-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(38, 188, 194, 0.08);
    border: 2px solid rgba(38, 188, 194, 0.3);
    border-radius: 8px;
    margin-top: 24px;
}

.info-alert i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-alert div {
    flex: 1;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-alert strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-weight: 600;
}

/* 14. TREE VIEW */
.json-tree {
    min-height: 400px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
}

.tree-list {
    list-style: none;
    padding-left: 24px;
    margin: 0;
}

.tree-item {
    margin: 4px 0;
    position: relative;
}

.tree-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
    vertical-align: middle;
}

.tree-toggle:hover {
    color: var(--primary);
}

.tree-toggle i {
    font-size: 0.8rem;
}

.tree-key {
    color: #2563eb;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tree-key:hover {
    color: var(--primary);
    text-decoration: underline;
}

.tree-value {
    color: var(--text-main);
}

.tree-value.string {
    color: #16a34a;
}

.tree-value.number {
    color: #dc2626;
}

.tree-value.boolean {
    color: #9333ea;
    font-weight: 600;
}

.tree-value.null {
    color: #64748b;
    font-style: italic;
}

/* JSON Path Tooltip */
.json-path-tooltip {
    position: fixed;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Fira Code', 'Consolas', monospace;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.json-path-tooltip.show {
    opacity: 1;
}

/* 15. ACTION BUTTONS */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Renk tanımları style.css'ten alınacak */
.secondary-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 16. INFO ALERT */
.info-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(38, 188, 194, 0.08);
    border: 2px solid rgba(38, 188, 194, 0.3);
    border-radius: 8px;
    margin-top: 24px;
}

.info-alert i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-alert div {
    flex: 1;
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-alert strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .json-workspace {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .panel-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .json-textarea,
    .json-output,
    .json-tree {
        min-height: 350px;
    }
    
    .sample-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-buttons {
        grid-template-columns: 1fr;
    }
    
    .search-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .panel-actions {
        grid-template-columns: 1fr;
    }
    
    .view-tabs {
        width: 100%;
    }
    
    .view-tab {
        flex: 1;
        justify-content: center;
    }
    
    .sample-buttons {
        grid-template-columns: 1fr;
    }
    
    .json-textarea,
    .json-output,
    .json-tree {
        min-height: 300px;
        font-size: 0.85rem;
    }
}

/* ============================================
   18. DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    .page-json-tools {
        /* Dark mode değişkenleri gerekirse buraya */
    }

    .editor-card {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .json-textarea {
        background-color: rgba(15, 23, 42, 0.8);
        color: #f1f5f9;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .json-textarea::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .json-output,
    .json-tree {
        background: rgba(15, 23, 42, 0.8);
        color: #f1f5f9;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .sample-btn {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .sample-btn:hover {
        background: rgba(15, 23, 42, 0.8);
    }

    .view-btn {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .view-btn:hover {
        background: rgba(15, 23, 42, 0.8);
    }

    .view-btn.active {
        background: rgba(38, 188, 194, 0.2);
        border-color: var(--primary);
    }

    .input-stats,
    .output-stats {
        background: rgba(38, 188, 194, 0.1);
    }

    .info-alert {
        background: rgba(38, 188, 194, 0.1);
        border-color: rgba(38, 188, 194, 0.3);
    }

    .tree-key {
        color: #60a5fa;
    }

    .tree-value:first-letter {
        color: #c084fc;
    }
}

/* ============================================
   19. SCROLLBAR STYLING
   ============================================ */

.json-textarea::-webkit-scrollbar,
.json-output::-webkit-scrollbar,
.json-tree::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.json-textarea::-webkit-scrollbar-track,
.json-output::-webkit-scrollbar-track,
.json-tree::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 6px;
}

.json-textarea::-webkit-scrollbar-thumb,
.json-output::-webkit-scrollbar-thumb,
.json-tree::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 2px solid var(--surface);
}

.json-textarea::-webkit-scrollbar-thumb:hover,
.json-output::-webkit-scrollbar-thumb:hover,
.json-tree::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 188, 194, 0.8);
}

/* Drag & Drop Visual Feedback */
.json-textarea.drag-over {
    border-color: var(--primary) !important;
    background-color: rgba(38, 188, 194, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(38, 188, 194, 0.1) !important;
}

/* ============================================
   20. CONVERTER TOOLS
   ============================================ */

.converter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.converter-btn {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #4f46e5;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.converter-btn i {
    font-size: 1.2rem;
}

.converter-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

/* ============================================
   21. JSON SCHEMA VALIDATOR
   ============================================ */

.schema-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schema-input {
    min-height: 200px;
}

/* ============================================
   22. JSONPATH QUERY
   ============================================ */

.jsonpath-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.jsonpath-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-main);
    font-family: 'Fira Code', 'Consolas', monospace;
    transition: all 0.2s;
}

.jsonpath-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 188, 194, 0.1);
}

.jsonpath-examples {
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.jsonpath-examples code {
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: #2563eb;
}

/* ============================================
   23. DIFF VIEW
   ============================================ */

.diff-input-section {
    margin-bottom: 16px;
}

.diff-input-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.diff-result {
    min-height: 300px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.diff-added {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-removed {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: line-through;
}

.diff-modified {
    background: rgba(251, 146, 60, 0.15);
    color: #ea580c;
    padding: 2px 4px;
    border-radius: 3px;
}

.diff-unchanged {
    color: var(--text-muted);
}

/* ============================================
   24. SEARCH & UTILITY TOOLS
   ============================================ */

.search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.search-results {
    min-height: 100px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 8px 12px;
    margin: 6px 0;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.search-result-path {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
}

.search-result-value {
    color: var(--text-main);
    margin-top: 4px;
}

.search-highlight {
    background: rgba(251, 191, 36, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.utility-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.utility-btn {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #7c3aed;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.utility-btn i {
    font-size: 1.2rem;
}

.utility-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.15));
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.25);
}

.size-analysis-result {
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: none;
}

.size-analysis-result.show {
    display: block;
}

.size-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.size-stat:last-child {
    border-bottom: none;
}

.size-stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.size-stat-value {
    color: var(--text-main);
    font-weight: 600;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.size-stat-bar {
    width: 100%;
    height: 8px;
    background: rgba(100, 116, 139, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.size-stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.largest-keys {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border);
}

.largest-keys h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.largest-key-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    margin: 4px 0;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
}

.largest-key-name {
    color: #7c3aed;
    font-weight: 600;
}

.largest-key-size {
    color: var(--text-muted);
}

/* ============================================
   20. PRINT STYLES
   ============================================ */

@media print {
    .json-actions,
    .sample-buttons,
    .view-toggle,
    .action-buttons,
    .info-alert {
        display: none;
    }

    .json-output,
    .json-tree {
        border: 1px solid #000;
        min-height: auto;
    }
}
