html {
    font-size: 14px;
}

body {
    font-family: 'Courier New', monospace;
    background-color: black;
    color: white;
    padding: 20px;
    margin: 0;
}

.terminal {
    background-color: black;
    color: white;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.spa-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    background-color: black;
    padding: 12px 20px 12px 20px;
    border-bottom: 1px solid #333;
}

.spa-banner {
    height: 40px;
    width: auto;
    align-self: flex-start;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .spa-banner {
        height: 30px;
        align-self: center;
    }
}

.spa-dropdown {
    position: relative;
    min-width: 260px;
}

.spa-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: 'Courier New', monospace;
    background: linear-gradient(180deg, #171717 0%, #0d0d0d 100%);
    color: #f4f4f4;
    border: 1px solid #5c5cff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 44px;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(92, 92, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spa-dropdown-trigger:hover {
    border-color: #8a8aff;
    box-shadow: 0 0 0 1px rgba(124, 124, 255, 0.25), 0 0 10px rgba(92, 92, 255, 0.15);
}

.spa-dropdown-trigger:focus {
    outline: none;
    border-color: #9c9cff;
    box-shadow: 0 0 0 2px rgba(92, 92, 255, 0.35), 0 0 14px rgba(92, 92, 255, 0.25);
}

.spa-dropdown-caret {
    color: #9c9cff;
    font-size: 0.95rem;
}

.spa-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    background: #0f0f0f;
    border: 1px solid #5c5cff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.spa-dropdown-item {
    font-family: 'Courier New', monospace;
    background: #2d2d2d;
    color: #f4f4f4;
    border: 1px solid #575757;
    border-radius: 6px;
    text-align: left;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 44px;
    padding: 10px 14px;
    cursor: pointer;
}

.spa-dropdown-item:hover {
    background: #1f1f4f;
    color: #ffffff;
}

.spa-dropdown-item.is-active {
    background: linear-gradient(180deg, #2f2f8a 0%, #23236a 100%);
    color: #ffffff;
    font-weight: bold;
}

.spa-links {
    margin-left: auto;
    font-size: 0.9rem;
}

.spa-links a {
    color: white;
    text-decoration: underline;
}

.spa-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.active-route-line {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.active-route-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    vertical-align: bottom;
}

.route-section-label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    vertical-align: bottom;
}

.terminal-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 2px 0 6px 0;
    color: #5c5cff;
}

.terminal-section-header__line {
    flex: 1 1 auto;
    min-width: 24px;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

.terminal-section-header__line::before {
    content: "########################################################################################################################################################################################";
    letter-spacing: 0.5px;
    color: #5c5cff;
}

.terminal-section-header__title {
    flex: 0 0 auto;
    font-weight: bold;
    color: #5c5cff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #5c5cff;
    border-radius: 4px;
    padding: 2px 10px;
    background: #111;
}

[v-cloak] {
    display: none;
}

.ansi2html-content { display: inline; white-space: pre-wrap; word-wrap: break-word; }
.body_foreground { color: #AAAAAA; }
.body_background { background-color: #000000; }
.inv_foreground { color: #000000; }
.inv_background { background-color: #AAAAAA; }
.ansi92 { color: #00ff00; }
.ansi93 { color: #ffff00; }
.ansi94 { color: #5c5cff; }
.ansi38-208 { color: #ff8700; }
.no-wrap { white-space: nowrap; }

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .terminal {
        padding: 12px;
    }

    .spa-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .spa-dropdown {
        width: 100%;
        min-width: 0;
    }

    .spa-links {
        margin-left: 0;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    body {
        padding: 8px;
    }

    .terminal {
        padding: 10px;
    }
}
