.channel-header {
    position: sticky;
    top: 0;
    height: 100px;
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 15px;
    align-items: center;
    background-color: #01161E;
    color: #fafafa;
    overflow: hidden;
    transition: 250ms;
}

.channel-header-left {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.channel-header-left h3,
.channel-header-left > p {
    padding: 0;
    margin: 0;
    max-width: max(45vw, 300px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-header-left > p {
    filter: brightness(75%);
}

.channel-name-invite {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

#invite-user-button {
    fill: #fafafa;
    stroke: #fafafa;
    background: none;
    border: none;
    padding: 0;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#invite-user-button:hover {
    filter: brightness(75%);
}

.channel-header-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.channel-header-right > h4 {
    margin: 0;
    padding: 0;
}

#channel-created-by {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.channel-visibility-details,
.channel-creation-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.channel-visibility-details > h4 {
    margin: 0;
    padding: 0;
    text-align: center;
}

.channel-visibility-details > p,
.channel-creation-details > p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    text-align: center;
}

.channel-header-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    stroke: #fafafa;
    fill: #fafafa;
    color: #fafafa;
}

.channel-header-button:hover {
    filter: brightness(75%);
}

.channel-body {
    height: calc(100% - 100px);
    overflow-x: hidden;
    overflow-y: auto;
}

#channel-invite-container {
    overflow: hidden;
}

#channel-invite-container > h2 {
    margin-bottom: 20px;
}

#channel-invite-user-list {
    height: 60%;
    overflow: auto;
}

.channel-invite-user {
    margin: 8px 0;
}

@media (max-width: 1050px) {
    .channel-header {
        height: 200px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .channel-header-left h3,
    .channel-header-left > p {
        text-align: center;
        max-width: 70vw;
    }

    .channel-name-invite {
        justify-content: center;
    }

    .channel-body {
        height: calc(100% - 200px);
    }
}

@media (max-width: 650px) {
    .channel-header {
        top: 100px;
        padding-top: 0;
        justify-content: start;
        height: 180px;
    }

    .channel-body {
        height: calc(100% - 250px);
    }
}