#tabs-strip {
    display: flex;
    align-items: stretch;
    height: 32px;
    margin: 0;
    border: 0;
    padding: 0;

    background-color: rgb(161, 161, 161);
    -webkit-app-region: drag;
}

.tab, .tab-active {
    display: flex;
    flex: 1;
    height: 100%;
    border-right: 1px solid rgb(200, 200, 200);
    overflow: hidden;
    max-width: 250px;
    background-color: rgb(210, 210, 210);
    -webkit-app-region: no-drag;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.tab-active {
    background-color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: visible;
    position: relative;
}

.tab-active .tab-label {
    overflow: hidden;
}

.tab-favicon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    align-self: center;
    margin-left: 8px;
    margin-right: 2px;
    flex-shrink: 0;
}

.tab-favicon.loading {
    background-image: none !important;
    border: 2px solid #d0d0d0;
    border-top-color: #606060;
    border-radius: 50%;
    animation: tab-spin 0.8s linear infinite;
}

@keyframes tab-spin {
    to { transform: rotate(360deg); }
}

.tab-active::before,
.tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 6px;
    background: white;
}

.tab-active::before {
    left: -10px;
    clip-path: polygon(100% 0, 100% 15%, 88% 45%, 65% 75%, 35% 92%, 0 100%, 100% 100%);
}

.tab-active::after {
    right: -10px;
    clip-path: polygon(0 0, 0 15%, 12% 45%, 35% 75%, 65% 92%, 100% 100%, 0 100%);
}

#btn-new-tab {
    display: flex;
    height: 24px;
    width: 24px;
    margin: 4px;
    border-radius: 50%;
    -webkit-app-region: no-drag;
}

#btn-new-tab:hover, .btn-tab-close:hover {
    background-color: rgb(200, 200, 200);
}

#plus-label {
    display: block;
    flex: 1;
    align-self: center;
    line-height: 22px;
    width: 30px;
    text-align: center;
}

.btn-tab-close {
    display: inline-block;
    align-self: center;
    min-width: 16px;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    border-radius: 4px;

    background-size: 100%;
    background-image: url('img/cancel.png');
}

.tab-label {
    display: flex;
    flex: 1;
    padding: 3px;
    padding-left: 10px;
    padding-right: 3px;
    height: calc(100% - 6px);
    vertical-align: middle;

    white-space:nowrap;
    overflow:hidden;
}

.tab-no-close .tab-label {
    padding-right: 26px;
}

.tab-label span {
    font-family: Arial;
    font-size: 0.8em;
    flex: 1;
    align-self: center;
}

/* Window control buttons */
#window-controls {
    display: flex;
    height: 100%;
    -webkit-app-region: no-drag;
    margin-left: auto;
}

.btn-window {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 10px;
}

.btn-window:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#btn-window-close:hover {
    background-color: rgb(196, 43, 28);
}

.btn-window svg {
    width: 10px;
    height: 10px;
    fill: white;
    stroke: white;
    stroke-width: 1;
}
