/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Модальное окно */
.other-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2300;
    font-family: 'Poppins', sans-serif;
}

.other-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-modal__content {
    display: flex;
    width: 950px;
    max-width: 90%;
    height: 850px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

/* Левая часть */
.other-modal__sidebar {
    width: 280px;
    background: #FFFFFF;
    border-right: 1px solid #F3F4F6;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    position: relative;
}

.other-modal__corner-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.other-modal__corner-button:hover {
    opacity: 0.7;
}

.other-modal__corner-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.other-modal__user-info {
    display: flex;
    align-items: center;
    padding: 0 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 20px;
}

.other-modal__user-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    margin-right: 15px;
}

.other-modal__user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.other-modal__user-status {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}

.other-modal__user-details {
    flex-grow: 1;
}

.other-modal__user-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1F2937;
    margin-bottom: 2px;
}

.other-modal__user-email {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
}

/* Меню */
.other-modal__menu {
    display: flex;
    flex-direction: column;
}

.other-modal__menu-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1F2937;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.other-modal__menu-item img {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    object-fit: contain;
}

.other-modal__menu-item:hover,
.other-modal__menu-item.active {
    background: #F3F4F6;
    color: #1F2937;
}

.other-modal__menu-item[data-tab="profile"]::after,
.other-modal__menu-item[data-tab="support"]::after {
    content: "›";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 20px;
    line-height: 1;
}

/* Переключатель уведомлений */
.other-modal__notifications-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.other-modal__toggle-status {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
}

/* Правая часть */
.other-modal__content-area {
    width: calc(100% - 280px);
    padding: 30px;
    position: relative;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-modal__close {
    position: absolute;
    top: 160px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #4B5563;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    line-height: 1;
}

.other-modal__close:hover {
    color: #1F2937;
}

/* Форма профиля */
.other-modal__profile-form {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.other-modal__form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #F3F4F6;
    width: 100%;
    justify-content: space-between;
}

.other-modal__form-group label {
    min-width: 120px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1F2937;
    margin-bottom: 0;
    flex-shrink: 0;
}

.other-modal__form-group input {
    width: 700px;
    padding: 10px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
    transition: all 0.3s ease;
}

.other-modal__form-group input:focus {
    outline: none;
    border-color: #C9DD04;
    box-shadow: 0 0 0 3px rgba(201, 221, 4, 0.1);
}

.other-modal__save-btn {
    width: auto;
    padding: 10px 40px;
    background: #C9DD04;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.other-modal__save-btn:hover {
    background: #B5C804;
}

.other-modal__action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    width: 100%;
}

.other-modal__action-btn {
    flex: 0;
    padding: 8px 25px;
    background: white;
    border: 2px solid #C9DD04;
    border-radius: 8px;
    color: #C9DD04;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.other-modal__action-btn:hover {
    border-color: #B5C804;
    color: #B5C804;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Вкладки */
.other-modal__tab-content {
    display: none;
    width: 100%;
}

.other-modal__tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.other-modal__tab-content .other-modal__user-info {
    margin-top: 120px;
    margin-bottom: 0;
    padding: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Заголовки вкладок */
.other-modal__tab-content h2 {
    text-align: left;
    margin-bottom: 30px;
    font-weight: 500;
    color: #1F2937;
    width: 100%;
}
