.tabs-nav-container {
    position: relative;
    margin: 20px 0;
}

.tab-content-container {
    position: relative;
    max-height: 1000px;
}

.tab-content-container .tabs-nav {
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    border: none;
    color: white;
}

.tab-content-container .tabs-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.tab-content-container .tabs-nav.prev {
    left: 0;
}

.tab-content-container .tabs-nav.next {
    right: 0;
}

.tab-content-container .tabs-nav i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.tab-content-container .tabs-nav:hover i {
    color: white;
}

.tab-content-container .ui.bottom.attached.tab.segment {
    max-height: 1000px;
    overflow-y: auto;
    padding-left: 60px;
    padding-right: 60px;
    margin-bottom: 0;
}

.tab-content-container .ui.bottom.attached.tab.segment::-webkit-scrollbar {
    width: 8px;
}

.tab-content-container .ui.bottom.attached.tab.segment::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.tab-content-container .ui.bottom.attached.tab.segment::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.tab-content-container .ui.bottom.attached.tab.segment::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tabs-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.tabs-menu-item {
    flex: 0 0 auto;
    white-space: normal;
    word-break: break-word;
    margin-right: 2px;
}

.tabs-menu-item-img {
    width: 24px !important;
    height: 24px !important;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 3px;
}

.ai-tab {
    border: 1px solid red !important;
}

.player-tab {
    border: 1px solid green !important;
}

.ui.bottom.attached.inverted.tab.segment .planet-card {
    position: relative;
}

.planet-photo .race-photo {
    position: absolute !important;
    float: right;
    top: 20px;
    right: 50px;
    z-index: 10;
}

.ui.bottom.attached.inverted.tab.segment .race-description {
    float: left;
}

@media (max-width: 768px) {
    .tab-content-container .tabs-nav {
        width: 40px;
    }

    .tab-content-container .tabs-nav i {
        font-size: 1.5rem;
    }

    .tab-content-container .ui.bottom.attached.tab.segment {
        padding-left: 45px;
        padding-right: 45px;
    }

    .tabs-menu-item-img {
        width: 20px !important;
        height: 20px !important;
        margin-right: 4px;
    }

    .planet-card .planet-photo .race-photo {
        display: none !important;
    }
}
