
/* Header */
header {
    background-color: #000000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    max-height: 100px;
    height: 10vh;
    padding: 0 0 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/*  Logo Left */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
}

.home-link {
    cursor: pointer;
}

.logo-bottom {
    align-self: center;
    margin: -5px 0 0 0;
}

/* Login Buttons div */
.header-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    flex-direction: row;
}

/* Logout div */
.logout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
}

.vertical-bar {
    width: 2px;
    height: 50px;
    background-color: white;
    align-self: center;
    margin-left: 1rem;
  }

.user-profile-button {
    align-self: center;
    margin: 0 1rem;
}

.logout p {
    margin: 0 10px;
    align-self: center;
}

/* Header buttons */
.header-button {
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    height: 100%;
    margin: 0;
    border: none;
}


/* Notifications */
.notif-container {
    display: flex;
    align-items: center;
    position: relative;
}

.notif-button {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background-color: #333;
    border-radius: 50%;
    position: relative;

}

.notif-button:hover {
    background-color: transparent;
}

.notif-button i {
    background-color: #333;
}

.notif-button::after {
    content: '';
    position: absolute;
    top: 8px; 
    right: 10px; 
    width: 10px; 
    height: 10px; 
    background-color: blue; 
    border-radius: 50%;
    display: var(--notif-display, none);
}

.notif-button i:hover {
    background-color: #131313;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px; 
    background-color: #090909;
    color: white;
    width: 500px;
    overflow-y: auto;
    max-height: 300px;
    z-index: 1000;
}

.notif-body {
    position: relative;
    height: 100%;
    padding-top: 50px;
}

.notif-readAll {
    position: absolute;
    top: 5px;
    left: 0;
    width: calc(100% - 20px);
    margin: 0 10px;
    z-index: 1001;
}

.notif-item {
    display: flex;
    flex-direction: column;
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.notif-item-unread {
    background-color: black;
}

.notif-item a {
    color: white;
}

.notif-item:hover {
    background-color: #131313;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-container.show .notif-dropdown {
    display: block;
}

.request-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
}

.request-buttons button {
    margin: 0 10px;
}

/* DMs */
.dm-container {
    display: flex;
    align-items: center;
    position: relative;
}

.dm-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background-color: #333;
    position: relative;
    border-radius: 50%;
    margin-left: 1rem;
}

.dm-button:hover {
    background-color: transparent;
}

.dm-button i {
    background-color: #333;
}

.dm-button::after {
    content: '';
    position: absolute;
    top: 8px; 
    right: 7px; 
    width: 10px; 
    height: 10px; 
    background-color: blue; 
    border-radius: 50%;
    display: var(--dm-display, none);
}

.dm-button i:hover {
    background-color: #131313;
}

.dm-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px; 
    background-color: #090909;
    color: #333;
    width: 500px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.dm-body {
    padding: 10px;
}

.dm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.dm-item-unread {
    background-color: rgb(254 186 109 / 75%);
}

.dm-item a {
    color: white;
}

.dm-item:hover {
    background-color: #131313;
}

.dm-item:last-child {
    border-bottom: none;
}

.dm-container.show .dm-dropdown {
    display: block;
}

.open-dm-button {
    height: 50px;
    font-weight: bold;
    background-color: blue;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.open-dm-button:hover {
    background-color: rgb(66, 148, 255);
}

.open-dm-button:active {
    background-color: rgb(0, 14, 209);
}

.dm-item:last-child {
    border-bottom: none;
}

.dm-container.show .notif-dropdown {
    display: block;
}

/* Search */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-button-container {
    display: flex;
    flex-direction: row;
}

.search-input-button-container {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.search-input {
    padding-left: 15px;
    margin-right: 15px;
    width: 350px;
    border: none;
    border-radius: 10px;
    height: 2rem;
    display: none;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    background-color: #333;
    position: relative;
    border-radius: 50%;
}

.search-button:hover {
    background-color: transparent;
}

.search-button i {
    background-color: #333;
}

.search-button i:hover {
    background-color: #131313;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px; 
    background-color: #090909;
    color: #333;
    width: 500px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-body {
    padding: 10px;
}

.search-item {
    display: flex;
    flex-direction: column;
    background-color: #333;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.search-item a {
    color: white;
}

.search-item:hover {
    background-color: #131313;
}

.search-item:last-child {
    border-bottom: none;
}

.search-container.show .search-dropdown {
    display: block;
}

/* DMs - Chat Window */
#dm-window {
    position: fixed;
    bottom: 0px;
    right: 10px;
    width: 300px;
    height: 400px;
    background-color: #464646;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.hidden {
    display: none !important;
}

.dm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.25rem 1rem;
}

.dm-header button {
    cursor: pointer;
    margin: -0.25rem -1rem;
}

.dm-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.message-sent {
    text-align: right;
    background-color: white;
    color: black;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    max-width: 70%;
    float: right;
    clear: both;
}
.message-received {
    text-align: left;
    background-color: #333;
    color: white;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    max-width: 70%;
    float: left;
    clear: both;
}

.dm-input {
    display: flex;
}

.dm-input input {
    flex: 1;
    padding: 10px;
    background-color: #464646;
    color: white;
    border: none;
    border-radius: 5px;
}

.dm-input button {
    padding: 10px;
    background-color: blue;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}