#notification-container {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    width: fit-content;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: slide-in 0.3s ease-out;
    opacity: 0.95;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.warning {
    background-color: #dddd40;
    color: #000000;
}

.notification.info {
    background-color: #00aadd;
}

.notification.hide {
    animation: slide-out 0.3s ease-in forwards;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 0.95;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.topbar-button {
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background-color: #444444;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    cursor: pointer;
}

.topbar-button:hover {
    background-color: #666666;
}

#username {
    margin-left: auto;
    margin-right: 10px;
}

#form-holder {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-bottom: 50px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #333333;
}

.form-title {
    text-align: center;
    font-size: 30px;
}

.form-component-holder {
    display: block;
}

.form-component-text {

}

.form-component-input {
    
}

.form-component-button {
    display: block;
    margin: auto;
    padding: 4px 8px;
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background-color: #444444;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
    cursor: pointer;
}

.primary-button {
    background-color: #dd0000;
}

.primary-button:hover {
    background-color: #ee4444;
}

.primary-button:disabled {
    cursor: not-allowed;
    background-color: #992222;
}

#form-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 32px;
    background-color: #00000033;
}

#dropdown-holder {
    position: fixed;
    width: 150px;
    background-color: #000000;
    transition: height 0.2s ease-in-out;
    overflow: hidden;
}

.dropdown-option {
    width: 100%;
    height: 30px;
    padding: 0;
    padding-left: 10px;
    border: 0;
    color: #ffffff;
    background-color: #000000;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: left;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #444444;
}

#dropdown-background {
    position: fixed;
    width: 100%;
    height: 100%;
}

#server-bar {
    display: flex;
    position: absolute;
    justify-content: center;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    width: 72px;
    height: calc(100% - 40px);
    padding-top: 8px;
    background-color: #111111;
    overflow-y: scroll;
}

#server-bar::-webkit-scrollbar {
    display: none;
}

.server-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: #333333;
    color: #ffffff;
    border-radius: 10px;
    text-align: center;
    border: 0;
    font-weight: bold;
    font-size: 18px;
}

.server-icon:hover {
    filter: brightness(150%);
}

.server-icon-text {
    position: absolute;
    display: inline-block;
    width: 48px;
    height: 48px;
    top: 0;
    left: 0;
    overflow: hidden;
    line-height: 48px;
}

.mention-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    color: #ffffff;
    background-color: #ff5555;
    border-radius: 8px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 16px;
    outline: 2px solid #000000;
}

.mention-icon.channel-mention {
    top: 4px;
    right: 20px;
    text-align: center;
}

#channel-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    position: absolute;
    width: 240px;
    height: calc(100% - 32px);
    left: 72px;
    top: 32px;
    background-color: #222222;
    color: #ffffff;
    overflow-y: auto;
}

#channel-holder {
    width: 100%;
}

#server-title {
    display: flex;
    align-items: center;
    width: 100%;
    height: 30px;
    background-color: #111111;
    cursor: pointer;
}

#server-title:hover {
    background-color: #444444;
}

#server-title-text {
    font-size: 20px;
}

#server-title-dropdown-button {
    margin-left: auto;
    margin-right: 12px;
}

.server-channel {
    position: relative;
    width: 100%;
    height: 24px;
    text-align: left;
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    color: #ffffff;
    font-size: 14px;
}

.server-channel:hover {
    background-color: #444444;
}

#chat {
    position: absolute;
    width: calc(100% - 520px);
    left: 312px;
    height: calc(100% - 32px);
    color: #ffffff;
    background-color: #333333;
    overflow: hidden;
    padding-left: 8px;
}

#message-holder {
    display: flex;
    position: absolute;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    width: 100%;
    height: calc(100% - 46px);
    left: 0;
    top: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-color: #555555 #333333;
    scrollbar-width: thin;
}

.chat-message-parent {
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 10px;
    padding-left: 8px;
}

.chat-message-parent:hover {
    background-color: #555555;
}

.chat-message-parent.mentioned {
    background-color: #ffff5522;
}

.chat-message-parent.mentioned:hover {
    background-color: #ffff9944;
}

.chat-message-avatar {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 4px;
    border-radius: 50%;
    cursor: pointer;
}

.chat-message-header {
    position: relative;
    height: 20px;
    left: 50px;
    top: 4px;
}

.chat-message-author {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    font-weight: bold;
    cursor: pointer;
}

.chat-message-author:hover {
    text-decoration: underline;
}

.chat-message-timestamp {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    color: #999999;
    font-size: 12px;
    margin-left: 4px;
}

