/* JSON Formatter Custom CSS */

.apple-glass {
    background: rgba(18, 18, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.apple-card {
    background: rgba(29, 29, 31, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.apple-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* JSON Tree styling */
.tree-node-container {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.tree-expanded-indicator {
    transition: transform 0.15s ease;
    display: inline-block;
}

.tree-collapsed .tree-expanded-indicator {
    transform: rotate(-90deg);
}

.tree-node-content {
    padding-left: 0.625rem !important;
    border-left: 1px dashed rgba(255, 255, 255, 0.08);
    margin-left: 0.25rem !important;
}

.tree-node-content.hidden-node {
    display: none;
}

.highlight-match {
    background-color: rgba(234, 179, 8, 0.3);
    border-radius: 2px;
    padding: 0 2px;
}

/* Syntax highlighting */
.json-key {
    color: #818cf8;
    font-weight: 600;
}

.json-string {
    color: #34d399;
}

.json-number {
    color: #fbbf24;
}

.json-boolean {
    color: #f472b6;
}

.json-null {
    color: #a1a1aa;
}

/* Line highlight for error */
.error-line-highlight {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-left: 3px solid #ef4444 !important;
}

/* Line highlighter in view */
.formatted-code-line {
    display: flex;
    line-height: 1.6;
}

.line-num-span {
    width: 3rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
    padding-right: 0.75rem;
    user-select: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 0.75rem;
}
