@import url('/assets/fontawesome/css/all.min.css');
@import url('/assets/fontawesome/css/duotone.min.css');
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');

@font-face {
  font-family: 'CustomFont';
  src: url('../font/Mars.otf') format('truetype')
}

* {
  font-family: "Onest", sans-serif;
  color: #5c5c5c;
}

h1, .h1 {
  font-family: "CustomFont", sans-serif !important;
}

html[data-bs-theme="dark"] p,
html[data-bs-theme="dark"] div,
html[data-bs-theme="dark"] li,
html[data-bs-theme="dark"] .bg-article {
  color: #6c757d !important;
}

html {
  --sans-serif-font: "Onest", sans-serif;
  --serif-font: "Onest", sans-serif;
  --left-sidebar-width: 212px;
  --right-sidebar-width: 420px;
  --container-width: 1440px;
  --Spacing-0: 0px;
  --Spacing-1: 4px;
  --Spacing-2: 8px;
  --Spacing-3: 16px;
  --Spacing-4: 24px;
  --Spacing-5: 32px;
  --Spacing-6: 48px;
  --Spacing-7: 64px;
  --Radius-1: 4px;
  --Radius-2: 8px;
  --Radius-3: 16px;
  --Radius-4: 24px;
  --Radius-5: 32px;
  --Colors-objects-Text-Text-white: #fff;
  --Colors-objects-Button-Button-large: #642ed8;
  --Colors-objects-Links-links-b: #6024e0;
  --Colors-objects-Tag-Tag-blue-pressed: #5e2ec8;
  --Colors-objects-Tag-Tag-secondar: #f5f5f7;
  --Color-Blue-Blue-30: #c7adff;
  --Colors-objects-Button-Button-small: #e9dfff;
  --Color-Blue-Blue-80: #642ed8;
  --Color-Black-Black-100: #1e1e1e;
  --Colors-objects-Icon-Icon-blue: #6024e0;
  --Color-Black-Black-0: #fff;
  --Color-Black-Black-40: #b8b8b8;
  --Color-Black-Black-60: #d6d6d6;
  --Colors-objects-Button-Button: #6024e0;
  --Color-Yellow-Yellow-20: #ffeeaa;
  --Colors-objects-Border-Border-hover: #6024e0;
  --Color-Blue-Blue-tag: #d6d9ff;
  --Color-Red-Red-border: #ff370a;
  --Color-Red-Red-background: #fff1f0;
  --Colors-objects-background-Surface-primary: #f5f5f7;
  --Colors-objects-background-Surface-secondary: #fff;
  --Colors-objects-Border-Border: #e2e2e8;
  --Colors-objects-Text-Text-primary: #1e1e1e;
  --Colors-objects-Text-Text-secondary: #5c5c5c;
  --Colors-objects-Tooltips-Tooltips: #28292a;
  --Colors-objects-Tag-Tag-primary: #fff;
  --Colors-objects-Tag-Tag-hover: #e6e6e6;
  --Colors-objects-Icon-Icon: #1e1e1e;
  --Colors-objects-Base-Base: #ebecff;
  --Colors-objects-Text-links: #5e2ec8;
  --Color-Violet-Violet-60: #be15e0;
  --Color-Violet-Violet-20: #e299ea;
  --Colors-objects-chenge-deleted-border: #f5b96a;
  --Colors-objects-chenge-deleted-line: #f5b96a;
  --Colors-objects-chenge-added-border: #7dd38b;
  --Colors-objects-chenge-added-line: #b8eec0;
}

