/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* JSON Viewer Style */
.json-key { color: #94a3b8; }
.json-string { color: #a5b4fc; }
.json-number { color: #fca5a5; }
.json-boolean { color: #86efac; }
.json-null { color: #cbd5e1; }

pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

/* Recursive JSON Viewer */
.json-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.json-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.json-item:last-child {
    border-bottom: none;
}

.json-key {
    color: #94a3b8;
    font-weight: 500;
    min-width: 100px;
}

.json-value {
    color: #e2e8f0;
    flex: 1;
    word-break: break-all;
}

.json-value.string { color: #a5b4fc; }
.json-value.number { color: #fca5a5; }
.json-value.boolean { color: #86efac; }
.json-value.null { color: #94a3b8; font-style: italic; }

/* Responsive Table */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }
    .responsive-table tr {
        display: flex;
        flex-direction: column;
        background: #1e293b;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
        border: 1px solid #334155;
        padding: 1rem;
    }
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0.5rem 0;
        border-bottom: 1px solid #334155;
    }
    .responsive-table td:last-child {
        border-bottom: none;
        flex-direction: column;
        gap: 0.5rem;
    }
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #94a3b8;
        margin-right: 1rem;
    }
}
