﻿/* Avatar CSS - starts */
.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #007bff;
    background: var(--orange-color);
    background: cornflowerblue;
    /*background: darkcyan;*/
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.avatar:hover {
    background: #0056b3;
}

.user-popup {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 210px;
    min-width: 190px;
    z-index: 1000;
    display: none;
}

.user-popup.show {
    display: block;
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-name {
    font-size: var(--main-font-size);
    font-size: calc(var(--main-font-size) + 2px);
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.user-email {
    color: #666;
    font-size: calc(var(--main-font-size) - 2px);
    font-size: var(--main-font-size);
    font-weight: normal;
}

.menu-items {
    padding: 5px 0;
    font-size: var(--main-font-size);
}

.menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
}

.menu-item:hover {
    background: #f8f9fa;
    background: lightgray;
}
/* Avatar CSS - ends */

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 1000; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

#menuClose {
    display: none;
    position: fixed;
    cursor: pointer;
    width: 32px;
    left: 265px;
    left: 267px;
    top: 66px;
    top: 32px;
}

.search-container {
    position: relative;
    /*margin-left: 20px;*/
    /*margin-right: 20px;*/
}

.menu-search-input {
    padding: 8px 40px 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 14px !important;
    /*font-size: 14px !important;*/
    outline: none !important;
    transition: border-color 0.2s !important;
    width: 100% !important;
    height: 30px !important;
    width: 100% !important;
}

    .menu-search-input:focus {
        border-color: #007bff !important;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
    }

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    color: lightslategray;
    pointer-events: none;
    font-size: 16px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    top: 32px;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    grid-auto-flow: row;
    grid-auto-columns: max-content;
    width: fit-content;
}

    .autocomplete-dropdown.show {
        display: block;
        display: grid;
    }

.autocomplete-item {
    padding: 10px 12px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

    .autocomplete-item:hover,
    .autocomplete-item.highlighted {
        background: #f8f9fa;
        background: lightgray;
        background: #FFD6AD;
        color: blue;
    }

    .autocomplete-item:last-child {
        border-bottom: none;
    }

.hide-show-menu {
    width: 26px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: slategray;
}

.dropdownmenu-module {
    font-style: italic;
    color: lightslategray;
}