/* ✅ Стили модального окна логина (по аналогии с similar-грузами) */
.login-modal {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 99%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

/* ✅ Контейнер окна */
.login-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    height: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ✅ Кнопка закрытия */
.login-modal-close {
    position: relative;
    top: 5px;
    left: 180px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
text-align: center;
z-index: 5100;
}

/* ✅ Поля ввода */
.login-modal-content input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ✅ Кнопка входа */
#login-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
}

#login-button:hover {
    background-color: #0056b3;
}
.user-icon.logged-in {
    box-shadow: 0px 0px 1px 2px rgba(0, 200, 0, 0.8);
    border-radius: 30%; /* если иконка круглая */
}



/* ✅ Скрытие модального окна по умолчанию */
.hidden {
    display: none !important;
}


/* ✅ Блок кнопок под формой */
.login-modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* ✅ Стили для кнопок "Forgot Password?" и "Sign Up" */
#forgot-password,
#sign-up {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

#forgot-password:hover,
#sign-up:hover {
    color: #0056b3;
}

/* ✅ Блок с кнопками "Switch to Login" */
.login-modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* ✅ Стили для кнопок-переключателей */
#switch-to-login {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

#switch-to-login:hover {
    color: #0056b3;
}






.user-menu {
    position: relative;
    display: inline-block;
    z-index: 9000;
}

#user-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.user-icon {
    width: 32px;
    height: 26px;
    cursor: pointer;
    margin-right: 10px;
}

.user-icon.logged-in {
    filter: hue-rotate(90deg) brightness(1.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 7000;
    width: 180px;
    padding: 10px 0;
}

.menu-section {
    padding: 5px 10px;
}

.menu-item {
    padding: 8px 10px;
    text-decoration: none;
    color: black;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.menu-item.email {
    font-size: 12px;
    color: gray;
}

.menu-item:hover {
    background-color: #f4f4f4;
}

.logout {
    color: red;
    font-weight: bold;
}

hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 5px 0;
}
