
body {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    min-height: 100vh;
}

/* Left Navigation Sidebar */
.nav-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 60px;
    height: 100vh;
    background: #0d1117;
    border-right: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    z-index: 1000;
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #58a6ff, #1f6feb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.nav-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nav-tab {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-decoration: none;
}

.nav-tab:hover {
    background: #21262d;
    color: #c9d1d9;
}

.nav-tab.active {
    background: #58a6ff;
    color: white;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.nav-tab-bottom {
    margin-top: auto;
}

/* Main Content with offset */
.main-wrapper {
    margin-left: 60px;
    min-height: 100vh;
}

.json-editor {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #e6e6e6;
    white-space: pre;
    resize: vertical;
}

.json-editor:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
    background: #0d1117;
}

#output {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    height: 650px;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
}

#output pre {
    margin: 0;
    white-space: pre;
}

.json-key { color: #79c0ff; }
.json-string { color: #a5d6ff; }
.json-number { color: #56d364; }
.json-boolean { color: #ff7b72; }
.json-null { color: #8b949e; }
.json-bracket { color: #d2a8ff; }

.highlight {
    background: #ffeb3b;
    color: #000;
    padding: 1px 2px;
    border-radius: 2px;
}

.highlight-current {
    background: #ff5722;
    color: #fff;
    box-shadow: 0 0 5px #ff5722;
}

.sidebar {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.history-item {
    background: #0d1117;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #30363d;
}

.history-item:hover {
    background: #21262d;
    border-color: #58a6ff;
}

.history-preview {
    font-family: 'Consolas', monospace;
    font-size: 11px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-dark {
    background: #161b22;
    border: 1px solid #30363d;
}

.text-cyan {
    color: #58a6ff !important;
}

.form-control, .form-select {
    background-color: #0d1117;
    border-color: #30363d;
    color: #c9d1d9;
}

.form-control:focus, .form-select:focus {
    background-color: #0d1117;
    border-color: #58a6ff;
    color: #c9d1d9;
    box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
}

.card {
    background: #161b22;
    border-color: #30363d;
}

.card-header {
    background: #21262d;
    border-color: #30363d;
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    color: #58a6ff;
}

.btn-close {
    filter: invert(1);
}

@media (max-width: 992px) {
    .sidebar {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .nav-sidebar {
        width: 50px;
        padding: 10px 0;
    }

    .nav-logo {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .nav-tab {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .main-wrapper {
        margin-left: 50px;
    }
}