html[data-bs-theme="dark"] {
  --Colors-objects-Text-Text-white: #e0e0e0; /* Основной цвет текста */
  --Colors-objects-Button-Button-large: #bb86fc;
  --Colors-objects-Links-links-b: #bb86fc;
  --Colors-objects-Tag-Tag-blue-pressed: #bb86fc;
  --Colors-objects-Tag-Tag-secondar: #333;
  --Color-Blue-Blue-30: #bb86fc;
  --Colors-objects-Button-Button-small: #333;
  --Color-Blue-Blue-80: #bb86fc;
  --Color-Black-Black-100: #e0e0e0;
  --Colors-objects-Icon-Icon-blue: #bb86fc;
  --Color-Black-Black-0: #1e1e1e;
  --Color-Black-Black-40: #b8b8b8;
  --Color-Black-Black-60: #666;
  --Colors-objects-Button-Button: #bb86fc;
  --Color-Yellow-Yellow-20: #ffeeaa;
  --Colors-objects-Border-Border-hover: #bb86fc;
  --Color-Blue-Blue-tag: #333;
  --Color-Red-Red-border: #ff8a80;
  --Color-Red-Red-background: #442222;
  --Colors-objects-background-Surface-primary: #121212;
  --Colors-objects-background-Surface-secondary: #1f1f1f;
  --Colors-objects-Border-Border: #333;
  --Colors-objects-Text-Text-primary: #e0e0e0; /* Цвет основного текста */
  --Colors-objects-Text-Text-secondary: #c2c2c2; /* Вторичный текст */
  --Colors-objects-Tooltips-Tooltips: #28292a;
  --Colors-objects-Tag-Tag-primary: #333;
  --Colors-objects-Tag-Tag-hover: #555;
  --Colors-objects-Icon-Icon: #c2c2c2;
  --Colors-objects-Base-Base: #333;
  --Colors-objects-Text-links: #bb86fc;
  --Color-Violet-Violet-60: #bb86fc;
  --Color-Violet-Violet-20: #4b4b4b;
  --Colors-objects-chenge-deleted-border: #f48fb1;
  --Colors-objects-chenge-deleted-line: #ce93d8;
  --Colors-objects-chenge-added-border: #7dd38b;
  --Colors-objects-chenge-added-line: #7dd38b;
}

a {
  color: #5e2ec8;
}

html[data-bs-theme="dark"] a {
  color: #bb86fc;
}

.result {
  margin-top: 32px;
  padding: 16px;
  background-color: rgba(163, 163, 163, 0.05);
}

html[data-bs-theme="dark"] .result {
  background-color: rgba(163, 163, 163, 0.05);
}

html[data-bs-theme="dark"] .result,
html[data-bs-theme="dark"] .result * {
    color: #6c757d !important;
}

html[data-bs-theme="dark"] .result .btn-secondary {
    color: #fff !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  color: #000;
}

strong {
  font-weight: 600;
}

html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] b,
html[data-bs-theme="dark"] strong {
  color: #c9c9c9; /* Более мягкий цвет для заголовков */
}

h2:not(:first-of-type) {
  margin-top: 40px; /* увеличить отступ между всеми заголовками h2, кроме первого */
}

.bg-article h3,
.bg-article h4,
.bg-article h5,
.bg-article h6 {
  margin-top: 40px; /* увеличить отступ между всеми заголовками h2, кроме первого */
}

.bi {
  color: #5e2ec8;
  font-size: 0.975rem;
  font-weight: 900;
}

html[data-bs-theme="dark"] .bi {
  color: #bb86fc;
}

.bg-card {
  background: #f6f7fb;
}

html[data-bs-theme="dark"] .bg-card {
  background: #272b31;
}

.bg-article {
  background: #ebecff;
}

html[data-bs-theme="dark"] .bg-article {
  background: #1f2227;
}

.btn-secondary {
  --bs-btn-color: #fff !important;
  --bs-btn-bg: #694efb;
  --bs-btn-border-color: #694efb;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #4e1bd9;
  --bs-btn-hover-border-color: #4e1bd9;
  --bs-btn-focus-shadow-rgb: none;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #4e1bd9;
  --bs-btn-active-border-color: #4e1bd9;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #694efb;
  --bs-btn-disabled-border-color: #694efb;
  outline: none !important;
  box-shadow: none !important;
}

/* Удаляем обводку и тень для кнопок */
.btn-secondary {
  outline: none !important; /* Убираем обводку */
  box-shadow: none !important; /* Убираем тени */
  border: 1px solid transparent !important; /* Делаем рамку прозрачной */
}

