.navigation-staff {
    display: inline-flex;
    width: 100%;
    gap: 33px;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

.navigation-staff.fixed {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--body-bg);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    width: 100%;
    justify-content: center;
}

.navigation-staff-box {
    width: 300px;
    height: auto;
    border-radius: 20px;
    border: 2px solid transparent;
    display: flex;
    cursor: pointer;
    padding: 10px;
}

.navigation-staff-box.active {
    opacity: 0.8;
    transform: scale(0.98);
}

.navigation-staff-box.box-red {
    border-color: var(--color-red);
    color: var(--color-red);

    &:hover {
        background: var(--color-red);
        color: var(--hover-staff);
    }
}

.navigation-staff-box.box-green {
    border-color: var(--color-green);
    color: var(--color-green);

    &:hover {
        background: var(--color-green);
        color: var(--hover-staff);
    }
}

.navigation-staff-box.box-orange {
    border-color: var(--color-orange);
    color: var(--color-orange);

    &:hover {
        background: var(--color-orange);
        color: var(--hover-staff);
    }
}

.navigation-staff-box.box-blue {
    border-color: var(--color-blue);
    color: var(--color-blue);

    &:hover {
        background: var(--color-blue);
        color: var(--hover-staff);
    }
}

.navigation-staff-box-left {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-staff-box-left-icon {
    height: 42px;
    width: 42px;
    image-rendering: pixelated;
    scale: 1;
}

.icon-management {
    background: url(/assets/img/staff/badges/badge_gestion.png) no-repeat;
}

.icon-security {
    background: url(/assets/img/staff/badges/badge_security.png) no-repeat;
}

.icon-event {
    background: url(/assets/img/staff/badges/badge_event.png) no-repeat;
}

.icon-dev {
    background: url(/assets/img/staff/badges/badge_dev.png) no-repeat;
}

.navigation-staff-box-right {
    width: 75%;
    display: flex;
    align-items: center;
}

.navigation-staff-box-right-text {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.staff-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 800px;
    margin-top: 25px;
    gap: 30px;
}

.category-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.category-section {
    width: 100%;
}

.staff-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex-wrap: wrap;
    gap: 33px;
    position: relative;
    z-index: 2;
}

.absence-icon {
    top: 10%;
    left: 82%;
    position: absolute;

    img {
        width: 12px;
        height: 22px;
    }
}

.status-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: -14%;
    left: -3%;
    border: #FFFFFF 2px solid;
    z-index: 2;
}

.status-dot.online {
    background-color: var(--color-green);
}

.status-dot.offline {
    background-color: var(--color-red);
}

.staff-card {
    position: relative;
    background: rgba(36, 40, 55, 0.9);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    max-height: 80px;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);

    &:hover {
        cursor: pointer;
        transform: translateY(-2px);
        opacity: 0.7;
    }
}

.staff-card[data-category="14"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal285.png);
}

.staff-card[data-category="15"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal291.png);
}

.staff-card[data-category="24"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/feature_cata_hort_FranksKitchenSuite_Jul25.png);
}

.staff-card[data-category="7"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal182.png);
}

.staff-card[data-category="8"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal217.png);
}

.staff-card[data-category="9"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal437.png);
}

.staff-card[data-category="11"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal439.png);
}

.staff-card[data-category="26"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal438psd.png);
}

.staff-card[data-category="6"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/offer_rotating_roomdeal435.png);
}

.staff-card[data-category="19"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/feature_cata_hort_revampedsteampunkbundle.png);
}

.staff-card[data-category="20"] {
    background-image: var(--staff-overlay), url(/assets/img/staff/background/feature_cata_hort_MagicChocobundle.png);
}

.staff-card:hover .staff-header .staff-avatar img {
    transform: translateY(-12px);
}

.staff-header {
    position: relative;
    z-index: 2;
    height: 88px;
    overflow: hidden;
    top: -4px;
}

.staff-info {
    position: relative;
    z-index: 2;
    height: fit-content;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

.staff-pseudo {
    font-weight: bold;
    font-size: 20px;
    color: white;
}

.staff-rank {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 500;
    margin-top: 4px;
    height: fit-content;
    top: -20%;
    position: absolute;
    right: 10%;
    color: white;
}

.tooltip-staff {
    position: absolute;
    background: var(--box-color);
    border-radius: 8px;
    padding: 15px;
    width: auto;
    max-width: 300px;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    pointer-events: none;

    &::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid var(--box-color);
        pointer-events: none
    }

    &::before {
        content: '';
        position: absolute;
        bottom: -11px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-top: var(--border-color) 11px solid;
        pointer-events: none
    }
}

.tooltip-staff.active {
    opacity: 1;
    visibility: visible;
    pointer-events: none
}

.tooltip-staff-description {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
    font-weight: bold;
    pointer-events: none
}

.staff-badge {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 3px;
    -webkit-filter: drop-shadow(1px 1px 0 #fff) drop-shadow(-1px 0px 0 #fff) drop-shadow(0 -1px 0 #fff);

    img {
        scale: 1;
        object-fit: contain;
    }
}

@media (max-width: 1330px) and (min-width: 769px) {
    .navigation-staff {
        gap: 25px
    }

    .navigation-staff.fixed {
        padding: 10px;
    }

    .navigation-staff-box {
        gap: 11px;
    }

    .navigation-staff-box-left {
        width: auto;
    }

    .navigation-staff-box-right {
        width: auto;
    }

    .staff-container {
        gap: 33px 20px;
    }

    .status-dot {
        width: 18px;
        height: 18px;
        top: -14%;
        left: 0;
    }
}

@media (max-width: 1050px) and (min-width: 919px) {
    .staff-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 920px) and (min-width: 769px) {
    .staff-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navigation-staff {
        display: none;
    }

    .staff-content {
        margin-top: 0;
    }

    .category-section {
        width: 100%;
    }

    .staff-container {
        display: flex;
        flex-direction: column;
    }

    .staff-card {
        width: 100%;
    }

    .status-dot {
        width: 18px;
        height: 18px;
        top: -14%;
        left: 0;
    }
}