body,
html {
  width: 100%;
  padding: 0;
}
#app {
  width: 100%;
  height: 100%;
  font-family: "Mulish", Arial, sans-serif;
}
.user-wrapper {
  margin: 0 20px;
}
.main-logo {
  font-size: 2rem;
  color: #109cf1;

  font-weight: 600;
  --a: 130deg;
  transition: --a 0.5s;
  background: linear-gradient(
    var(--a),
    rgba(131, 238, 164, 1) 5%,
    rgba(83, 182, 255, 1) 100%
  );
  animation: logo-gradient-rottation 20s ease-in-out infinite;
}
.qr_code_wrapper {
  text-align: center;
}
.main-logo-image-light {
  filter: brightness(100);
}

.brand-link {
  text-align: center;
}

.main-sidebar .brand-link.main-logo {
  --a: 200deg;
  transition: --a 0.5s;
  background: linear-gradient(
    var(--a),
    rgba(131, 238, 164, 1) 5%,
    rgba(83, 182, 255, 1) 80%
  );
  animation: logo-gradient-rottation 20s ease-in-out infinite;
}

.navbar-button-logo {
  margin: 0 10px;
}
.user-panel img {
  width: 50px;
}

.nav-item-projects {
  background-color: grey;
  border-radius: 11px;
  width: 210px;
}
.nav-item-project-link {
  color: white !important;
  text-align: center;
}
.nav-dropdown-menu {
  width: max-content;
  min-width: 100%;
}

@media (max-width: 767.98px) {
  .nav-dropdown-menu {
    width: 100%;
    min-width: unset;
  }
  .nav-dropdown-link.dropdown-item {
    white-space: normal;
    word-wrap: break-word;
  }
}

.dropdown-item {
  text-align: center !important;
}

.side-item-link {
  margin: 0 20px;
}

.main-sidebar .nav-sidebar .nav-link {
  cursor: pointer;
}

.login-input-fields {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ng-invalid .ui-inputtext {
  border: 1px solid red;
}
.pagination {
  justify-content: end;
}

.content-wrapper {
  margin: 0px auto;
}

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 160deg;
}

.login-page-bb-light {
  --a: 130deg;
  transition: --a 0.5s;
  background: linear-gradient(
    var(--a),
    rgba(131, 238, 164, 1) 20%,
    rgba(83, 182, 255, 1) 80%
  );
  animation: gradient-rottation 20s ease-in-out infinite;
}

.login-logo-bb-light {
  position: absolute;
  left: 3vw;
  top: 3vh;
  filter: brightness(100);
}

.card-outline-bb-light {
  border-top: 3px solid #53b6ff !important;
}
.btn-blue {
  color: #fff !important;
  background-color: #53b6ff !important;
  border-color: #53b6ff !important;
  box-shadow: none !important;
}
@keyframes logo-gradient-rottation {
  0% {
    --a: 200deg;
  }
  50% {
    --a: 130deg;
  }
  100% {
    --a: 200deg;
  }
}
@keyframes gradient-rottation {
  0% {
    --a: 160deg;
  }
  50% {
    --a: 130deg;
  }
  100% {
    --a: 160deg;
  }
}

.loader {
  justify-content: center;
  align-items: center;

  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
  margin: 15px auto;
  position: relative;
  background: #fff;
  box-shadow: -24px 0 #fff, 24px 0 #fff;
  box-sizing: border-box;
  animation: shadowPulse 2s linear infinite;
}

@keyframes shadowPulse {
  33% {
    background: #fff;
    box-shadow: -24px 0 #83eea4, 24px 0 #fff;
  }
  66% {
    background: #83eea4;
    box-shadow: -24px 0 #fff, 24px 0 #fff;
  }
  100% {
    background: #fff;
    box-shadow: -24px 0 #fff, 24px 0 #83eea4;
  }
}

.chat-warning {
  background-color: #ffd700; /* Приятный желтый цвет */
  color: #333; /* Темный текст для контраста */
  padding: 10px 20px;
  position: sticky;
  border-radius: 12px 12px 0 0; /* Скругленные углы */
  font-family: Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 -5px 10px 2px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideUp 0.5s ease-out forwards;
}

.debug-info-p {
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(100%); /* Начало ниже позиции */
    opacity: 0; /* Начальная прозрачность */
  }
  100% {
    transform: translateY(0); /* Конечная позиция */
    opacity: 1; /* Полная видимость */
  }
}

.settings-button-exit {
  cursor: pointer;
}