/* Убираем обводку и тень для состояния :focus */
.btn-secondary:focus, 
.btn-secondary:active, 
.btn-secondary:focus-visible {
  outline: none !important; /* Полностью убираем обводку */
  box-shadow: none !important; /* Убираем тени */
  border: 1px solid transparent !important; /* Прозрачная рамка для совместимости */
}

/* Удаляем внутреннюю обводку для Firefox */
.btn-secondary::-moz-focus-inner {
  border: 0 !important;
}

/* Убираем фокус даже для глобальных стилей */
button:focus, button:active {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
}

/* Удаляем любой стиль для клика */
.btn-secondary:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
}


.feature-icon {
  font-size: 3rem;
  color: #0079db;
  margin-bottom: 1rem;
}

html[data-bs-theme="dark"] .feature-icon {
  color: #80d4ff;
}

.list-unstyled li {
  margin-bottom: .5rem;
}

.custom-text-color {
  color: #0079db;
}

html[data-bs-theme="dark"] .custom-text-color {
  color: #80d4ff;
}

.text-gradient {
  background: radial-gradient(circle, #F48FB1 0%, #CE93D8 20%, #B2EBF2 40%, #A5D6A7 60%, #B39DDB 100%);
  -webkit-background-clip: text;
  color: transparent !important; /* Применение color: transparent независимо от темы */
  background-size: 400%;
  animation: gradient 30s linear infinite alternate;
}

@keyframes gradient {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 100%;
  }
}

/* Прозрачные фоны через rgba() */
.bg-primary-15 {
  background-color: rgba(0, 102, 255, 0.15);
}

html[data-bs-theme="dark"] .bg-primary-15 {
  background-color: rgba(128, 212, 255, 0.15);
}

.bg-indigo-15 {
  background-color: rgba(97, 43, 255, 0.15);
}

html[data-bs-theme="dark"] .bg-indigo-15 {
  background-color: rgba(128, 128, 255, 0.15);
}

.bg-warning-15 {
  background-color: rgba(255, 159, 12, 0.15);
}

html[data-bs-theme="dark"] .bg-warning-15 {
  background-color: rgba(255, 165, 0, 0.15);
}

.bg-info-15 {
  background-color: rgba(14, 179, 255, 0.15);
}

html[data-bs-theme="dark"] .bg-info-15 {
  background-color: rgba(128, 212, 255, 0.15);
}

.bg-green-15 {
  background-color: rgba(27, 136, 53, 0.15);
}

html[data-bs-theme="dark"] .bg-green-15 {
  background-color: rgba(27, 136, 53, 0.15);
}

.bg-red-15 {
  background-color: rgba(223, 20, 20, 0.15);
}

html[data-bs-theme="dark"] .bg-red-15 {
  background-color: rgba(200, 20, 20, 0.15);
}

.bg-pink-15 {
  background-color: rgba(223, 21, 120, 0.15);
}

html[data-bs-theme="dark"] .bg-pink-15 {
  background-color: rgba(223, 21, 120, 0.15);
}

.bg-gray-500-15 {
  background-color: rgba(85, 92, 96, 0.15);
}

html[data-bs-theme="dark"] .bg-gray-500-15 {
  background-color: rgba(85, 92, 96, 0.15);
}

.bg-gray-500-05 {
  background-color: rgba(85, 92, 96, 0.05);
}

html[data-bs-theme="dark"] .bg-gray-500-05 {
  background-color: rgba(85, 92, 96, 0.05);
}

