.tab-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 15px;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-bottom: 2px solid #0d6efd;
}

.tab-content {
    padding: 20px;
}

@media (max-width: 768px) {

    .progress-info {
        font-size: 0.65em;
    }

}


.progress-container {
    position: relative;
    height: 30px;
    margin-bottom: 15px;
}

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #fff;
    text-shadow: black 1px 1px;
    z-index: 2;
}

.progress {
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    line-height: 30px;
}

.progress-ctrl-bar>button,
.progress-ctrl-bar>div.btn-group {
    margin-left: 5px;
    font-size: 0.9em;
}

.progress-ctrl-bar .btn-group .dropdown-menu {
    width: 100%;
}

.form-switch-row {
    display: flex;
    gap: 10px;
}

.form-switch {
    margin: auto 0;
    font-size: 0.8em;
}

@media (max-width: 768px) {

    .form-switch {
        text-wrap: nowrap;
        overflow-x: hidden;
        margin: auto;
    }

    .progress-ctrl-bar {
        text-align: center;
    }

    .progress-ctrl-bar>button,
    .progress-ctrl-bar>div.btn-group {
        width: 80%;
        margin-top: 10px;
        margin-right: 5px;
    }
}

.mode-btns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.mode-card {
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.mode-card>.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.mode-card[disabled] {
    pointer-events: none;
    opacity: 0.5;
}


.level-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.level-tab {
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.level-tab.active {
    background-color: #0d6efd;
    color: white;
}

.level-tab:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .level-tab.active {
        background-color: #0d6efd;
    }

    .level-tab:not(.active):hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.level-container {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.card {
    color: inherit;
    margin-bottom: 20px;
}

.card-text {
    font-size: 0.8em;
}

.app-info {
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-align: right;
}

.app-info>span {
    margin-right: 10px;
}

.app-info a {
    color: unset;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.app-info a:hover {
    color: var(--bs-primary);
}


dialog.group-select {
    padding: 10px;
    border: none;
    width: 250px;
    user-select: none;
}

dialog.group-select .card-body {
    display: grid;
    grid-template-rows: repeat(3, minmax(100px, 1fr));
    list-style: none;
    gap: 20px;
}

dialog.group-select .card-body li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

dialog.group-select .card-body i {
    display: block;
    font-size: 2em;
}