.settings-window{
  padding-bottom:150px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(
    128,
    128,
    128,
    0.5
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.settings-window-container{
  background-color: white;
  border-radius: 8px;
  width: 300px;
  max-width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.bg-max {
  background: linear-gradient(135deg,
    #1b1f6b,
    #5344ff,
    #ba8fff
  ) !important;
  color: #fff;
}

.fa-max {
  opacity: 0.25;
  height: 80px;
  width: 80px;
  background-image: url("/static/images/max-svg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.mailing-preview-generate-button,
.mailing-preview-parameter-button {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.mailing-preview-generate-button {
  color: #fff !important;
  border: 0;
  background: linear-gradient(135deg, #53b6ff 0%, #83eea4 100%);
  box-shadow: 0 12px 28px rgba(83, 182, 255, 0.28);
}

.mailing-preview-generate-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 16px 32px rgba(83, 182, 255, 0.34);
}

.mailing-preview-generate-button:disabled,
.mailing-preview-parameter-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.mailing-preview-parameter-button {
  min-width: 190px;
}

.mailing-preview-stream-row td {
  border-top: 0;
  padding-top: 0.35rem;
  padding-bottom: 0.85rem;
}

.mailing-preview-row-stream {
  border: 1px solid rgba(83, 182, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.08), rgba(131, 238, 164, 0.1));
  padding: 0.7rem 0.8rem;
}

.mailing-preview-row-stream-hint {
  color: #6c757d;
  font-size: 0.9rem;
}

.mailing-preview-row-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mailing-preview-row-item {
  border-radius: 10px;
  border: 1px solid rgba(83, 182, 255, 0.24);
  background: rgba(83, 182, 255, 0.12);
  padding: 0.55rem 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 1;
  transform: translateY(0);
  animation: mailing-preview-row-rise 0.24s ease-out;
  transition: opacity 0.32s ease;
}

.mailing-preview-row-item.is-depth-0 {
  opacity: 1;
}

.mailing-preview-row-item.is-depth-1 {
  opacity: 0.78;
}

.mailing-preview-row-item.is-depth-2 {
  opacity: 0.56;
}

.mailing-preview-row-item.is-final {
  opacity: 1;
  border-color: rgba(131, 238, 164, 0.45);
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.2), rgba(131, 238, 164, 0.28));
  font-weight: 600;
}

body.dark-mode .mailing-preview-row-stream {
  border-color: rgba(131, 238, 164, 0.25);
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.16), rgba(131, 238, 164, 0.12));
}

body.dark-mode .mailing-preview-row-stream-hint {
  color: rgba(237, 242, 247, 0.78);
}

body.dark-mode .mailing-preview-row-item {
  border-color: rgba(83, 182, 255, 0.35);
  background: rgba(83, 182, 255, 0.2);
  color: #f8fbff;
}

body.dark-mode .mailing-preview-row-item.is-depth-1 {
  opacity: 0.74;
}

body.dark-mode .mailing-preview-row-item.is-depth-2 {
  opacity: 0.5;
}

body.dark-mode .mailing-preview-row-item.is-final {
  border-color: rgba(131, 238, 164, 0.42);
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.28), rgba(131, 238, 164, 0.26));
  color: #ffffff;
}

.mailing-preview-stream-card {
  overflow: hidden;
  border: 1px solid rgba(83, 182, 255, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.mailing-preview-stream-card .card-header {
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.12), rgba(131, 238, 164, 0.18));
  border-bottom: 1px solid rgba(83, 182, 255, 0.12);
}

.mailing-preview-stream-feed {
  min-height: 150px;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.25rem 0;
}

.mailing-preview-stream-item {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(83, 182, 255, 0.18);
  background: rgba(83, 182, 255, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  white-space: pre-wrap;
  word-break: break-word;
  animation: mailing-preview-stream-rise 3.8s ease-out forwards;
}

.mailing-preview-stream-item.is-final {
  animation: none;
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.18), rgba(131, 238, 164, 0.24));
  border-color: rgba(83, 182, 255, 0.28);
  font-weight: 600;
}

body.dark-mode .mailing-preview-stream-card {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(10, 16, 29, 0.96));
  border-color: rgba(131, 238, 164, 0.16);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mailing-preview-stream-card .card-header {
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.18), rgba(131, 238, 164, 0.14));
  border-bottom-color: rgba(131, 238, 164, 0.14);
}

body.dark-mode .mailing-preview-stream-item {
  background: rgba(83, 182, 255, 0.14);
  border-color: rgba(83, 182, 255, 0.22);
  color: #f3f8ff;
}

body.dark-mode .mailing-preview-stream-item.is-final {
  background: linear-gradient(135deg, rgba(83, 182, 255, 0.24), rgba(131, 238, 164, 0.24));
  border-color: rgba(131, 238, 164, 0.26);
  color: #ffffff;
}

@keyframes mailing-preview-stream-rise {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 0.95;
    transform: translateY(-10px) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(-36px) scale(0.98);
  }
}

@keyframes mailing-preview-row-rise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 0.95;
    transform: translateY(0);
  }
}
