body {
    padding-top: 62px !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 18px; /* Desktop default */
}

/* Responsive text sizing for mobile */
@media (max-width: 767.98px) {
    body {
        font-size: 15px; /* Mobile text size */
    }
}

/* Headings with Montserrat Bold */
h1, .h1 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 56px; /* Desktop h1 */
}

h2, .h2 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 36px; /* Desktop h2 */
}

h3, h4, h5, h6,
.h3, .h4, .h5, .h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* Mobile heading sizes */
@media (max-width: 767.98px) {
    h1, .h1 {
        font-size: 36px; /* Mobile h1 */
    }

    h2, .h2 {
        font-size: 28px; /* Mobile h2 */
    }
}

/* Brand and important text elements */
.navbar-brand,
.fw-bold,
.font-weight-bold,
strong, b {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* Buttons and interactive elements */
.btn,
button {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 18px; /* Desktop button size */
}

/* Mobile button sizes */
@media (max-width: 767.98px) {
    .btn,
    button {
        font-size: 16px; /* Mobile button size */
    }
}

/* Navigation links */
.nav-link,
.navbar-nav .nav-link {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 18px; /* Desktop menu size */
}

/* Mobile navigation sizes */
@media (max-width: 767.98px) {
    .nav-link,
    .navbar-nav .nav-link {
        font-size: 16px; /* Mobile menu size */
    }
}

/* Form elements */
input, textarea, select,
.form-control, .form-select {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* Card elements typography */
.card-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

.card-text {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* General paragraph text */
p {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem !important; /* Стандартный padding для кнопки переключения */
}

.footer {
    background-color: #f8f9fa;
}
/* Стиль для всех ссылок */
a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Стиль для ссылок при наведении */
a:hover {
    text-decoration: underline;
}

/* Фикс для выпадающего меню */
.dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Ограничиваем ширину контейнера для правой части навигации */
.navbar-collapse-right {
    flex-grow: 0;
}

/* Переносим длинные имена пользователей */
.username-wrap {
    white-space: normal;
    /* max-width: 150px; */
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.navbar-nav .nav-link:focus,
.dropdown-item:focus,
.btn:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #f8f9fa;
    /* Добавьте свои кастомные цвета */
  }

  .theme-icon-active {
    display: inline-block !important;
  }

.select2-container .select2-selection {
    height: 38px !important; /* Важно переопределить стили Select2 */
    line-height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 1px solid #ced4da !important; /* Стилизация под стандартный input Bootstrap */
    border-radius: 0.25rem !important;
    background-color: #fff !important;
}

.select2-container .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 0.75rem !important; /* Отступ слева, как у input Bootstrap */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    right: 0.5rem !important; /* Позиционирование стрелки */
}

/* Стили для кнопок входа и социальных сетей */
.btn-google,
.btn-telegram,
.btn-outline-primary,
#loginSubmitButton,
#signup-form .btn-primary,
.btn-primary {
  background-color: transparent !important;
  border: 1px solid #0d6efd !important;
  color: #0d6efd !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.btn-google:hover,
.btn-telegram:hover,
.btn-outline-primary:hover,
#loginSubmitButton:hover,
#signup-form .btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-primary:focus {
  background-color: rgba(13, 110, 253, 0.1) !important;
  border-color: #0a58ca !important;
  color: #0a58ca !important;
  box-shadow: 0 1px 2px 0 rgba(13, 110, 253, 0.2), 0 1px 3px 1px rgba(13, 110, 253, 0.15) !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Стили для иконок в кнопках */
.btn i.fab {
  font-size: 1.2rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  color: #0d6efd !important;
  text-decoration: none !important;
}

/* Дополнительные стили для кнопки входа */
#loginSubmitButton {
  margin-top: 1rem;
}

/* Стили для кнопок социальных сетей */
.btn-google,
.btn-telegram {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.75rem 1rem !important;
  min-height: 48px !important;
  line-height: 1.5 !important;
  font-size: 1rem !important;
  border-radius: 4px !important;
  max-width: 400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* Выравнивание иконок в кнопках */
.btn-google i,
.btn-telegram i {
  margin-right: 8px !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  width: 20px !important;
  text-align: center !important;
}

/* Выравнивание текста в кнопках */
.btn-google span,
.btn-telegram span {
  display: inline-block !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6c757d transparent transparent transparent !important; /* Цвет стрелки под Bootstrap */
    border-style: solid !important;
    border-width: 0.3em 0.3em 0 0.3em !important;
    height: 0 !important;
    left: 0 !important;
    margin-left: -0.3em !important;
    margin-top: -0.15em !important;
    position: absolute !important;
    top: 50% !important;
    width: 0 !important;
}

.select2-container {
    width: 100% !important; /* Занимает всю доступную ширину родительского контейнера */
}

/* Стили для маленьких кнопок */
.btn-sm {
    font-size: 12px;
    padding: 4px 8px;
    min-height: 28px;
    line-height: 1.4;
}

/* Выравнивание кнопок социальных сетей по левому краю на странице аккаунта */
.account-social-buttons .btn-google,
.account-social-buttons .btn-telegram {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Стили для страницы аккаунта */
.account-email {
    display: flex;
    align-items: center;
    height: 24px;
    line-height: 1;
}

.primary-badge {
    margin-left: 10px;
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    height: 24px;
    text-align: center;
    display: flex;
    align-items: center;
}

.social-account-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.provider-name {
    font-weight: bold;
}

.account-details {
    line-height: 1;
}

.inline-form {
    line-height: 1;
    height: 24px;
    padding: 0;
    margin: 0;
    vertical-align: middle;
}
