/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
  height: 64px;
}

.dark-style .menu .app-brand.demo {
  height: 64px;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 30px;
  height: 30px;
}

.app-brand-logo.demo svg {
  width: 1.7rem;
  height: 1.7rem;
}

.app-brand-text.demo {
  font-size: 1.25rem;
  letter-spacing: -0.45px;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir="rtl"] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Audio Player Styles
******************************************************************************/

.audio-player {
  overflow: hidden;
}

.audio-cover {
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  background: #00ab55;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-cover i {
  font-size: 1.5rem;
  color: #fff;
}

.audio-player.playing .audio-cover {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.audio-play-btn {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

.audio-play-btn i {
  font-size: 1.5rem;
}

/* Progress Bar */
.audio-progress-bar,
.audio-volume-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(38, 60, 85, 0.1);
  outline: none;
  cursor: pointer;
}

.audio-progress-bar::-webkit-slider-thumb,
.audio-volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ab55;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.audio-progress-bar::-webkit-slider-thumb:hover,
.audio-volume-bar::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-progress-bar::-moz-range-thumb,
.audio-volume-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ab55;
  cursor: pointer;
  border: none;
}

/* Playlist */
.audio-playlist {
  max-height: 200px;
  overflow-y: auto;
}

.playlist-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(38, 60, 85, 0.08);
}

.playlist-item:last-child {
  border-bottom: none;
}

.playlist-item:hover {
  background-color: rgba(38, 60, 85, 0.04);
}

.playlist-item.active {
  background-color: rgba(0, 171, 85, 0.08);
}

.playlist-item.active .playlist-icon {
  color: #00ab55;
}

.playlist-item.active .playlist-icon i {
  animation: equalizer 0.5s ease infinite alternate;
}

@keyframes equalizer {
  0% {
    transform: scaleY(0.5);
  }
  100% {
    transform: scaleY(1);
  }
}

.playlist-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  background: rgba(38, 60, 85, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playlist-icon i {
  font-size: 1rem;
}

/* Dark style */
.dark-style .audio-cover {
  background: linear-gradient(135deg, #00ab55 0%, #39da8a 100%);
}

.dark-style .audio-progress-bar,
.dark-style .audio-volume-bar {
  background: rgba(255, 255, 255, 0.1);
}

.dark-style .playlist-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-style .playlist-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.dark-style .playlist-item.active {
  background-color: rgba(0, 171, 85, 0.15);
}

.dark-style .playlist-icon {
  background: rgba(255, 255, 255, 0.1);
}

/*
* Content Post Styles
* Стили для контента статей/постов
******************************************************************************/

.content-post {
  line-height: 1.7;
}

/* Заголовки */
.content-post h1,
.content-post h2,
.content-post h3,
.content-post h4,
.content-post h5,
.content-post h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-post h1:first-child,
.content-post h2:first-child,
.content-post h3:first-child,
.content-post h4:first-child {
  margin-top: 0;
}

/* Параграфы */
.content-post p {
  margin-bottom: 1rem;
}

/* Списки */
.content-post ul,
.content-post ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content-post ul li,
.content-post ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.content-post ul ul,
.content-post ol ol,
.content-post ul ol,
.content-post ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Таблицы */
.content-post table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.375rem;
  overflow: hidden;
}

.content-post table th,
.content-post table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.content-post table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-post table tbody tr:last-child td {
  border-bottom: none;
}

/* Цитаты */
.content-post blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #00ab55;
  border-radius: 0 0.375rem 0.375rem 0;
  font-style: italic;
}

.content-post blockquote p {
  margin-bottom: 0;
}

.content-post blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
}

.content-post blockquote cite::before {
  content: "— ";
}

