﻿html, body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    background-color: #000;
    color: #eee;
}

h3, .sidebar-title {
    font-family: Orbitron, Inter, sans-serif;
    letter-spacing: 0.5px;
}

#app {
    height: 100%;
}
h3{
    color: white;
}
#blazor-error-ui {
    display: none !important;
}

button {
    background: #1e1e1e;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s;
}

    button:hover {
        background: #2a2a2a;
        border-color: #666;
    }

    button:active {
        transform: translateY(1px);
    }

    button.danger {
        background: #7a1d1d;
        border-color: #9a2a2a;
    }

#appheadertext {
    text-align: center;
    color: #eaeaea;
    font-family: Orbitron, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin: 8px 0 6px;
    text-shadow: 0 0 8px rgba(100, 160, 255, 0.15);
}

.layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.editor {
    position: relative; /*  critical */
    flex: 1;
    min-height: 0;
    overflow: hidden;
}


.canvas {
    flex: 1;
    background: black;
    border: 1px solid #333;
}

.json-panel {
    height: 30%;
    min-height: 150px;
    max-height: 40%;
    border-top: 1px solid #444;
    background: #111;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .json-panel textarea {
        flex: 1;
        overflow-y: auto;
    }


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.json-error {
    color: #ff6b6b;
    background: #1b0f0f;
    border-top: 1px solid #522;
    padding: 6px 8px;
    font-size: 0.85rem;
    white-space: pre-wrap;
}

.star-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    height: 50%;
    width: 260px;
    background: #151515;
    border-left: 1px solid #333;
    color: #eee;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    animation: slideIn 0.15s ease-out;
}

    /* Scrollable content area */
    .star-sidebar .sidebar-content {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow-y: auto;
        flex: 1;
    }

    /* Fixed footer actions */
    .star-sidebar .actions {
        padding: 10px;
        border-top: 1px solid #333;
        display: flex;
        gap: 8px;
        background: #151515;
    }

    /* Inputs & buttons */
    .star-sidebar input,
    .star-sidebar select,
    .star-sidebar button {
        width: 100%;
    }
.star-sidebar {
    background: linear-gradient( to bottom, #161616, #121212 );
    box-shadow: -6px 0 18px rgba(0,0,0,0.6);
}

    .star-sidebar h3 {
        font-family: Orbitron, sans-serif;
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .star-sidebar label {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        color: #888;
    }

    .star-sidebar button.danger {
        background: #7a1d1d;

    }

    .star-sidebar h4 {
        margin-top: 12px;
        font-size: 0.75rem;
        color: #aaa;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.existing-wormholes ul {
    padding-left: 16px;
    margin: 6px 0;
}

.wormhole-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wormhole-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.wormholes button{
    padding-bottom: 30px;
}
.floating-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    padding: 6px;
    border-radius: 6px;
    z-index: 1100;
}

    .floating-toolbar button {
        background: #222;
        color: #eee;
        border: 1px solid #444;
        padding: 4px 8px;
        cursor: pointer;
    }
.floating-json {
    position: absolute;
    top: 50px;
    left: 10px;
    width: 320px;
    height: 100%;
    z-index: 1000;
    background: #222;
    color: #eee;
    border: 1px solid #444;
    border-right: 1px solid #333;
}

    .floating-json textarea {
        font-family: Consolas, Menlo, Monaco, monospace;
        font-size: 0.8rem;
        line-height: 1.4;
        color: #dcdcdc;
        background: #0f0f0f;
        border: none;
        padding: 8px;
    }
pre.error {
    font-family: Consolas, monospace;
    font-size: 0.75rem;
    color: #ff6b6b;
}
.canvas line {
    shape-rendering: crispEdges;
}
.floating-toolbar {
    box-shadow: 0 0 12px rgba(80, 120, 255, 0.15);
}
