.red { background-color: #300; }
.green { background-color: #030; }
.blue { background-color: #003; }
.grey { background-color: #333; }

body.light-mode .red { background-color: #f99; }
body.light-mode .green { background-color: #9c9; }
body.light-mode .blue { background-color: #99f; }
body.light-mode .grey { background-color: #999; }

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

.tab-titles {
    display: flex;
    overflow-x: auto;
}

.tab-titles button {
    flex: 1;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    border-radius: 20px 20px 0px 0px;
    border: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    z-index: 1;
    height: 50px;
    box-sizing: border-box;
    font-size: 1.05em;
}

.tab-titles button.active {
    border-bottom: none;
    z-index: 10;
}

.tab-titles button span {
    padding: 5px;
}

.tab-titles button .icon {
    font-size: 1.2em;
}

.tab-titles button .label {
    font-size: 0.9em;
    font-weight: bold;
    white-space: nowrap;
}

.tab-titles button .hotkey {
    margin-right: 2px;
}

/* Responsive: hide labels on small screens */
@media (max-width: 600px) {
    .tab-titles button .label,
    .tab-titles button .hotkey
    {
        display: none;
    }
}

.tab-bodies {
    height: calc(100vh - 50px);
}

.tab-container {
    position: absolute;
    height: calc(100vh - 50px);
    width: 100vw;
    top: 50px;
    left: 0px;
    transition: 0.2s ease-in-out;

    border: 2px solid var(--accent-color);
    border-top: none;
    border-radius: 0px 0px 20px 20px;
    padding: 10px;
    box-sizing: border-box;
}

.tab-container.left    { left: -100vw; }
.tab-container.current { left: 0vw; }
.tab-container.right   { left: 100vw; }

/* Responsive max-width for tab content */
.tab-inner {
    height: 100%;
    width: 100%;
    border-radius: 0px 0px 10px 10px;
    padding: 20px;
    background: var(--overlay-color);
    box-sizing: border-box;
    overflow-y: scroll;
}
@media (min-width: 800px) {
    .tab-inner {
        max-width: 800px;
        margin: 0 auto;
    }
    .tab-inner.wide {
        max-width: none;
        margin: none;
    }
}