.chat-message-content {
    position: relative;
    width: calc(100% - 48px);
    left: 50px;
    top: 4px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 22px;
    padding-bottom: 2px;
}

.chat-mention {
    background-color: #ff000033;
    color: #ff7777;
    cursor: pointer;
}

.chat-mention:hover {
    background-color: #ff333399;
    color: #ffffff;
}

.chat-code {
    color: #cccccc;
    background-color: #111111;
}

.chat-link {
    color: #11aaee;
    text-decoration: none;
}

.chat-link:hover {
    color: #77ddff;
}

.chat-greentext {
    color: #789922;
}

#input-area {
    position: absolute;
    width: calc(100% - 20px);
    bottom: 4px;
    left: 4px;
}

#message-input-holder {
    display: grid;
}

#message-input, #message-input-renderer {
    width: 100%;
    min-height: 20px;
    border: 0;
    color: #ffffff;
    background-color: #111111;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    grid-area: 1 / 1;
}

#message-input {
    padding: 0;
    resize: none;
    overflow: hidden;
    background: transparent;
    color: transparent;
    caret-color: #ffffff;
    outline: 0
}

#message-input:focus {
    outline: none;
}

#mention-autocomplete-holder {
    width: 100%;
}

.mention-autocomplete-user {
    background-color: #222222;
}

.mention-autocomplete-user:hover {
    background-color: #555555;
}

#typing-list {
    height: 16px;
    color: #bbbbbb;
    font-size: 14px;
}

#member-holder {
    position: absolute;
    height: calc(100% - 32px);
    width: 200px;
    top: 32px;
    right: 0;
    overflow: hidden;
    background-color: #222222;
    color: white;
    cursor: pointer;
}

.member-parent {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    padding-left: 10px;
}

.member-parent:hover {
    background-color: #444444;
}

.member-username {

}

.member-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.online-icon {
    position: absolute;
    width: 10px;
    height: 10px;
    bottom: 0;
    right: 0;
    background-color: #33bb33;
    border-radius: 50%;
}

#settings-holder {
    position: fixed;
    width: 100%;
    height: calc(100% - 32px);
    top: 32px;
    padding-top: 30px;
    padding-left: 10px;
    background-color: #333333;
}

#settings-category-holder {
    width: 150px;
}

.settings-category {
    width: 100%;
    height: 30px;
    padding: 0;
    padding-left: 10px;
    border: 0;
    color: #ffffff;
    background-color: #000000;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: left;
    cursor: pointer;
}

.settings-category:hover {
    background-color: #444444;
}

#settings-component-container {
    position: absolute;
    top: 30px;
    left: 200px;
}

.close-button {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 30px;
    right: 32px;
    background: none;
    color: #ffffff;
    border: 0;
}

.close-button:hover {
    color: #bbbbbb
}

.role-list {
    width: 150px;
}

#role-component-container {
    position: absolute;
    left: 200px;
    top: 0;
}

#user-profile-holder {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400px;
    min-height: 300px;
    transform: translate(-50%, -50%);
    background-color: #333333;
}

#user-profile-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 32px;
    background-color: #00000033;
}

.user-profile-banner {
    width: 100%;
    height: 150px;
}

.user-profile-avatar {
    position: relative;
    top: -48px;
    left: 12px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    outline: 5px solid #333333;
}

.user-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.user-profile-username {
    position: absolute;
    top: 150px;
    left: 116px;
    font-size: 20px;
}

.user-profile-content-holder {
    position: relative;
    top: -40px;
    padding: 0 10px;
    text-align: center;
}

.online-icon.large {
    width: 18px;
    height: 18px;
    right: 5px;
    bottom: 5px;
    outline: solid #333333 4px;
}

.user-profile-button {
    width: 80%;
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    background-color: #222222;
    color: #ffffff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 18px;
}

.user-profile-button:hover {
    background-color: #555555;
}

.user-profile-button:disabled {
    cursor: not-allowed;
}

.user-profile-role-container {
    text-align: left;
}

.user-profile-role {
    padding: 5px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 5px;
    display: inline-block;
    background-color: #333333;
    cursor: not-allowed;
}

.user-profile-role-deleteable {
    cursor: pointer;
}

.user-profile-role-deleteable:hover {
    background-color: #dd4444 !important;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.toggle-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: #bbbbbb;
    transition: 0.3s;
    border-radius: 34px;
    margin-right: 5px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    top: 2px;
    left: 3px;
    aspect-ratio: 1 / 1;
    height: calc(100% - 4px);
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 34px;
}

input:checked + .toggle-slider {
    background-color: #dd0000;
}

input:checked + .toggle-slider:before {
    transform: translateX(18px);
}