﻿body {
}

.tab-control {
    display: flex;
    border: 1px solid #ccc;
    overflow: hidden;
}

    .tab-control.vertical {
        flex-direction: row;
    }

    .tab-control.horizontal {
        flex-direction: column;
    }

    .tab-control.left .tab-buttons,
    .tab-control.top .tab-buttons {
        order: 0;
    }

    .tab-control.right .tab-buttons,
    .tab-control.bottom .tab-buttons {
        order: 1;
    }

.tab-buttons {
    display: flex;
}

.tab-control.vertical .tab-buttons {
    flex-direction: column;
}

.tab-control.horizontal .tab-buttons {
    flex-direction: row;
}

.tab-button {
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

    .tab-button.active {
        background-color: #ddd;
        font-weight: bold;
    }


.with-icons .tab-button .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

.with-icons .tab-button svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    fill: currentColor;
}

.tab-contents {
    flex: 1;
    padding: 10px;
    position: relative;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .tab-content.active {
        display: block;
        opacity: 1;
    }
