/*!
 * Admin Panel Styles
 * Copyright © 2024 CS2Land.ru. All rights reserved.
 */

:root {
  --grey-color: #1c1e24;
  --card-color: #2e323b;
  --custom-text-color: #f5f5f5;
  --default-text-color: #f5f5f5;
  --span-color: #b0b0b0;
  --button-color: #3a86ff;
  --red-color: #ef4444;
  --green-color: #22c55e;
  --bg-table-color: rgba(255, 255, 255, 0.1);
}

/* Основные стили контейнера */
.adminlist_blocks {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}

/* Стили карточки администратора */
.admin_card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--grey-color);
  padding: 10px;
  border-radius: 8px;
  overflow: hidden;
  height: 255px;
  width: 218px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.admin_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(58, 134, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Стили аватара */
.avatar_block {
  position: relative;
}

.avatar_block:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.admins_avatar {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  position: relative;
}

/* Стили ника администратора */
.admin_nickname {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--button-color);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  margin-bottom: 10px;
}

.admin_nickname:hover {
  color: #4b90ff;
}

.admin_nickname svg {
  width: 24px;
  height: 16px;
  fill: #007bff;
  margin-right: 5px;
  vertical-align: middle;
  transition: fill 0.3s ease-in-out;
}

.admin_nickname:hover svg {
  fill: #0056b3;
}

/* Стили информации об администраторе */
.adminlist_info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 5px;
  position: relative;
  margin-bottom: 10px;
}

.adminlist_buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* Стили кнопок */
.online_button, 
.adminlist_button,
.admins_bans,
.admins_comms,
.admins_warns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 10px;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--custom-text-color);
  transition: all 0.3s;
}

.online_button,
.adminlist_button {
  height: 100%;
  gap: 10px;
}

.online_button svg,
.adminlist_button svg {
  width: 12px;
  height: auto;
  fill: var(--custom-text-color);
  transition: fill 0.3s;
}

.steam_button:hover {
  background-color: #000;
  color: var(--default-text-color);
}

.steam_button:hover svg {
  fill: var(--default-text-color);
}

/* Стили статуса онлайн */
.on {
  background-color: var(--green-color);
}

.off {
  background-color: var(--red-color);
}

/* Стили группы администратора */
.admin_group,
.admin_status,
.admin_term {
  width: 100%;
  position: relative;
  padding: 10px 0;
  height: 38px;
  overflow: hidden;
  background-color: var(--bg-table-color);
  display: flex;
  gap: 10px;
}

.admin_group_icon,
.admin_status_icon,
.admin_term_icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-color);
  border-radius: 4px 0 0 4px;
}

.admin_group_icon svg,
.admin_status_icon svg,
.admin_term_icon svg {
  width: 14px; /* Увеличим размер иконки */
  height: 14px;
  fill: var(--custom-text-color);
  margin: 0 auto; /* Центрирование по горизонтали */
  display: block;
}

.admin_group_text,
.admin_status_text,
.admin_term_text,
.admin_group_desc,
.admin_status_desc,
.admin_term_desc {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  margin-left: 48px;
  max-width: 145px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.3s;
}

.admin_group_text,
.admin_status_text,
.admin_term_text {
  color: var(--default-text-color);
}

.admin_group_desc,
.admin_status_desc,
.admin_term_desc {
  color: var(--span-color);
}

.hide_text,
.hide_info {
  visibility: hidden;
  opacity: 0;
}

.hide_text {
  transform: translateY(30px);
}

.show_text {
  transform: translateY(-30px);
  opacity: 1;
}

/* Стили статистики работы */
.admins_work {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  position: relative;
}

.admins_bans,
.admins_comms,
.admins_warns {
  background-color: var(--card-color);
  padding: 8px 0;
  height: 35px;
  font-size: 12px;
  cursor: help;
  justify-content: center;
}

.admins_bans:hover {
  background-color: var(--button-color);
  color: var(--default-text-color);
}

.admins_comms:hover {
  background-color: var(--button-color);
  color: var(--default-text-color);
}

.admins_warns:hover {
  background-color: var(--button-color);
  color: var(--default-text-color);
}

.admins_bans_desc,
.admins_comms_desc,
.admins_warns_desc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  padding: 10px 0;
}

.admins_bans_desc svg,
.admins_comms_desc svg,
.admins_warns_desc svg {
  width: 14px;
  height: auto;
  fill: var(--custom-text-color);
  position: absolute;
  transition: fill 0.3s;
}

.admins_bans_count,
.admins_comms_count,
.admins_warns_count {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

/* Стили заголовков разделов */
.adminlist_title {
  display: flex;
  justify-content: center;
  margin: 10px auto 20px;
  width: max-content;
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--custom-text-color);
  text-transform: uppercase;
  border-bottom: 1px solid var(--bg-table-color);
}

/* Адаптивные стили */
@media (max-width: 464px) {
  .admin_card {
    height: 300px;
    width: 300px;
    border-radius: 8px;
  }
}

/* Анимации */
.admin_card:hover .online_text {
  opacity: 1;
}

.admin_group:hover svg,
.admin_status:hover svg,
.admin_term:hover svg {
  fill: var(--default-text-color);
  transition: fill 0.3s;
}

/* Специфичные классы */
.warn {
  color: var(--red-color) !important;
}

.vk_button_inactive {
  cursor: default;
  opacity: 0.5;
  user-select: none;
}