/* Общие стили */
body {
  font-family: Arial, sans-serif;
  background-color: #797979 !important; /* Тёмный фон */
  color: #fff !important; /* Светлый текст */
  margin: 0;
  padding: 0;
}

/* Контейнер */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}

/* Стили для навигации */
header {
  border-bottom: 1px solid #444; /* Тёмная рамка */
  background-color: #222; /* Тёмный фон */
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #fff; /* Белый цвет текста */
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-link {
  color: #fff;
}

.nav-link:hover {
  text-decoration: underline;
}

/* Стили для навигации: делаем текст ссылок жирным */
nav ul li a {
  font-weight: bold;
}

/* Стили для hero-блока */
.hero {
  text-align: center;
  padding: 50px 15px;
  background-color: #007bff; /* Синий фон */
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
}

.hero .btn {
  margin-top: 20px;
}

/* Стили для формы авторизации */
.auth form {
  max-width: 400px;
  margin: 0 auto;
}

.auth h2 {
  text-align: center;
}

/* Стили для рейтингов */
.ratings .card {
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Футер */
footer {
  background-color: #343a40; /* Тёмный фон */
  color: white;
}

.logo {
  width: 125px; /* Настройте размер логотипа */
  height: auto; /* Сохраняет пропорции */
}
/* Для WebKit-браузеров */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 5px;
  border: 2px solid #1e1e1e;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8c8c8;
}

/* Для Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 #1e1e1e;
}
/* Стили для колокольчика уведомлений */
.notification-bell {
  position: relative;
  display: inline-block;
  margin-left: 7px;
  cursor: pointer;
}

.bell-icon {
  font-size: 45px;
  color: white;
}

.bell-icon.active {
  animation: bellShake 0.5s ease infinite;
}

@keyframes bellShake {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-15deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 14px;
  line-height: 1;
}

/* Стили для выпадающего списка уведомлений */
.notifications-dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  width: 500px;
  max-height: 700px;
  background: linear-gradient(145deg, #1f2021, #2a2b2c);
  border: 1px solid #555;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  color: #fff;
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notifications-header {
  padding: 15px;
  border-bottom: 1px solid #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #2a2b2c, #1f2021);
}

.notifications-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.notifications-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

.notifications-list .notification-item {
  padding: 12px;
  border-bottom: 1px solid #444;
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #212529;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-radius: 4px;
  margin-bottom: 5px;
  word-wrap: break-word;
}

.notifications-list .notification-item.unread {
  background-color: #2a2b2c;
  font-weight: bold;
  border-left: 4px solid #007bff;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    background-color: #2a2b2c;
  }
  50% {
    background-color: #3a3b3c;
  }
  100% {
    background-color: #2a2b2c;
  }
}

.notifications-list .notification-item:hover {
  background-color: #333;
  transform: translateX(2px);
}

.notifications-list .notification-item:last-child {
  border-bottom: none;
}

.notifications-list .notification-item .icon {
  font-size: 1.5rem; /* Размер иконки */
  color: #fff; /* Цвет иконки (белый, как у текста) */
  vertical-align: middle; /* Выравнивание по вертикали */
}

.notifications-list .notification-item .content {
  flex: 1;
}

.notifications-list .notification-item .content p {
  margin: 0;
  font-size: 0.9rem;
  display: block; /* Меняем на block для корректного переноса */
  white-space: normal; /* Разрешаем перенос текста */
  overflow-wrap: break-word; /* Перенос по словам */
  word-break: break-word; /* Разбиваем длинные слова */
}

.notifications-list .notification-item .content p a {
  font-weight: bold; /* Делаем логины жирными */
  color: #c1d1ff !important;
  text-decoration: none; /* Оставляем без подчеркивания по умолчанию */
}

.notifications-list .notification-item .content p a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .notifications-list .notification-item .content p img {
    width: 18px;
    height: 18px;
  }
}

.notifications-list .notification-item .content small {
  color: #aaa;
  font-size: 0.8rem;
  display: inline;
  margin-left: 0px;
}

/* Стили для кнопки "Отметить все как прочитанные" */
.btn-sm {
  font-size: 12px;
  padding: 5px 10px;
  background-color: #555;
  border: none;
  border-radius: 4px;
  color: #fff;
  transition: background-color 0.2s;
}