.icon-container {
  width: 55px;
  height: 55px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-container i {
  font-size: 24px;
  max-width: 100%;
  max-height: 100%;
}

.text-primary {
  color: #0066ff !important;
}

html[data-bs-theme="dark"] .text-primary {
  color: #80d4ff !important;
}

.text-indigo {
  color: #612bff !important;
}

html[data-bs-theme="dark"] .text-indigo {
  color: #bb86fc !important;
}

.text-warning {
  color: #ff9f0c !important;
}

html[data-bs-theme="dark"] .text-warning {
  color: #ffb300 !important;
}

.text-info {
  color: #0eb3ff !important;
}

html[data-bs-theme="dark"] .text-info {
  color: #80d4ff !important;
}

.text-green {
  color: #1b8835 !important;
}

html[data-bs-theme="dark"] .text-green {
  color: #66bb6a !important;
}

.text-red {
  color: #df1414 !important;
}

html[data-bs-theme="dark"] .text-red {
  color: #e57373 !important;
}

.text-pink {
  color: #df1578 !important;
}

html[data-bs-theme="dark"] .text-pink {
  color: #f06292 !important;
}

.text-gray-500 {
  color: #555c60 !important;
}

html[data-bs-theme="dark"] .text-gray-500 {
  color: #b0bec5 !important;
}

.text-fiolet {
  color: #694ffa !important;
}

html[data-bs-theme="dark"] .text-fiolet {
  color: #bb86fc !important;
}

button:disabled {
  opacity: 1 !important;
  cursor: not-allowed !important;
  background-color: #694efb !important;
  color: #ffffff !important;
  border-color: #694efb !important;
}

html[data-bs-theme="dark"] button:disabled {
  background-color: #694efb !important;
  color: #ffffff !important;
  border-color: #694efb !important;
}

.loader {
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .loader {
  color: #ffffff !important;
}

blockquote {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid #5e2ec8;
  border-radius: .25rem;
  padding: .75rem 1.25rem;
  margin: 2rem 0 !important;
  color: #5e2ec8;
  gap: 15px;
}

html[data-bs-theme="dark"] blockquote {
  border: 1px solid #bb86fc;
  color: #bb86fc;
}

blockquote i {
  font-size: 1.175rem;
}

blockquote > *:not(:last-child) {
  margin-right: 1rem;
}

h3 {
  padding-top: 1rem;
}

/* Убираем любые обводки, тени и границы у всех элементов формы при фокусе */

/* Убираем обводку и тень у полей ввода и текстовых областей */
.form-control:focus,
.form-select:focus,
.input-group-text:focus,
.custom-select:focus,
.input-group:focus-within {
    box-shadow: none !important; /* Убираем тень */
    outline: none !important; /* Убираем фокусное кольцо */
    border: none !important; /* Убираем границу */
}

/* Убираем обводку, тень и границу у переключателей, чекбоксов и радиокнопок */
.form-check-input:focus,
.form-check-input:checked,
.custom-control-input:focus,
.custom-control-input:checked~.custom-control-label::before {
    box-shadow: none !important; /* Убираем тень */
    outline: none !important; /* Убираем обводку */
    border: none !important; /* Убираем границу */
}

/* Убираем обводку и тень у кнопок */
.btn:focus,
button:focus {
    box-shadow: none !important; /* Убираем тень */
    outline: none !important; /* Убираем обводку */
    border: none !important; /* Убираем границу */
}

/* Убираем обводку у кастомных элементов, включая переключатели и чекбоксы */
.custom-control-input:checked~.custom-control-label::before,
.custom-control-input:focus~.custom-control-label::before {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.form-check-input:checked {
  background-color: #bb86fc; /* Фиолетовый цвет при включении */
  border-color: #bb86fc;
}

.form-check-label {
  margin-left: 0.5rem;
  color: inherit;
}


ul {
  list-style: none !important;
}

ul li {
  padding-left: 24px;
  position: relative;
}

ul li::before {
  content: "—";
  position: absolute;
  left: 0;
}

ol {
  padding-left: 48px; /* Сдвиг всего списка вправо */
}

.list-style-none li { 
  list-style: none !important;
  padding-left: 4px;
}
.list-style-none li::before {
  content: none;
}



.result { cursor: pointer; user-select: all; }

.copy-bubble{
  position: absolute;
  transform: translate(-50%, -110%);
  padding: 8px 10px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;
}

.copy-bubble.show{
  opacity: 1;
  transform: translate(-50%, -130%);
}

.copy-bubble::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,.85);
}
