/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 * ░░░░░░░░▄▀░█▀▄░█▀▀░█▀▀░█░█░█░░░█▀█░█▀▄░░░░░█░░░█▀█░█░█░█▀█░█░█░▀█▀░▀▄░░░░░░░░
 * ░░░░░░░▀▄░░█▀▄░█▀▀░█░█░█░█░█░░░█▀█░█▀▄░▀▀▀░█░░░█▀█░░█░░█░█░█░█░░█░░░▄▀░░░░░░░
 * ░░░░░░░░░▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀░▀░▀░░░░░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░░▀░░▀░░░░░░░░░
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
 * ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 * ┃  *  Copyright (c) 2026, the Regular Layout Authors. This file is part  *  ┃
 * ┃  *  of the Regular Layout library, distributed under the terms of the  *  ┃
 * ┃  *  [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). *  ┃
 * ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 */

regular-layout.lorax {
    font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

/* Frame */
regular-layout.lorax regular-layout-frame {
    margin: 3px;
    margin-top: 27px;
    border-radius: 0 6px 6px 6px;
    border: 1px solid #666;
    box-shadow: 0px 6px 6px -4px rgba(150, 150, 180);
}

regular-layout.lorax regular-layout-frame::part(titlebar) {
    display: flex;
    align-items: stretch;
    margin-left: -1px;
    margin-right: -1px;
    margin-bottom: 0px;
    margin-top: -24px;
    padding-right: 6px;
}

regular-layout.lorax regular-layout-frame::part(tab) {
    display: flex;
    flex: 1 1 150px;
    align-items: center;
    text-align: center;
    font-size: 10px;
    padding: 0 6px;
    cursor: pointer;
    max-width: 150px;
    text-overflow: ellipsis;
    border: 1px solid #666;
    border-radius: 6px 6px 0 0;
    opacity: 0.5;
}

regular-layout.lorax regular-layout-frame::part(active-tab) {
    opacity: 1;
}

regular-layout.lorax regular-layout-frame::part(close) {
    border-radius: 7px;
    border: 1px solid #666;
    background: transparent;
    height: 14px;
    align-self: center
}


regular-layout.lorax regular-layout-frame::part(close):hover {
    transition: background-color 0.2s;
    background-color: rgba(255,0,0,0.2);
}

/* Frame in Overlay Mode */
regular-layout.lorax regular-layout-frame.overlay {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgb(0, 0, 0);
    border-radius: 6px;
    margin: 0;
    box-shadow: none;
    transition:
        top 0.1s ease-in-out,
        height 0.1s ease-in-out,
        width 0.1s ease-in-out,
        left 0.1s ease-in-out;
}

regular-layout.lorax regular-layout-frame::part(container), regular-layout.lorax regular-layout-frame::part(titlebar) {
    display: none;
}

regular-layout.lorax regular-layout-frame:not(.overlay)::part(container), regular-layout.lorax regular-layout-frame:not(.overlay)::part(titlebar) {
    display: flex;
}

/* Colors */
regular-layout.lorax :nth-child(8n+1),
regular-layout.lorax :nth-child(8n+1)::part(tab) {
    background-color: #ffadadff;
}

regular-layout.lorax :nth-child(8n+2),
regular-layout.lorax :nth-child(8n+2)::part(tab) {
    background-color: #ffd6a5ff;
}

regular-layout.lorax :nth-child(8n+3),
regular-layout.lorax :nth-child(8n+3)::part(tab) {
    background-color: #fdffb6ff;
}

regular-layout.lorax :nth-child(8n+4),
regular-layout.lorax :nth-child(8n+4)::part(tab) {
    background-color: #caffbfff;
}

regular-layout.lorax :nth-child(8n+5),
regular-layout.lorax :nth-child(8n+5)::part(tab) {
    background-color: #9bf6ffff;
}

regular-layout.lorax :nth-child(8n+6),
regular-layout.lorax :nth-child(8n+6)::part(tab) {
    background-color: #a0c4ffff;
}

regular-layout.lorax :nth-child(8n+7),
regular-layout.lorax :nth-child(8n+7)::part(tab) {
    background-color: #bdb2ffff;
}

regular-layout.lorax :nth-child(8n+8),
regular-layout.lorax :nth-child(8n+8)::part(tab) {
    background-color: #ffc6ffff;
}