/* Код inline */
.content-post code {
  padding: 0.2rem 0.4rem;
  font-size: 0.875em;
  border-radius: 0.25rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Код block */
.content-post pre {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.content-post pre code {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* Горизонтальная линия */
.content-post hr {
  margin: 2rem 0;
  border: none;
  height: 1px;
}

/* Изображения */
.content-post img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.content-post figure {
  margin: 1.5rem 0;
}

.content-post figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
}

/* Ссылки */
.content-post a {
  color: #00ab55;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.content-post a:hover {
  border-bottom-color: #00ab55;
}

/* ========================================
   LIGHT STYLE
   ======================================== */

.light-style .content-post {
  color: #677788;
}

.light-style .content-post h1,
.light-style .content-post h2,
.light-style .content-post h3,
.light-style .content-post h4,
.light-style .content-post h5,
.light-style .content-post h6 {
  color: #516377;
}

/* Списки - светлая тема */
.light-style .content-post ul li::marker {
  color: #00ab55;
}

.light-style .content-post ol li::marker {
  color: #00ab55;
  font-weight: 600;
}

/* Таблицы - светлая тема */
.light-style .content-post table {
  border: 1px solid rgba(38, 60, 85, 0.1);
}

.light-style .content-post table th {
  background-color: rgba(38, 60, 85, 0.06);
  color: #516377;
  border-bottom: 1px solid rgba(38, 60, 85, 0.1);
}

.light-style .content-post table td {
  border-bottom: 1px solid rgba(38, 60, 85, 0.08);
  color: #677788;
}

.light-style .content-post table tbody tr:hover {
  background-color: rgba(38, 60, 85, 0.02);
}

/* Цитаты - светлая тема */
.light-style .content-post blockquote {
  background-color: rgba(0, 171, 85, 0.06);
  color: #516377;
}

.light-style .content-post blockquote cite {
  color: #69809a;
}

/* Код - светлая тема */
.light-style .content-post code {
  background-color: rgba(38, 60, 85, 0.08);
  color: #00ab55;
}

.light-style .content-post pre {
  background-color: #2d3748;
  color: #e2e8f0;
}

/* HR - светлая тема */
.light-style .content-post hr {
  background-color: rgba(38, 60, 85, 0.1);
}

/* Figcaption - светлая тема */
.light-style .content-post figcaption {
  color: #69809a;
}

/* ========================================
   DARK STYLE
   ======================================== */

.dark-style .content-post {
  color: #92a2bc;
}

.dark-style .content-post h1,
.dark-style .content-post h2,
.dark-style .content-post h3,
.dark-style .content-post h4,
.dark-style .content-post h5,
.dark-style .content-post h6 {
  color: #d2d8e3;
}

/* Списки - тёмная тема */
.dark-style .content-post ul li::marker {
  color: #39da8a;
}

.dark-style .content-post ol li::marker {
  color: #39da8a;
  font-weight: 600;
}

/* Таблицы - тёмная тема */
.dark-style .content-post table {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-style .content-post table th {
  background-color: rgba(255, 255, 255, 0.08);
  color: #d2d8e3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-style .content-post table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #92a2bc;
}

.dark-style .content-post table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Цитаты - тёмная тема */
.dark-style .content-post blockquote {
  background-color: rgba(57, 218, 138, 0.1);
  color: #d2d8e3;
}

.dark-style .content-post blockquote cite {
  color: #92a2bc;
}

/* Код - тёмная тема */
.dark-style .content-post code {
  background-color: rgba(255, 255, 255, 0.1);
  color: #39da8a;
}

.dark-style .content-post pre {
  background-color: #1a1f2c;
  color: #e2e8f0;
}

/* HR - тёмная тема */
.dark-style .content-post hr {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Figcaption - тёмная тема */
.dark-style .content-post figcaption {
  color: #92a2bc;
}

/* Ссылки - тёмная тема */
.dark-style .content-post a {
  color: #39da8a;
}

.dark-style .content-post a:hover {
  border-bottom-color: #39da8a;
}

/*
* Quiz Widget Styles
* Виджет теста/опроса
******************************************************************************/

.quiz-widget .quiz-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: #00ab55;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-widget .quiz-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.quiz-widget .quiz-question {
  padding: 1rem 1.25rem;
  transition: background-color 0.2s ease;
}

.quiz-widget .quiz-question:last-child {
  border-bottom: none !important;
}

.quiz-widget .quiz-question-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quiz-widget .quiz-question.answered-yes .quiz-question-number {
  background: #00ab55 !important;
  color: #fff !important;
}

.quiz-widget .quiz-question.answered-no .quiz-question-number {
  background: #ff5b5c !important;
  color: #fff !important;
}

.quiz-widget .quiz-btn-group .btn {
  min-width: 60px;
  font-weight: 500;
}

.quiz-widget .quiz-btn-group .btn.active-yes {
  background-color: #00ab55 !important;
  border-color: #00ab55 !important;
  color: #fff !important;
}

.quiz-widget .quiz-btn-group .btn.active-no {
  background-color: #ff5b5c !important;
  border-color: #ff5b5c !important;
  color: #fff !important;
}

.quiz-widget .quiz-progress {
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.quiz-widget .quiz-progress-bar {
  height: 100%;
  background: #00ab55;
  transition: width 0.3s ease;
}

/* ========================================
   QUIZ - LIGHT STYLE
   ======================================== */

.light-style .quiz-widget .quiz-question {
  border-bottom: 1px solid rgba(38, 60, 85, 0.08);
}

.light-style .quiz-widget .quiz-question:hover {
  background-color: rgba(38, 60, 85, 0.02);
}

.light-style .quiz-widget .quiz-question.answered-yes {
  background-color: rgba(0, 171, 85, 0.06);
}

.light-style .quiz-widget .quiz-question.answered-no {
  background-color: rgba(255, 91, 92, 0.06);
}

.light-style .quiz-widget .quiz-question-number {
  background: rgba(38, 60, 85, 0.1);
  color: #516377;
}

.light-style .quiz-widget .quiz-progress {
  background: rgba(38, 60, 85, 0.1);
}

.light-style .quiz-widget .quiz-question-text {
  color: #516377;
}

/* ========================================
   QUIZ - DARK STYLE
   ======================================== */

.dark-style .quiz-widget .quiz-icon {
  background: linear-gradient(135deg, #00ab55 0%, #39da8a 100%);
}

.dark-style .quiz-widget .quiz-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-style .quiz-widget .quiz-question:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.dark-style .quiz-widget .quiz-question.answered-yes {
  background-color: rgba(57, 218, 138, 0.1);
}

.dark-style .quiz-widget .quiz-question.answered-no {
  background-color: rgba(255, 91, 92, 0.1);
}

.dark-style .quiz-widget .quiz-question-number {
  background: rgba(255, 255, 255, 0.1);
  color: #d2d8e3;
}

.dark-style .quiz-widget .quiz-progress {
  background: rgba(255, 255, 255, 0.1);
}

.dark-style .quiz-widget .quiz-question-text {
  color: #d2d8e3;
}

/*
* Radio Widget Styles
* Виджет радио Бизнес ФМ
******************************************************************************/

.radio-widget {
  position: fixed;
  bottom: 15%;
  right: 0;
  z-index: 1000;
}

.radio-widget__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem 0 0 0.5rem;
  cursor: pointer;
  transition: all 0.35s ease;
}

.radio-widget__btn:hover {
  transform: translateY(-2px);
}

.radio-widget__btn:active {
  transform: translateY(0);
}

.radio-widget__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 171, 85, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.radio-widget__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.radio-widget__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.radio-widget__status {
  font-size: 8px;
  opacity: 0.8;
}

.radio-widget__wave {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 20px;
  width: 100%;
  padding: 0 3px;
  margin-top: 0.5rem;
}

.radio-widget__wave span {
  width: 2px;
  min-height: 6px;
  border-radius: 2px;
  animation: radioWave 1s ease-in-out infinite;
}

.radio-widget__wave span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.radio-widget__wave span:nth-child(2) {
  height: 16px;
  animation-delay: 0.1s;
}

.radio-widget__wave span:nth-child(3) {
  height: 12px;
  animation-delay: 0.2s;
}

.radio-widget__wave span:nth-child(4) {
  height: 20px;
  animation-delay: 0.3s;
}

.radio-widget__wave span:nth-child(5) {
  height: 14px;
  animation-delay: 0.4s;
}

.radio-widget__wave span:nth-child(6) {
  height: 18px;
  animation-delay: 0.5s;
}

.radio-widget__wave span:nth-child(7) {
  height: 10px;
  animation-delay: 0.6s;
}

.radio-widget__btn.playing .radio-widget__wave {
  display: flex;
}

@keyframes radioWave {
  0%,
  100% {
    transform: scaleY(0.25);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Мобильная версия */
@media (max-width: 480px) {
  .radio-widget {
    bottom: 20%;
  }

  .radio-widget__btn {
    padding: 0.35rem;
    gap: 0.5rem;
  }

  .radio-widget__icon {
    width: 24px;
    height: 24px;
  }

  .radio-widget__icon svg {
    width: 12px;
    height: 12px;
  }

  .radio-widget__status {
    font-size: 7px;
  }
}

/* ========================================
   RADIO - LIGHT STYLE
   ======================================== */

.light-style .radio-widget__btn {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: #516377;
  box-shadow: 0 4px 15px rgba(38, 60, 85, 0.15);
}

.light-style .radio-widget__btn:hover {
  box-shadow: 0 6px 20px rgba(38, 60, 85, 0.25);
}

.light-style .radio-widget__btn.playing {
  background: linear-gradient(135deg, #00ab56c6 0%, #39da89a3 100%);
  color: #fff;
}

.light-style .radio-widget__icon {
  background: rgba(0, 171, 85, 0.15);
  color: #00ab55;
}

.light-style .radio-widget__btn.playing .radio-widget__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.light-style .radio-widget__wave span {
  background: rgba(38, 60, 85, 0.3);
}

.light-style .radio-widget__btn.playing .radio-widget__wave span {
  background: rgba(255, 255, 255, 0.5);
}

@keyframes radioWaveLightPlaying {
  0%,
  100% {
    transform: scaleY(0.25);
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
  }
}

/* ========================================
   RADIO - DARK STYLE
   ======================================== */

.dark-style .radio-widget__btn {
  background: rgba(40, 55, 79, 0.9);
  backdrop-filter: blur(10px);
  color: #d2d8e3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-style .radio-widget__btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.dark-style .radio-widget__btn.playing {
  background: linear-gradient(135deg, #00ab56c6 0%, #39da89a3 100%);
  color: #fff;
}

.dark-style .radio-widget__icon {
  background: rgba(57, 218, 138, 0.2);
  color: #39da8a;
}

.dark-style .radio-widget__btn.playing .radio-widget__icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dark-style .radio-widget__wave span {
  background: rgba(255, 255, 255, 0.3);
}

.dark-style .radio-widget__btn.playing .radio-widget__wave span {
  background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Additional Styles
   ======================================== */

.img-post {
  min-height: 240px;
  max-width: 100%;
  object-fit: cover;
}

.content-post img {
  max-width: 100% !important;
  border-radius: 0.5rem;
  margin-block: 1rem;
}

.noty-row {
  cursor: pointer;
}

.preview-icon {
  cursor: pointer;
}

.preview-img {
  display: none;
  position: fixed;
  width: 200px;
  border: 1px solid #ededed;
  border-radius: 5px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}


@media (max-width: 768px) {
    .app-chat .app-chat-history .chat-history-body {
        padding: 0.5rem 0.5rem!important;
    }

    .app-chat .app-chat-history .chat-history-footer {
        margin: unset!important;
    }
    .app-chat .app-chat-history .chat-history-header {
        padding: 0.5rem 0.5rem!important;
    }
    .app-chat .app-chat-history .chat-history .chat-message.chat-message-right .chat-message-text {
        background-color: var(--bs-gray-dark) !important
    }
    .app-chat .sidebar-body .chat-contact-list li.active {
        background-color: var(--bs-gray-dark) !important;
    }

}
