/* Репутация */
.achv_row:hover {
    background-color: #f9f9f9; /* Слегка изменяем фон */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* Увеличиваем тень */
    cursor: pointer; /* Меняем курсор на указатель (если это кликабельный элемент) */
}
/* При нажатии (активном состоянии) */
.achv_row:active {
    background-color: #f0f0f0; /* Делаем фон темнее */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Уменьшаем тень, создавая эффект вдавливания */
}

.card_achv_description {
	margin-top: 10px;
	flex-basis: 100%;
}

.card_achv {
	margin-right: 10px;
	width: 40px;	
}

.total_rep {
	cursor: pointer;
	color: #1d1d1d;
}

.reputation-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}

.reputation-item {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 250px;
}

.reputation-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.reputation-userinfo {
	display: flex;
	flex-direction: column;
}

.reputation-username {
	font-weight: bold;
	font-size: 0.9em;
}

.reputation-value {
	font-size: 0.8em;
	text-align: center;
}

.reputation-value.positive {
	color: green;
}

.reputation-value.negative {
	color: red;
}

.reputation-comment {
	font-size: 0.8em;
	color: #666;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.reputation_info {
	position: absolute;
	z-index: 1000;
	background: white;
	border: 1px solid #ddd;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	padding: 10px;
	left: 50%;
	transform: translateX(-50%);
	bottom: 100%;
	max-height: 300px; /* Максимальная высота */
	overflow-y: auto;  /* Вертикальная прокрутка */
	max-width: 280px;      /* Фиксированная ширина (опционально) */
}

.reputation-container {
	display: flex;
	flex-direction: column; /* Элементы в столбик */
	gap: 10px;
	margin: 10px 0;
	max-height: 100%;      /* Наследует max-height родителя */
	overflow-y: auto;      /* Прокрутка внутри контейнера (если нужно) */
}

.reputation-item {
	display: flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;       /* Занимает всю ширину */
	padding: 5px;
}

.reputation-item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;        /* Чтобы аватарка не сжималась */
}

.reputation-comment {
	font-size: 0.8em;
	color: #666;
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}



/* 18+ плашка */
#age_verifier_main_wrapper {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.78);
	display: flex;
	justify-content: center;
	align-items: center;
}

#age_verifier_sub_wrapper {
	background: #23222a;
	padding: 32px 28px 24px 28px;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 280px;
	max-width: 90vw;
	color: #fff;
	font-family: sans-serif;
}

#age_verifier_text {
	margin-bottom: 22px;
	font-size: 1.17em;
	text-align: center;
	line-height: 1.4;
}

/* Уведомления */
#user_notifications {
	position: fixed;
	display: none;
	right: 10px;
	top: 28%;
}

#user_notifications_mark_all {
	text-align: center;
	width: 100%;
	display: block;
	cursor: pointer;	
}

#user_notifications_wrapper {
	position: absolute;
	right: 0;
	top: 100%;
	width: 300px;
	max-height: 400px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 1000;
	display: none;
	padding: 5px 0;
}

#user_notifications_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#user_notifications_list li {
	padding: 8px 12px;
	border-bottom: 1px solid #eee;
}

#user_notifications_list li:last-child {
	border-bottom: none;
}

#user_notifications_list li.notification_0 {
	background-color: #f8f8f8;
}

#user_notifications_list li.notification_1 {
	background-color: #fff;
}

#user_notifications_list li a {
	color: #333;
	text-decoration: none;
	display: block;
	white-space: normal;
	overflow-wrap: anywhere;
	text-overflow: clip;
}

#user_notifications_list li a:hover {
	color: #0066cc;
}

#user_notifications_counter {
	background-color: #d9534f;
	color: white;
	border-radius: 10px;
	padding: 2px 6px;
	font-size: 12px;
	margin-left: 5px;
}


/*Дни рождения*/
.birthday_alert {
	background: #DCE6F2;
	border-left: 3px solid #39415E;
	border-right: 1px solid rgba(162, 235, 255, 0.5);
	border-top: 1px solid rgba(162, 235, 255, 0.5);
	border-bottom: 1px solid rgba(162, 235, 255, 0.5);
	padding: 6px 10px;
	margin: 0px 0px 10px 0px;
	border-radius: 3px;
	font-size: 13px;
	line-height: 1.4;
}
.birthday-title {
	font-weight: bold;
	color: #333;
}
.birthday-user {
	color: #428bca;
	text-decoration: none;
	margin-right: 3px;
}
.birthday-user:hover {
	text-decoration: underline;
}
.birthday-user+a.birthday-user:before {
	content: ", ";
	color: #333;
}
.birthday-users {
	white-space: break-spaces;
}
.birthday-message {
	display: block;
	margin-top: 5px;
	font-style: italic;
	color: #666;
}

/*Загрузка изображений с фиксированным размером*/
#custom-bbcode-image-number-wrapper {
	display: flex;
}

#custom-bbcode-image-number-wrapper > input {
	width: 125px;
}

/*Изменение размера шрифта*/
#font_size_changer {
	background: #ffffff;
	width: 36px;
	position: fixed;
	right: 20px;
	top: 20%;
	transform: translateY(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border: 1px solid #d1d5db;
	padding: 0;
}

.font_size_changer_button {
	width: 100%;  /* ← Занимают всю ширину родителя */
	height: 36px;
	background: #f8fafc;
	color: #39415E;
	border: none;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.2s ease;
	margin: 0;  /* ← Убираем внешние отступы */
	padding: 0; /* ← Убираем внутренние отступы */
}

.font_size_changer_view {
	width: 100%;  /* ← Совпадает с кнопками */
	height: 36px; /* ← Фиксированная высота как у кнопок */
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	background: white;
	color: #39415E;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	margin: 0;  /* ← Убираем отступы */
	box-sizing: border-box; /* ← Учитываем границы в ширине */
}

#font_size_changer_up {
	border-radius: 8px 8px 0px 0px !important;
}

#font_size_changer_down {
	border-radius: 0px 0px 8px 8px !important;
}