.btn-sm:hover {
  background-color: #666;
}
/* Стили для кнопок в уведомлениях */
.notification-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.notification-actions .btn-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.notification-actions .btn-success {
  background-color: #28a745;
  border: none;
}

.notification-actions .btn-success:hover {
  background-color: #218838;
}

.notification-actions .btn-danger {
  background-color: #dc3545;
  border: none;
}

.notification-actions .btn-danger:hover {
  background-color: #c82333;
}

.notification-item .content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.text-custom-link {
  color: #c1d1ff !important;
  font-weight: bold;
  text-decoration: none;
}
.text-custom-link:hover {
  text-decoration: underline;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #000000;
  background-color: #000000;
  color: #fff;
}

body.bg-light {
  background-color: #797979 !important;
  color: #fff !important;
}

* {
  box-sizing: border-box;
}

header {
  padding-top: 0px;
  padding-bottom: 0px;
  background-color: #1f2021 !important;
  border-bottom: 1px solid #444;
  color: #fff;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
}

nav a:hover span {
  text-decoration: underline;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.user-achievements {
  font-size: 0.9rem;
  text-align: right;
}

.user-achievements p {
  margin: 0;
  line-height: 1.2;
}

.user-achievements .avatar-img {
  width: 60px;
  height: 60px;
}

.avatar-img {
  object-fit: cover;
  border: 2px solid #707070;
  transition: transform 0.2s ease;
}

.avatar-img:hover {
  transform: scale(1.05);
}

.login-form {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.login-form .inputs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-form .form-control {
  width: auto;
  max-width: 150px;
  background-color: #444;
  color: #fff;
  border: 1px solid #555;
}

.login-form button {
  white-space: nowrap;
}

.login-form small {
  font-size: 0.9rem;
}

.login-form .actions a {
  color: #fff;
  text-decoration: none;
}

.login-form .actions a:hover {
  text-decoration: underline;
}

.input.form-control::placeholder {
  color: #aaa;
  opacity: 1;
}

.hero {
  padding-top: 20px;
  padding-bottom: 20px;
}

.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.custom-modal.active {
  display: flex;
  animation: fadeInBackground 0.5s ease-out;
}

@keyframes fadeInBackground {
  from {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
  }
  to {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.modal-content {
  background-color: #1f2021;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid #444;
  transform: scale(0);
  opacity: 0;
}

.custom-modal.active .modal-content {
  animation: rotateAndScale 0.7s ease-out forwards;
}

@keyframes rotateAndScale {
  0% {
    transform: scale(0) rotate(-360deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(0deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.custom-modal.leaving .modal-content {
  animation: rotateAndScaleOut 0.5s ease-out forwards;
}

@keyframes rotateAndScaleOut {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
}

.close-btn:hover {
  color: #ccc;
}

.form-group {
  margin-bottom: 15px;
  text-align: center;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.modal-content .form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  font-size: 1.2em;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content .form-control::placeholder {
  color: #aaa;
  opacity: 1;
  text-align: center;
  font-size: 1.2em;
}

.modal-content .form-control:focus {
  background-color: #333;
  border-color: #777;
  outline: none;
  box-shadow: 0 0 5px rgba(119, 119, 119, 0.5);
}

.modal-content .btn-primary {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.modal-content .btn-primary:hover {
  background-color: #0056b3;
}

#login-form,
#register-form {
  text-align: center;
}

#login-form h3,
#register-form h3 {
  margin-bottom: 20px;
}

#login-form p,
#register-form p {
  margin-top: 15px;
  text-align: center;
}

#login-form p a,
#register-form p a {
  color: #fff;
  text-decoration: underline;
}

#login-form p a:hover,
#register-form p a:hover {
  text-decoration: underline;
}

#login-form .btn-primary,
#register-form .btn-primary {
  margin-bottom: 25px;
}

.news-section h2 {
  margin-bottom: 0px;
}

.news-slider {
  overflow: hidden;
  position: relative;
  background-color: #000;
  color: #fff;
  padding: 20px 0;
  width: 930px;
  margin: 0 auto;
  height: 215px;
}

.news-carousel {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.news-item {
  flex: 0 0 100%;
  padding: 15px;
  text-align: center;
  background-color: #212529;
  border-radius: 0.375rem;
  border: 1px solid #444;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-height: 160px;
  overflow-y: auto;
}

.news-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.slider-arrow:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.arrow-left {
  left: 0;
}

.arrow-right {
  right: 0;
}

.slider-arrow svg {
  color: #fff;
  width: 24px;
  height: 24px;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  background: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.indicator.active {
  background: #007bff;
  transform: scale(1.2);
}

.indicator:hover {
  background: #0056b3;
  transform: scale(1.2);
}

.banner-container {
  width: 100%;
  padding: 0 15px;
  margin-top: 20px;
  text-align: center;
}

.banner-container img {
  width: 100%;
  height: auto;
  max-width: 1100px;
  display: block;
  margin: 0 auto;
}

.ratings .table {
  margin-bottom: 0;
}

.ratings .table th,
.ratings .table td {
  padding: 8px;
  vertical-align: middle;
  text-align: center;
}

.ratings .table th {
  background-color: #2a2b2c;
}

.ratings .table a {
  text-decoration: none;
  color: #c1d1ff !important;
  font-weight: bold;
}

.ratings .table a:hover {
  text-decoration: underline;
}

.ratings hr {
  margin: 10px 0;
}

.ratings {
  margin-bottom: 0;
  padding-bottom: 0px;
}

.ratings .card-body h5 {
  font-weight: bold;
  color: #e5ffeb;
}

.community-section {
  padding-top: 0px;
  padding-bottom: 0px;
}

.community-section h2 {
  margin-bottom: 20px;
}

.community-card {
  background-color: #212529;
  border: 1px solid #444;
  border-radius: 0.375rem;
  padding: 15px;
  color: #fff;
  width: 100%;
}

.community-card h5 {
  margin-bottom: 15px;
  font-weight: bold;
  color: #e5ffeb;
}

.community-card p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
  overflow-wrap: break-word;
}

.community-card p .avatar-img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0px;
}

.community-card p a {
  color: #c1d1ff;
  text-decoration: none;
  font-weight: bold;
}

.community-card p a:hover {
  text-decoration: underline;
}

.user-block:not(:last-child)::after {
  content: ", ";
}

.user-block {
  display: inline-flex;
  align-items: center;
}

.recent-achievements .event-item {
  display: flex;
  align-items: center;
  background-color: #212529;
  border: 1px solid #444;
  padding: 10px;
  margin-bottom: 15px;
  min-height: 70px;
}

.recent-achievements .event-item a {
  color: #c1d1ff !important;
  text-decoration: none;
}

.recent-achievements .event-item a:hover {
  text-decoration: underline;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 40px;
}

.details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
}

.details .congrats-count {
  margin: 0;
  font-size: 0.9rem;
  line-height: normal;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-info div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.congrats-count.zero-congrats {
  line-height: normal;
  margin: 0;
}

.avatars {
  display: flex;
  align-items: center;
  gap: 5px;
}

.avatars:empty {
  display: none;
}

.congratulate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  height: 30px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.recent-achievements .event-item:hover {
  background-color: #2a2b2c;
}

.recent-achievements .text-warning {
  color: #e5ffeb !important;
  font-weight: bold;
}

.recent-achievements .btn-success {
  background-color: #198754;
  border: none;
}

.recent-achievements .btn-success:hover {
  background-color: #145c3b;
}

.recent-achievements .text-muted {
  color: #aaa !important;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.recent-achievements .recent-events .event-item:nth-child(odd) {
  background-color: #212529 !important;
}

.recent-achievements .recent-events .event-item:nth-child(even) {
  background-color: #2a2a2a !important;
}

.recent-achievements .event-item:hover {
  background-color: #343a40 !important;
}

.event-item.new {
  border-left: 4px solid #007bff;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes buttonCelebrate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.congratulate-btn.celebrating {
  animation: buttonCelebrate 0.8s ease forwards;
}

footer {
  padding-top: 8px;
  padding-bottom: 8px;
}

.bg-black {
  background-color: #000000 !important;
}

@media (max-width: 768px) {
  .news-slider {
    width: 100%;
    padding: 10px 0;
    height: 250px;
  }

  .news-item {
    padding: 10px;
    max-height: 200px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .banner-container {
    padding: 0 10px;
  }

  .banner-container img {
    min-height: 100px;
  }

  .community-section .row > div {
    margin-bottom: 20px;
  }
}

.recent-achievements h2,
.news-section h2,
.ratings h2,
.community-section h2 {
  font-weight: bold;
}

.confetti {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  opacity: 1;
}

.confetti.circle {
  border-radius: 50%;
}

.confetti.square {
  border-radius: 0;
}

.confetti.triangle {
  width: 0;
  height: 0;
  background: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.events-list {
  transition: opacity 0.3s ease;
}

.ratings .table th.avatar-col,
.ratings .table td.avatar-col {
  width: 60px;
  text-align: center;
  padding: 4px;
}

.ratings .table td.avatar-col img {
  margin: 0;
  vertical-align: middle;
}

.recent-achievements .event-item .fa-trophy,
.recent-achievements .event-item .fa-star {
  color: #e5ffeb;
}

.recent-achievements .event-item .fa-book {
  color: #FFDAB9;
}

.recent-achievements .event-item .fa-globe {
  color: #ADD8E6;
}

.recent-achievements .event-item .fa-walking {
  color: #98FB98;
}

.recent-achievements .event-item .fa-medal {
  color: #FFFACD;
}

.recent-achievements .event-item .fa-key {
  color: #E6E6FA;
}

.recent-achievements .event-item .fa-scroll {
  color: #FFE4B5;
}

.recent-achievements .event-item .fa-mountain {
  color: #D3D3D3;
}

.recent-achievements .event-item .fa-rainbow {
  color: #FFB6C1;
}

.recent-achievements .event-item .fa-palette {
  color: #FFA07A;
}

.recent-achievements .event-item .fa-dumbbell {
  color: #F0E68C;
}

.recent-achievements .event-item .fa-rocket {
  color: #B0E0E6;
}

.recent-achievements .event-item .fa-tools {
  color: #DCDCDC;
}

.recent-achievements .event-item .fa-award {
  color: #FFF5EE;
}

.recent-achievements .event-item .fa-box {
  color: #F5F5DC;
}

.recent-achievements .event-item .fa-chart-line {
  color: #AFEEEE;
}

.recent-achievements .event-item .fa-sun {
  color: #FFFFE0;
}

.recent-achievements .event-item .fa-road {
  color: #E0FFFF;
}

.recent-achievements .event-item .fa-map {
  color: #90EE90;
}

.recent-achievements .event-item .fa-bullseye {
  color: #FFC1CC;
}

.recent-achievements .event-item .fa-plane {
  color: #B0C4DE;
}

.recent-achievements .event-item .fa-sync {
  color: #7FFFD4;
}

.recent-achievements .event-item .fa-meteor {
  color: #FFE4E1;
}

.recent-achievements .event-item .fa-book-open {
  color: #FFEBCD;
}

.recent-achievements .event-item .fa-person-hiking {
  color: #F0FFF0;
}

.recent-achievements .event-item .fa-shield-alt {
  color: #E0FFFF;
}

.recent-achievements .event-item .fa-bolt {
  color: #FFFFF0;
}

.recent-achievements .event-item .fa-graduation-cap {
  color: #B0E0E6;
}

.recent-achievements .event-item .fa-stars {
  color: #E6E6FA;
}

.recent-achievements .event-item .fa-check-circle {
  color: #7FFFD4;
}

.recent-achievements .event-item .fa-clock {
  color: #FFFACD;
}

.recent-achievements .event-item .fa-expand-arrows-alt {
  color: #D8BFD8;
}

.recent-achievements .event-item .fa-arrow-up {
  color: #98FB98;
}

.recent-achievements .event-item .fa-crown {
  color: #FFFACD;
}

.recent-achievements .event-item .fa-gem {
  color: #FFB6C1;
}

.recent-achievements .event-item .fa-flag-checkered {
  color: #F0E68C;
}