* { box-sizing: border-box; }
html, body {
    position: relative;
    letter-spacing: 0.03rem;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    font-family: "Roboto Mono", monospace;
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
header {
    background-color: black;
    padding: 0.25rem 0.75rem;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 3rem;
}
.layout-container {
    display: flex;
    flex: 1;
    margin-top: 3rem;
    height: calc(100vh - 3rem);
}
aside {
    width: 280px;
    padding: 0.75rem;
    padding-top: 0rem;
    background-color: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: calc(100vh - 3rem);
    position: fixed;
    top: 3rem;
    left: 0;
    overflow-y: auto;
}
main {
    margin-left: 280px;
    flex: 1;
    height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
header h2 {
    margin: 0;
    color: orange;
    text-align: left;
}
.number-input {
    width: 4rem;
}

.v-divider {
    border-left: 1px solid #888;
    height: 2rem;
}

button,
input,
select {
    font-family: "Roboto Mono", monospace;
}
.unselectable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.box {
    width: 100%;
    background-color: #121212;
    padding: 1rem;
    border-radius: 10px;
    margin: 0.75rem 0;
}
.sidebar-box {
    width: 100%;
    background-color: #000000;
    padding: 0.6rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    border-radius: 10px;
    margin: 0rem;
}
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.section-header span {
    color: orange;
    font-size: 1.3rem;
    margin-right: 1rem;
    font-weight: 500;
}
.section-divider {
    flex-grow: 1;
    border: none;
    border-top: 1px solid #888;
}
.button {
    border: 3px solid black !important;
    background-color: orange;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    transition: 200ms;
}
.button:hover {
    border: 3px solid orange !important;
    background-color: black;
    color: orange;
    transition: 300ms;
}
.button.large {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
}
.button.medium {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-size: 0.9rem;
}
.filename-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.tabulator-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}
.tabulator-box {
    flex: 1 1 500px;
    min-width: 550px;
    max-width: 100%;
}

.tooltip {
    position: static !important;
    display: inline-block;
    cursor: pointer;
}

.tooltip-float {
    position: fixed !important;
    z-index: 2147483647 !important;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    left: 0; top: 0;
}
.tooltip-float.visible {
    opacity: 1;
}
.tabulator .tabulator-header {
    border-top: 2px solid orange;
    border-bottom: 0px;
    background-color: #121212;
}
.tabulator {
    border-color: transparent;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    background-color: #121212;
}
.tabulator .tabulator-header .tabulator-col {
    border-right: 2px solid black;
    border-left: 2px solid black;
    background-color: black;
}
.tabulator .tabulator-row .tabulator-cell {
    border-right: none !important;
    border-left: none !important;
}
.tabulator .tabulator-row {
    background-color: #181818;
}
.tabulator .tabulator-row.tabulator-row-even {
    background-color: #121212;
}
.tabulator .tabulator-row.tabulator-selectable:hover {
    background-color: black !important;
    cursor: pointer;
}
.tabulator-row .tabulator-cell.tabulator-editing {
    border: 1px solid orange !important;
}

.tabulator-edit-select {
    background-color: #121212 !important;
    color: white !important;
    border: 1px solid #888 !important;
    border-radius: 4px !important;
}

.tabulator-edit-select:focus {
    border-color: orange !important;
    outline: none !important;
}

.tabulator-edit-select option {
    background-color: #121212 !important;
    color: white !important;
}

.tabulator-edit-select option:hover {
    background-color: #333 !important;
}

.tabulator-edit-list {
    background-color: #121212 !important;
    border: 2px solid orange !important;
    border-radius: 0px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.tabulator-edit-list .tabulator-edit-list-item {
    background-color: black !important;
    color: white !important;
}

.tabulator-edit-list .tabulator-edit-list-item:hover {
    background-color: #333 !important;
    color: white !important;
}

.tabulator-edit-list .tabulator-edit-list-item.active {
    background-color: orange !important;
    color: black !important;
}

.tabulator-edit-list .tabulator-edit-list-item.active.focused {
    background-color: orange !important;
    color: black !important;
}

.tabulator-edit-list .tabulator-edit-list-item.focused {
    background-color: #333 !important;
    color: white !important;
    outline: 1px solid orange !important;
}

.special-route {
    color: rgb(104, 224, 104) !important;
    font-weight: bold !important;
}

.demo-route {
    color: #ffa500 !important;
    font-weight: bold !important;
}

.tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar {
    background: orange !important;
}

.tabulator-row .tabulator-cell.tabulator-row-handle {
    background-color: black !important;
    border: none !important;
}

.tabulator .tabulator-header .tabulator-col.tabulator-row-header {
    border: none !important;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background-color: #ffa500;
    border: 2px solid #121212;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ff8c00;
}

::-webkit-scrollbar-corner {
    background: #121212;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ffa500 #121212;
}

.header-credit {
    display: flex;
    align-items: center;
    line-height: 1;
    height: 3rem;
}

