/* Общие стили */
body {
  padding-top: 57px;
  font-family: 'Nunito', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme {
  background-color: #ffffff;
  color: #333;
}

a {
  text-decoration: none !important;
}

/* Шапка сайта */
.navbar {
  background-color: #1e1e1e;
  border-bottom: 1px solid #333;
}

body.light-theme .navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.navbar-brand,
.nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

body.light-theme .navbar-brand,
body.light-theme .nav-link {
  color: #333 !important;
}

.navbar-brand:hover,
.nav-link:hover {
  color: #bbdefb !important;
}

body.light-theme .navbar-brand:hover,
body.light-theme .nav-link:hover {
  color: #007bff !important;
}

/* Фиксированная шапка сайта */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

body.dark-theme .fixed-top {
  background-color: #343a40;
}

body.light-theme .fixed-top {
  background-color: #ffffff;
}

/* Основная часть сайта */
.feature-box {
  background-color: #1e1e1e;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .feature-box {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #333;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Карусель */
.carousel-inner {
  overflow: visible;
}

.carousel-item {
  padding: 10px 0;
}

.carousel-item.active {
  overflow-x: hidden;
}

body.no-scroll {
  overflow-x: hidden;
}

.carousel.sliding {
  overflow-x: hidden;
}

/* Иконки и медиа */
.feature-icon {
  font-size: 3rem;
  color: #2196f3;
  margin-bottom: 15px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e1e1e, #2c3e50);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

body.light-theme .hero-section {
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  color: #333;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Кнопки */
.btn-primary {
  background-color: #2196f3;
  border-color: #2196f3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #1976d2;
  border-color: #1976d2;
}

.btn-warning {
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Футер */
footer {
  background-color: #121212;
  color: #e0e0e0;
  padding: 20px 0;
  text-align: center;
}

body.light-theme footer {
  background-color: #f8f9fa;
  color: #333;
}

footer a {
  color: #bbdefb;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

body.light-theme footer a {
  color: #007bff;
}

/* Формы */
.registration-form, .contact-form, .login-form {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

body.light-theme .registration-form,
body.light-theme .contact-form,
body.light-theme .login-form {
  background-color: #ffffff;
  color: #333;
}

.registration-form h2, .contact-form h3, .login-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .registration-form h2,
body.light-theme .contact-form h3,
body.light-theme .login-form h2 {
  color: #333;
}

.form-control::placeholder {
  color: #ddd;
  opacity: 1;
  transition: color 0.3s ease;
}

body.light-theme .form-control::placeholder {
  color: #6c757d;
}

.registration-form label, .contact-form label, .login-form label {
  color: #bbdefb;
  transition: color 0.3s ease;
}

body.light-theme .registration-form label,
body.light-theme .contact-form label,
body.light-theme .login-form label {
  color: #333;
}

.registration-form .form-control, .contact-form .form-control, .login-form .form-control {
  background-color: #333;
  border: 1px solid #444;
  color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .registration-form .form-control,
body.light-theme .contact-form .form-control,
body.light-theme .login-form .form-control {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
}

.registration-form .form-control:focus, .contact-form .form-control:focus, .login-form .form-control:focus {
  background-color: #333;
  border-color: #2196f3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

body.light-theme .registration-form .form-control:focus,
body.light-theme .contact-form .form-control:focus,
body.light-theme .login-form .form-control:focus {
  background-color: #f8f9fa;
  border-color: #2196f3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.5);
}

.registration-form .btn-primary, .contact-form .btn-primary, .login-form .btn-primary {
  width: 100%;
  background-color: #2196f3;
  border-color: #2196f3;
}

.registration-form .btn-primary:hover, .contact-form .btn-primary:hover, .login-form .btn-primary:hover {
  background-color: #1976d2;
  border-color: #1976d2;
}

/* Контактная форма */
.contact-form {
  max-width: 600px;
}

/* Раздел поддержки */
.support-section {
  background-color: #1e1e1e;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

body.light-theme .support-section {
  background-color: #edf5ee;
  color: #333;
}

.support-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.support-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.support-section .btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
}

.support-section .btn-outline-light:hover {
  background-color: #ffffff;
  color: #1e1e1e;
}

/* Раздел для правообладателей */
.rights-section {
  padding: 40px 20px;
  text-align: left;
}

.rights-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .rights-section h2 {
  color: #333;
}

.rights-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

body.light-theme .rights-section p {
  color: #333;
}

/* Контент страницы */
.contact-section {
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .contact-section h2 {
  color: #333;
}

.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

body.light-theme .contact-section p {
  color: #333;
}

.contact-info {
  margin-bottom: 40px;
}

.contact-info i {
  font-size: 2rem;
  color: #2196f3;
  margin-right: 10px;
}

#contactForm {
  text-align: left;
}

/* Раздел с пакетами */
.packages-section {
  padding: 60px 20px;
  text-align: center;
}

.packages-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .packages-section h2 {
  color: #333;
}

.packages-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

body.light-theme .packages-section p {
  color: #333;
}

/* Карточки тарифов */
.package-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .package-card {
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.package-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .package-card h3 {
  color: #333;
}

.package-card .price {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2196f3;
}

.package-card .channels {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #bbdefb;
}

.package-card .features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.package-card .features li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

body.light-theme .package-card .channels,
body.light-theme .package-card .features li {
  color: #333;
}

/* Блок статуса подписки */
.subscription-status {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  margin-bottom: 30px;
}

body.light-theme .subscription-status {
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.subscription-status h4 {
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .subscription-status h4 {
  color: #333;
}

.subscription-status .status-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.subscription-status .status-list li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #bbdefb;
  transition: color 0.3s ease;
}

body.light-theme .subscription-status .status-list li {
  color: #333;
}

/* Стили для блоков категорий */
.channel-categories,
.additional-categories {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

body.light-theme .channel-categories,
body.light-theme .additional-categories {
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.channel-categories h4,
.additional-categories h4 {
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .channel-categories h4,
body.light-theme .additional-categories h4 {
  color: #333;
}

.channel-categories .category,
.additional-categories .category {
  margin-bottom: 15px;
}

.channel-categories .form-check-label,
.additional-categories .form-check-label {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #bbdefb;
  transition: color 0.3s ease;
}

body.light-theme .channel-categories .form-check-label,
body.light-theme .additional-categories .form-check-label {
  color: #333;
}

/* Секция личного кабинета */
.user-profile-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #1e1e1e, #2c3e50);
  color: #ffffff;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-theme .user-profile-section {
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
  color: #333;
}

.user-profile-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  transition: color 0.3s ease;
}

body.light-theme .user-profile-section h2 {
  color: #333;
}

/* Информация о пользователе */
.user-info {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

body.light-theme .user-info {
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.user-info h4 {
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .user-info h4 {
  color: #333;
}

.user-info h6 {
  font-size: 1.1rem !important;
}

.user-info .info-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.user-info .info-list li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #bbdefb;
  transition: color 0.3s ease;
}

body.light-theme .user-info .info-list li {
  color: #333;
}

/* Стили для alert в личном кабинете */
.user-profile-section .alert {
  background-color: #1e3a5f;
  border-color: #0d6efd;
  color: #b3d9ff;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .user-profile-section .alert {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.user-profile-section .alert-info {
  background-color: #1e3a5f;
  border-color: #0d6efd;
  color: #b3d9ff;
}

body.light-theme .user-profile-section .alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.user-profile-section .alert-info strong,
.user-profile-section .alert-info #connections_total_cost_display {
  color: #ffffff;
  font-weight: bold;
}

body.light-theme .user-profile-section .alert-info strong,
body.light-theme .user-profile-section .alert-info #connections_total_cost_display {
  color: #0c5460;
}

/* Личный плейлист */
.personal-playlist {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

body.light-theme .personal-playlist {
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.personal-playlist h4 {
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .personal-playlist h4 {
  color: #333;
}

.personal-playlist .playlist-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.personal-playlist .playlist-list li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #bbdefb;
  transition: color 0.3s ease;
}

body.light-theme .personal-playlist .playlist-list li {
  color: #333;
}

/* Реферальная программа */
.referral-program {
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

body.light-theme .referral-program {
  background-color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.referral-program h4 {
  margin-bottom: 15px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .referral-program h4 {
  color: #333;
}

.referral-program .referral-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.referral-program .referral-list li {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #bbdefb;
  transition: color 0.3s ease;
}

body.light-theme .referral-program .referral-list li {
  color: #333;
}

.referral-program .referral-list li strong {
  display: block;
  margin-bottom: 5px;
}

.referral-program .input-group {
  margin-top: 10px;
  margin-bottom: 10px;
}

.referral-program .input-group .form-control {
  background-color: #333;
  border: 1px solid #444;
  color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .referral-program .input-group .form-control {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
}

.referral-program .input-group .form-control:focus {
  background-color: #333;
  border-color: #2196f3;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

body.light-theme .referral-program .input-group .form-control:focus {
  background-color: #ffffff;
  border-color: #2196f3;
  color: #333;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.referral-program .text-success {
  color: #4caf50 !important;
}

body.light-theme .referral-program .text-success {
  color: #28a745 !important;
}

/* Текстовое поле для личного плейлиста */
.personal-playlist textarea {
  background-color: #333;
  border: 1px solid #444;
  color: #ffffff;
  font-family: monospace;
  resize: none;
  margin-bottom: 15px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.light-theme .personal-playlist textarea {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  color: #333;
}

body.light-theme .personal-playlist textarea:focus {
  background-color: #f8f9fa;
  border-color: #2196f3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Toast-уведомления для темной темы */
body:not(.light-theme) .toast {
  background-color: #2a2a2a;
  color: #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body:not(.light-theme) .toast .toast-header {
  background-color: #1e1e1e;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .toast .toast-body {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Toast-уведомления для светлой темы */
body.light-theme .toast {
  background-color: #f8f9fa;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .toast .toast-header {
  background-color: #e9ecef;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .toast .toast-body {
  background-color: #f8f9fa;
  color: #333;
}

/* Общие стили для кнопки закрытия */
.toast .btn-close {
  filter: invert(1);
}

body.light-theme .toast .btn-close {
  filter: none;
}

/* Стили для различных типов уведомлений */
body:not(.light-theme) .toast-success .toast-header {
  background-color: #28a745;
}

body.light-theme .toast-success .toast-header {
  background-color: #d4edda;
  color: #155724;
}

body:not(.light-theme) .toast-danger .toast-header {
  background-color: #dc3545;
}

body.light-theme .toast-danger .toast-header {
  background-color: #f8d7da;
  color: #721c24;
}


/* Раздел политики */
.policy-section {
  padding: 60px 20px;
}

.policy-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .policy-section h2 {
  color: #333;
}

.policy-section h3 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #ffffff;
  transition: color 0.3s ease;
}

body.light-theme .policy-section h3 {
  color: #333;
}

.policy-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e0e0e0;
  transition: color 0.3s ease;
}

body.light-theme .policy-section p {
  color: #333;
}

/* Форма авторизации */
.login-form a {
  color: #2196f3;
  text-decoration: underline;
}

.login-form a:hover {
  color: #1976d2;
}

/* Секция помощи */
.help-section {
  padding: 60px 20px;
}

.help-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  transition: color 0.3s ease;
}

body.light-theme .help-section h2 {
  color: #333;
}

/* Аккордеон */
.accordion-item {
  border: none;
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .accordion-item {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  background-color: #1e1e1e;
  color: #ffffff;
  border: none;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme .accordion-button {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ddd;
}

.accordion-button:hover {
  background-color: #333;
}

body.light-theme .accordion-button:hover {
  background-color: #f8f9fa;
  border-color: #ccc;
}

.accordion-button:not(.collapsed) {
  background-color: #2a5298;
  color: #ffffff;
  border-radius: 0;
}

body.light-theme .accordion-button:not(.collapsed) {
  background-color: #b3e5fc;
  color: #333;
  border-color: #b3e5fc;
}

/* Стили для иконки стрелки в accordion-button в темной теме */
body.dark-theme .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

body.dark-theme .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

.accordion-body {
  background-color: #2a2a2a;
  color: #bbdefb;
  padding: 20px;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0;
}

body.light-theme .accordion-body {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  border-top: none;
}

/* Стили для accordion-body в темной теме (дополнительная специфичность) */
body.dark-theme .accordion-body,
.dark-theme .accordion-body {
  background-color: #2a2a2a !important;
  color: #bbdefb !important;
}

body.dark-theme .accordion-body .bg-light,
.dark-theme .accordion-body .bg-light {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
}

body.dark-theme .accordion-body .list-group,
.dark-theme .accordion-body .list-group {
  background-color: #2a2a2a !important;
}

body.dark-theme .accordion-body .list-group-item,
.dark-theme .accordion-body .list-group-item {
  background-color: #2a2a2a !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .accordion-body .list-group-item:hover,
.dark-theme .accordion-body .list-group-item:hover {
  background-color: #333 !important;
}

/* Стили для accordion-item с border в темной теме */
body.dark-theme .accordion-item.border {
  border-color: #333 !important;
}

body.light-theme .accordion-item.border {
  border-color: #dee2e6 !important;
}

/* Убираем --bs-accordion-bg в темной теме */
body.dark-theme .accordion {
  --bs-accordion-bg: transparent;
}

body.dark-theme .accordion-item {
  --bs-accordion-bg: transparent;
}

/* Стили для кнопки btn-outline-secondary в светлой теме */
.btn-outline-secondary {
  --bs-btn-border-color: #444444;
}

/* Стили для кнопки очистки в темной теме */
body.dark-theme #clearSearch.btn-outline-secondary {
  --bs-btn-border-color: #444444;
}

/* Toast-уведомления */
.toast {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast .toast-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.toast .toast-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Стили для категорий */
.categories-container {
  max-height: 600px;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.category-item {
  margin-bottom: 10px;
  padding: 5px;
  border-bottom: 1px solid #f0f0f0;
}

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

/* Стили для темной темы */
body.dark-theme .categories-container {
  border-color: #444444 !important;
}

body.dark-theme .category-item {
  border-bottom-color: #444444 !important;
}

/* Стили для прокрутки в темной теме */
body.dark-theme .categories-container::-webkit-scrollbar {
  width: 8px;
}

body.dark-theme .categories-container::-webkit-scrollbar-track {
  background: #1e1e1e;
}

body.dark-theme .categories-container::-webkit-scrollbar-thumb {
  background: #444444;
  border-radius: 4px;
}

body.dark-theme .categories-container::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Стили для списка рефералов в темной теме */
body.dark-theme .list-group-item {
  background-color: #1e1e1e !important;
  border-color: #444444 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .list-group-item-action:hover {
  background-color: #2a2a2a !important;
}

.badge {
  font-size: 0.8em;
  padding: 5px 10px;
}

.discount {
  font-size: 0.8em;
  color: #e74c3c;
  font-weight: bold;
}

/* Кнопка переключения темы */
#theme-toggle {
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.3s ease;
}

body.light-theme #theme-toggle {
  color: #333;
}

/* Выравнивание кнопки внутри навигации */
.navbar-nav {
  align-items: center;
}

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

/* Меню-бургер */
.navbar-toggler {
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus {
  border-color: #fff;
}

body.light-theme .navbar-toggler:focus {
  border-color: #000;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  transition: background-image 0.3s ease;
}

body.light-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23333333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Адаптация меню для мобильной версии */
@media (max-width: 991.98px) {
  .navbar-collapse {
    text-align: left;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    color: #ffffff;
    transition: color 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    color: #bbdefb;
  }

  .navbar-nav .nav-link i {
    margin-right: 8px;
  }

  body.light-theme .navbar-nav .nav-link {
    color: #333;
  }

  body.light-theme .navbar-nav .nav-link:hover {
    color: #007bff;
  }
}

/* Стили для активного пункта меню */
.nav-link.active {
  color: #2196f3 !important;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2196f3;
  transition: all 0.3s ease;
}

body.light-theme .nav-link.active {
  color: #1976d2 !important;
}

body.light-theme .nav-link.active::after {
  background-color: #1976d2;
}

/* Стили для мобильной версии активного пункта меню */
@media (max-width: 991.98px) {
  .nav-link.active::after {
    bottom: 0;
    height: 100%;
    width: 3px;
    left: -1rem;
  }
}

/* Стили для страницы пополнения */
.payment-section {
  padding: 3rem 0;
}

.payment-section .card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: #e0e0e0;
}

body.light-theme .payment-section .card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #333;
}

.payment-section .card-header {
  background-color: #2a2a2a;
  border-bottom: 1px solid #333;
  color: #ffffff;
}

body.light-theme .payment-section .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.payment-section .form-control {
  background-color: #333;
  border: 1px solid #444;
  color: #ffffff;
}

body.light-theme .payment-section .form-control {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #333;
}

.payment-section .form-control:focus {
  background-color: #333;
  border-color: #2196f3;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

body.light-theme .payment-section .form-control:focus {
  background-color: #ffffff;
  border-color: #2196f3;
  color: #333;
}

/* Стили для дилерского кабинета */
.dealer-profile-section {
  padding: 3rem 0;
}

.dealer-profile-section .card {
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

body.light-theme .dealer-profile-section .card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #333;
}

.dealer-profile-section .card-header {
  background-color: #2a2a2a;
  border-bottom: 1px solid #333;
  color: #ffffff;
}

body.light-theme .dealer-profile-section .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.dealer-profile-section .card-title {
  color: #ffffff;
  margin-bottom: 1rem;
}

body.light-theme .dealer-profile-section .card-title {
  color: #333;
}

.dealer-profile-section .form-control {
  background-color: #333;
  border: 1px solid #444;
  color: #ffffff;
}

body.light-theme .dealer-profile-section .form-control {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #333;
}

.dealer-profile-section .form-control:focus {
  background-color: #333;
  border-color: #2196f3;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

body.light-theme .dealer-profile-section .form-control:focus {
  background-color: #ffffff;
  border-color: #2196f3;
  color: #333;
}

.dealer-profile-section .table {
  color: #e0e0e0;
}

body.light-theme .dealer-profile-section .table {
  color: #333;
}

.dealer-profile-section .table th {
  border-color: #444;
}

body.light-theme .dealer-profile-section .table th {
  border-color: #ddd;
}

.dealer-profile-section .table td {
  border-color: #444;
}

body.light-theme .dealer-profile-section .table td {
  border-color: #ddd;
}

.dealer-profile-section .btn-outline-secondary {
  color: #e0e0e0;
  border-color: #444;
}

.dealer-profile-section .btn-outline-secondary:hover {
  background-color: #444;
  color: #ffffff;
}

body.light-theme .dealer-profile-section .btn-outline-secondary {
  color: #333;
  border-color: #ddd;
}

body.light-theme .dealer-profile-section .btn-outline-secondary:hover {
  background-color: #ddd;
  color: #333;
}

.dealer-profile-section .badge {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

body.light-theme .dealer-profile-section .badge {
  background-color: #f8f9fa;
  color: #333;
}

.dealer-profile-section .alert {
  background-color: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

body.light-theme .dealer-profile-section .alert {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #333;
}

.dealer-profile-section .alert-success {
  background-color: #1e3a2a;
  border-color: #28a745;
  color: #28a745;
}

body.light-theme .dealer-profile-section .alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.dealer-profile-section .alert-danger {
  background-color: #3a1e1e;
  border-color: #dc3545;
  color: #dc3545;
}

body.light-theme .dealer-profile-section .alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}


.dealer-header { margin-bottom: 2rem; }
.card-user { box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: none; margin-bottom: 1.5rem; }
.card-user .card-body { padding: 1.5rem; }
.card-user .user-email { font-weight: 600; font-size: 1.1rem; }
.card-user .user-status { font-size: 0.95rem; }
.card-user .actions { gap: 0.5rem; }
.card-user .playlist-url { font-size: 0.95rem; }
/* Стиль для кнопок копирования в card-user, но НЕ в input-group */
/* Используем более специфичный селектор, чтобы не затронуть кнопки в input-group */
.card-user .copy-btn:not(.input-group .copy-btn):not(.input-group-sm .copy-btn) { 
  border: none; 
  background: none; 
}
.card-user .copy-btn svg { vertical-align: middle; }

/* Исключаем кнопки в input-group из стиля без границы - более специфичный селектор */
.card-user .input-group .copy-btn,
.card-user .input-group .copy-short-btn,
.card-user .input-group-sm .copy-btn,
.card-user .input-group-sm .copy-short-btn {
  border: 1px solid #28a745 !important;
  background-color: transparent !important;
}

/* Hover эффект для кнопок копирования в input-group */
.card-user .input-group .copy-btn:hover,
.card-user .input-group .copy-short-btn:hover,
.card-user .input-group-sm .copy-btn:hover,
.card-user .input-group-sm .copy-short-btn:hover {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

.card-user .input-group .copy-btn:hover svg,
.card-user .input-group .copy-short-btn:hover svg,
.card-user .input-group-sm .copy-btn:hover svg,
.card-user .input-group-sm .copy-short-btn:hover svg {
  fill: #fff !important;
}
.card-user .badge { font-size: 0.85em; }
.dealer-balance-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: none; }
.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info { min-width: 90px; }

/* Цвет текста для кнопок действий (для всех тем) */
.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.btn-sm,
.btn-warning.btn-sm:hover,
.btn-warning.btn-sm:focus,
.btn-warning.btn-sm:active,
body.light-theme .btn-warning,
body.light-theme .btn-warning:hover,
body.light-theme .btn-warning:focus,
body.light-theme .btn-warning:active,
body.light-theme .btn-warning.btn-sm,
body.light-theme .btn-warning.btn-sm:hover,
body.light-theme .btn-warning.btn-sm:focus,
body.light-theme .btn-warning.btn-sm:active,
body.dark-theme .btn-warning,
body.dark-theme .btn-warning:hover,
body.dark-theme .btn-warning:focus,
body.dark-theme .btn-warning:active,
body.dark-theme .btn-warning.btn-sm,
body.dark-theme .btn-warning.btn-sm:hover,
body.dark-theme .btn-warning.btn-sm:focus,
body.dark-theme .btn-warning.btn-sm:active {
    color: #ffffff !important;
}

.btn-danger,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.btn-sm,
.btn-danger.btn-sm:hover,
.btn-danger.btn-sm:focus,
.btn-danger.btn-sm:active,
body.light-theme .btn-danger,
body.light-theme .btn-danger:hover,
body.light-theme .btn-danger:focus,
body.light-theme .btn-danger:active,
body.light-theme .btn-danger.btn-sm,
body.light-theme .btn-danger.btn-sm:hover,
body.light-theme .btn-danger.btn-sm:focus,
body.light-theme .btn-danger.btn-sm:active,
body.dark-theme .btn-danger,
body.dark-theme .btn-danger:hover,
body.dark-theme .btn-danger:focus,
body.dark-theme .btn-danger:active,
body.dark-theme .btn-danger.btn-sm,
body.dark-theme .btn-danger.btn-sm:hover,
body.dark-theme .btn-danger.btn-sm:focus,
body.dark-theme .btn-danger.btn-sm:active {
    color: #ffffff !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.btn-sm,
.btn-primary.btn-sm:hover,
.btn-primary.btn-sm:focus,
.btn-primary.btn-sm:active,
body.light-theme .btn-primary,
body.light-theme .btn-primary:hover,
body.light-theme .btn-primary:focus,
body.light-theme .btn-primary:active,
body.light-theme .btn-primary.btn-sm,
body.light-theme .btn-primary.btn-sm:hover,
body.light-theme .btn-primary.btn-sm:focus,
body.light-theme .btn-primary.btn-sm:active,
body.dark-theme .btn-primary,
body.dark-theme .btn-primary:hover,
body.dark-theme .btn-primary:focus,
body.dark-theme .btn-primary:active,
body.dark-theme .btn-primary.btn-sm,
body.dark-theme .btn-primary.btn-sm:hover,
body.dark-theme .btn-primary.btn-sm:focus,
body.dark-theme .btn-primary.btn-sm:active {
    color: #ffffff !important;
}

.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.btn-sm,
.btn-success.btn-sm:hover,
.btn-success.btn-sm:focus,
.btn-success.btn-sm:active,
body.light-theme .btn-success,
body.light-theme .btn-success:hover,
body.light-theme .btn-success:focus,
body.light-theme .btn-success:active,
body.light-theme .btn-success.btn-sm,
body.light-theme .btn-success.btn-sm:hover,
body.light-theme .btn-success.btn-sm:focus,
body.light-theme .btn-success.btn-sm:active,
body.dark-theme .btn-success,
body.dark-theme .btn-success:hover,
body.dark-theme .btn-success:focus,
body.dark-theme .btn-success:active,
body.dark-theme .btn-success.btn-sm,
body.dark-theme .btn-success.btn-sm:hover,
body.dark-theme .btn-success.btn-sm:focus,
body.dark-theme .btn-success.btn-sm:active {
    color: #ffffff !important;
}


/* Темная тема */
body.dark-theme {
  background: #121212;
  color: #e0e0e0;
}

body.dark-theme .card {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-theme .card-body {
  color: #e0e0e0;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
  background: #2d2d2d;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
  background: #2d2d2d;
  border-color: #666;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn-light {
  background: #333;
  color: #e0e0e0;
}

body.dark-theme .btn-light:hover {
  background: #444;
}

body.dark-theme .text-muted {
  color: #aaa !important;
}

/* Исправление фона collapse-блока в темной теме */

/* Адаптация input-полей: располагаем их сверху вниз */
.card-user .ajax-form {
  display: flex;
  gap: 0.5rem;
}

.card-user .ajax-form .form-group {
  margin-bottom: 0.5rem;
}

/* Цветовая индикация статуса пользователя */
.user-status {
  font-weight: 500;
}

.user-status.trial {
  color: #ffc107; /* Желтый для пробного периода */
}

.user-status.active {
  color: #28a745; /* Зеленый для активной подписки */
}

.user-status.expired {
  color: #dc3545; /* Красный для просроченной/неактивной */
}


/* Стили для вкладок */
.nav-tabs {
  border-bottom: 1px solid #333;
  margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
  color: #e0e0e0;
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  border-color: #444;
  color: #2196f3;
}

.nav-tabs .nav-link.active {
  color: #2196f3;
  background-color: #1e1e1e;
  border-color: #333 #333 #1e1e1e;
}

.nav-tabs .nav-link.active::after {
  display: none;
}

body.light-theme .nav-tabs {
  border-bottom: 1px solid #ddd;
}

body.light-theme .nav-tabs .nav-link {
  color: #333;
}

body.light-theme .nav-tabs .nav-link:hover {
  border-color: #ddd;
  color: #1976d2;
}

body.light-theme .nav-tabs .nav-link.active {
  color: #1976d2;
  background-color: #ffffff;
  border-color: #ddd #ddd #ffffff;
}

/* Стили для input в личном кабинете */
.personal-playlist input[type="text"],
.personal-playlist input[type="url"] {
  background-color: #333;
  border: 1px solid #444;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: 0.25rem;
  width: 100%;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.personal-playlist input[type="text"]:focus,
.personal-playlist input[type="url"]:focus {
  background-color: #333;
  border-color: #2196f3;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

body.light-theme .personal-playlist input[type="text"],
body.light-theme .personal-playlist input[type="url"] {
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: #333;
}

body.light-theme .personal-playlist input[type="text"]:focus,
body.light-theme .personal-playlist input[type="url"]:focus {
  background-color: #ffffff;
  border-color: #2196f3;
  color: #333;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Стили для вкладок устройств */
.devices-section .nav-tabs {
  margin-bottom: 2rem;
}

.devices-section .tab-content {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-top: none;
  padding: 1.5rem;
  border-radius: 0 0 0.25rem 0.25rem;
}

body.light-theme .devices-section .tab-content {
  background-color: #ffffff;
  border: 1px solid #ddd;
}

/* Стили для вкладок пополнения */
.payment-section .nav-tabs {
  margin-bottom: 2rem;
}

.payment-section .tab-content {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-top: none;
  padding: 1.5rem;
  border-radius: 0 0 0.25rem 0.25rem;
}

body.light-theme .payment-section .tab-content {
  background-color: #ffffff;
  border: 1px solid #ddd;
}

/* Стили для списков в личном кабинете */
.personal-playlist .playlist-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.personal-playlist .playlist-list li {
  background-color: #2a2a2a;
  border: 1px solid #333;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.light-theme .personal-playlist .playlist-list li {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
}

.personal-playlist .playlist-list li:last-child {
  margin-bottom: 0;
}

.personal-playlist .playlist-list .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Стили для кнопок в личном кабинете */
.personal-playlist .btn-group {
  display: flex;
  gap: 0.5rem;
}

.personal-playlist .btn-group .btn {
  flex: 1;
}

.personal-playlist .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.personal-playlist .btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.personal-playlist .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
}

.personal-playlist .btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

/* ========== Стили для дилерского кабинета (dealer.php) ========== */

/* Стили для кнопок действий в дилерском кабинете (для всех тем) */
.dealer-profile-section .btn-warning,
.dealer-profile-section .btn-danger,
.dealer-profile-section .btn-primary,
.dealer-profile-section .btn-success,
.dealer-profile-section .btn-info,
.dealer-profile-section .btn-secondary,
.dealer-profile-section .btn-warning.btn-sm,
.dealer-profile-section .btn-danger.btn-sm,
.dealer-profile-section .btn-primary.btn-sm,
.dealer-profile-section .btn-success.btn-sm,
.dealer-profile-section .btn-info.btn-sm,
.dealer-profile-section .btn-secondary.btn-sm,
.card-user .btn-warning,
.card-user .btn-danger,
.card-user .btn-primary,
.card-user .btn-success,
.card-user .btn-info,
.card-user .btn-secondary,
.card-user .btn-warning.btn-sm,
.card-user .btn-danger.btn-sm,
.card-user .btn-primary.btn-sm,
.card-user .btn-success.btn-sm,
.card-user .btn-info.btn-sm,
.card-user .btn-secondary.btn-sm,
body.light-theme .dealer-profile-section .btn-warning,
body.light-theme .dealer-profile-section .btn-danger,
body.light-theme .dealer-profile-section .btn-primary,
body.light-theme .dealer-profile-section .btn-success,
body.light-theme .dealer-profile-section .btn-info,
body.light-theme .dealer-profile-section .btn-secondary,
body.light-theme .dealer-profile-section .btn-warning.btn-sm,
body.light-theme .dealer-profile-section .btn-danger.btn-sm,
body.light-theme .dealer-profile-section .btn-primary.btn-sm,
body.light-theme .dealer-profile-section .btn-success.btn-sm,
body.light-theme .dealer-profile-section .btn-info.btn-sm,
body.light-theme .dealer-profile-section .btn-secondary.btn-sm,
body.light-theme .card-user .btn-warning,
body.light-theme .card-user .btn-danger,
body.light-theme .card-user .btn-primary,
body.light-theme .card-user .btn-success,
body.light-theme .card-user .btn-info,
body.light-theme .card-user .btn-secondary,
body.light-theme .card-user .btn-warning.btn-sm,
body.light-theme .card-user .btn-danger.btn-sm,
body.light-theme .card-user .btn-primary.btn-sm,
body.light-theme .card-user .btn-success.btn-sm,
body.light-theme .card-user .btn-info.btn-sm,
body.light-theme .card-user .btn-secondary.btn-sm,
body.dark-theme .dealer-profile-section .btn-warning,
body.dark-theme .dealer-profile-section .btn-danger,
body.dark-theme .dealer-profile-section .btn-primary,
body.dark-theme .dealer-profile-section .btn-success,
body.dark-theme .dealer-profile-section .btn-info,
body.dark-theme .dealer-profile-section .btn-secondary,
body.dark-theme .dealer-profile-section .btn-warning.btn-sm,
body.dark-theme .dealer-profile-section .btn-danger.btn-sm,
body.dark-theme .dealer-profile-section .btn-primary.btn-sm,
body.dark-theme .dealer-profile-section .btn-success.btn-sm,
body.dark-theme .dealer-profile-section .btn-info.btn-sm,
body.dark-theme .dealer-profile-section .btn-secondary.btn-sm,
body.dark-theme .card-user .btn-warning,
body.dark-theme .card-user .btn-danger,
body.dark-theme .card-user .btn-primary,
body.dark-theme .card-user .btn-success,
body.dark-theme .card-user .btn-info,
body.dark-theme .card-user .btn-secondary,
body.dark-theme .card-user .btn-warning.btn-sm,
body.dark-theme .card-user .btn-danger.btn-sm,
body.dark-theme .card-user .btn-primary.btn-sm,
body.dark-theme .card-user .btn-success.btn-sm,
body.dark-theme .card-user .btn-info.btn-sm,
body.dark-theme .card-user .btn-secondary.btn-sm {
    color: #ffffff !important;
}

.dealer-profile-section .btn-warning:hover,
.dealer-profile-section .btn-warning:focus,
.dealer-profile-section .btn-warning:active,
.dealer-profile-section .btn-warning.btn-sm:hover,
.dealer-profile-section .btn-warning.btn-sm:focus,
.dealer-profile-section .btn-warning.btn-sm:active,
.dealer-profile-section .btn-danger:hover,
.dealer-profile-section .btn-danger:focus,
.dealer-profile-section .btn-danger:active,
.dealer-profile-section .btn-danger.btn-sm:hover,
.dealer-profile-section .btn-danger.btn-sm:focus,
.dealer-profile-section .btn-danger.btn-sm:active,
.dealer-profile-section .btn-primary:hover,
.dealer-profile-section .btn-primary:focus,
.dealer-profile-section .btn-primary:active,
.dealer-profile-section .btn-primary.btn-sm:hover,
.dealer-profile-section .btn-primary.btn-sm:focus,
.dealer-profile-section .btn-primary.btn-sm:active,
.dealer-profile-section .btn-success:hover,
.dealer-profile-section .btn-success:focus,
.dealer-profile-section .btn-success:active,
.dealer-profile-section .btn-success.btn-sm:hover,
.dealer-profile-section .btn-success.btn-sm:focus,
.dealer-profile-section .btn-success.btn-sm:active,
.dealer-profile-section .btn-info:hover,
.dealer-profile-section .btn-info:focus,
.dealer-profile-section .btn-info:active,
.dealer-profile-section .btn-info.btn-sm:hover,
.dealer-profile-section .btn-info.btn-sm:focus,
.dealer-profile-section .btn-info.btn-sm:active,
.dealer-profile-section .btn-secondary:hover,
.dealer-profile-section .btn-secondary:focus,
.dealer-profile-section .btn-secondary:active,
.dealer-profile-section .btn-secondary.btn-sm:hover,
.dealer-profile-section .btn-secondary.btn-sm:focus,
.dealer-profile-section .btn-secondary.btn-sm:active,
.card-user .btn-warning:hover,
.card-user .btn-warning:focus,
.card-user .btn-warning:active,
.card-user .btn-warning.btn-sm:hover,
.card-user .btn-warning.btn-sm:focus,
.card-user .btn-warning.btn-sm:active,
.card-user .btn-danger:hover,
.card-user .btn-danger:focus,
.card-user .btn-danger:active,
.card-user .btn-danger.btn-sm:hover,
.card-user .btn-danger.btn-sm:focus,
.card-user .btn-danger.btn-sm:active,
.card-user .btn-primary:hover,
.card-user .btn-primary:focus,
.card-user .btn-primary:active,
.card-user .btn-primary.btn-sm:hover,
.card-user .btn-primary.btn-sm:focus,
.card-user .btn-primary.btn-sm:active,
.card-user .btn-success:hover,
.card-user .btn-success:focus,
.card-user .btn-success:active,
.card-user .btn-success.btn-sm:hover,
.card-user .btn-success.btn-sm:focus,
.card-user .btn-success.btn-sm:active,
.card-user .btn-info:hover,
.card-user .btn-info:focus,
.card-user .btn-info:active,
.card-user .btn-info.btn-sm:hover,
.card-user .btn-info.btn-sm:focus,
.card-user .btn-info.btn-sm:active,
.card-user .btn-secondary:hover,
.card-user .btn-secondary:focus,
.card-user .btn-secondary:active,
.card-user .btn-secondary.btn-sm:hover,
.card-user .btn-secondary.btn-sm:focus,
.card-user .btn-secondary.btn-sm:active,
body.light-theme .dealer-profile-section .btn-warning:hover,
body.light-theme .dealer-profile-section .btn-warning:focus,
body.light-theme .dealer-profile-section .btn-warning:active,
body.light-theme .dealer-profile-section .btn-warning.btn-sm:hover,
body.light-theme .dealer-profile-section .btn-warning.btn-sm:focus,
body.light-theme .dealer-profile-section .btn-warning.btn-sm:active,
body.light-theme .dealer-profile-section .btn-danger:hover,
body.light-theme .dealer-profile-section .btn-danger:focus,
body.light-theme .dealer-profile-section .btn-danger:active,
body.light-theme .dealer-profile-section .btn-danger.btn-sm:hover,
body.light-theme .dealer-profile-section .btn-danger.btn-sm:focus,
body.light-theme .dealer-profile-section .btn-danger.btn-sm:active,
body.light-theme .dealer-profile-section .btn-primary:hover,
body.light-theme .dealer-profile-section .btn-primary:focus,
body.light-theme .dealer-profile-section .btn-primary:active,
body.light-theme .dealer-profile-section .btn-primary.btn-sm:hover,
body.light-theme .dealer-profile-section .btn-primary.btn-sm:focus,
body.light-theme .dealer-profile-section .btn-primary.btn-sm:active,
body.light-theme .dealer-profile-section .btn-success:hover,
body.light-theme .dealer-profile-section .btn-success:focus,
body.light-theme .dealer-profile-section .btn-success:active,
body.light-theme .dealer-profile-section .btn-success.btn-sm:hover,
body.light-theme .dealer-profile-section .btn-success.btn-sm:focus,
body.light-theme .dealer-profile-section .btn-success.btn-sm:active,
body.light-theme .dealer-profile-section .btn-info:hover,
body.light-theme .dealer-profile-section .btn-info:focus,
body.light-theme .dealer-profile-section .btn-info:active,
body.light-theme .dealer-profile-section .btn-info.btn-sm:hover,
body.light-theme .dealer-profile-section .btn-info.btn-sm:focus,
body.light-theme .dealer-profile-section .btn-info.btn-sm:active,
body.light-theme .dealer-profile-section .btn-secondary:hover,
body.light-theme .dealer-profile-section .btn-secondary:focus,
body.light-theme .dealer-profile-section .btn-secondary:active,
body.light-theme .dealer-profile-section .btn-secondary.btn-sm:hover,
body.light-theme .dealer-profile-section .btn-secondary.btn-sm:focus,
body.light-theme .dealer-profile-section .btn-secondary.btn-sm:active,
body.light-theme .card-user .btn-warning:hover,
body.light-theme .card-user .btn-warning:focus,
body.light-theme .card-user .btn-warning:active,
body.light-theme .card-user .btn-warning.btn-sm:hover,
body.light-theme .card-user .btn-warning.btn-sm:focus,
body.light-theme .card-user .btn-warning.btn-sm:active,
body.light-theme .card-user .btn-danger:hover,
body.light-theme .card-user .btn-danger:focus,
body.light-theme .card-user .btn-danger:active,
body.light-theme .card-user .btn-danger.btn-sm:hover,
body.light-theme .card-user .btn-danger.btn-sm:focus,
body.light-theme .card-user .btn-danger.btn-sm:active,
body.light-theme .card-user .btn-primary:hover,
body.light-theme .card-user .btn-primary:focus,
body.light-theme .card-user .btn-primary:active,
body.light-theme .card-user .btn-primary.btn-sm:hover,
body.light-theme .card-user .btn-primary.btn-sm:focus,
body.light-theme .card-user .btn-primary.btn-sm:active,
body.light-theme .card-user .btn-success:hover,
body.light-theme .card-user .btn-success:focus,
body.light-theme .card-user .btn-success:active,
body.light-theme .card-user .btn-success.btn-sm:hover,
body.light-theme .card-user .btn-success.btn-sm:focus,
body.light-theme .card-user .btn-success.btn-sm:active,
body.light-theme .card-user .btn-info:hover,
body.light-theme .card-user .btn-info:focus,
body.light-theme .card-user .btn-info:active,
body.light-theme .card-user .btn-info.btn-sm:hover,
body.light-theme .card-user .btn-info.btn-sm:focus,
body.light-theme .card-user .btn-info.btn-sm:active,
body.light-theme .card-user .btn-secondary:hover,
body.light-theme .card-user .btn-secondary:focus,
body.light-theme .card-user .btn-secondary:active,
body.light-theme .card-user .btn-secondary.btn-sm:hover,
body.light-theme .card-user .btn-secondary.btn-sm:focus,
body.light-theme .card-user .btn-secondary.btn-sm:active,
body.dark-theme .dealer-profile-section .btn-warning:hover,
body.dark-theme .dealer-profile-section .btn-warning:focus,
body.dark-theme .dealer-profile-section .btn-warning:active,
body.dark-theme .dealer-profile-section .btn-warning.btn-sm:hover,
body.dark-theme .dealer-profile-section .btn-warning.btn-sm:focus,
body.dark-theme .dealer-profile-section .btn-warning.btn-sm:active,
body.dark-theme .dealer-profile-section .btn-danger:hover,
body.dark-theme .dealer-profile-section .btn-danger:focus,
body.dark-theme .dealer-profile-section .btn-danger:active,
body.dark-theme .dealer-profile-section .btn-danger.btn-sm:hover,
body.dark-theme .dealer-profile-section .btn-danger.btn-sm:focus,
body.dark-theme .dealer-profile-section .btn-danger.btn-sm:active,
body.dark-theme .dealer-profile-section .btn-primary:hover,
body.dark-theme .dealer-profile-section .btn-primary:focus,
body.dark-theme .dealer-profile-section .btn-primary:active,
body.dark-theme .dealer-profile-section .btn-primary.btn-sm:hover,
body.dark-theme .dealer-profile-section .btn-primary.btn-sm:focus,
body.dark-theme .dealer-profile-section .btn-primary.btn-sm:active,
body.dark-theme .dealer-profile-section .btn-success:hover,
body.dark-theme .dealer-profile-section .btn-success:focus,
body.dark-theme .dealer-profile-section .btn-success:active,
body.dark-theme .dealer-profile-section .btn-success.btn-sm:hover,
body.dark-theme .dealer-profile-section .btn-success.btn-sm:focus,
body.dark-theme .dealer-profile-section .btn-success.btn-sm:active,
body.dark-theme .dealer-profile-section .btn-info:hover,
body.dark-theme .dealer-profile-section .btn-info:focus,
body.dark-theme .dealer-profile-section .btn-info:active,
body.dark-theme .dealer-profile-section .btn-info.btn-sm:hover,
body.dark-theme .dealer-profile-section .btn-info.btn-sm:focus,
body.dark-theme .dealer-profile-section .btn-info.btn-sm:active,
body.dark-theme .dealer-profile-section .btn-secondary:hover,
body.dark-theme .dealer-profile-section .btn-secondary:focus,
body.dark-theme .dealer-profile-section .btn-secondary:active,
body.dark-theme .dealer-profile-section .btn-secondary.btn-sm:hover,
body.dark-theme .dealer-profile-section .btn-secondary.btn-sm:focus,
body.dark-theme .dealer-profile-section .btn-secondary.btn-sm:active,
body.dark-theme .card-user .btn-warning:hover,
body.dark-theme .card-user .btn-warning:focus,
body.dark-theme .card-user .btn-warning:active,
body.dark-theme .card-user .btn-warning.btn-sm:hover,
body.dark-theme .card-user .btn-warning.btn-sm:focus,
body.dark-theme .card-user .btn-warning.btn-sm:active,
body.dark-theme .card-user .btn-danger:hover,
body.dark-theme .card-user .btn-danger:focus,
body.dark-theme .card-user .btn-danger:active,
body.dark-theme .card-user .btn-danger.btn-sm:hover,
body.dark-theme .card-user .btn-danger.btn-sm:focus,
body.dark-theme .card-user .btn-danger.btn-sm:active,
body.dark-theme .card-user .btn-primary:hover,
body.dark-theme .card-user .btn-primary:focus,
body.dark-theme .card-user .btn-primary:active,
body.dark-theme .card-user .btn-primary.btn-sm:hover,
body.dark-theme .card-user .btn-primary.btn-sm:focus,
body.dark-theme .card-user .btn-primary.btn-sm:active,
body.dark-theme .card-user .btn-success:hover,
body.dark-theme .card-user .btn-success:focus,
body.dark-theme .card-user .btn-success:active,
body.dark-theme .card-user .btn-success.btn-sm:hover,
body.dark-theme .card-user .btn-success.btn-sm:focus,
body.dark-theme .card-user .btn-success.btn-sm:active,
body.dark-theme .card-user .btn-info:hover,
body.dark-theme .card-user .btn-info:focus,
body.dark-theme .card-user .btn-info:active,
body.dark-theme .card-user .btn-info.btn-sm:hover,
body.dark-theme .card-user .btn-info.btn-sm:focus,
body.dark-theme .card-user .btn-info.btn-sm:active,
body.dark-theme .card-user .btn-secondary:hover,
body.dark-theme .card-user .btn-secondary:focus,
body.dark-theme .card-user .btn-secondary:active,
body.dark-theme .card-user .btn-secondary.btn-sm:hover,
body.dark-theme .card-user .btn-secondary.btn-sm:focus,
body.dark-theme .card-user .btn-secondary.btn-sm:active {
    color: #ffffff !important;
}

/* Стили для модального окна устройств */
.devices-modal .table-responsive {
  max-height: 60vh;
  overflow-y: auto;
}

.devices-modal .btn-group .btn {
  margin: 0 1px;
}

.devices-modal .device-info {
  font-size: 0.875rem;
}

.devices-modal .device-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.devices-modal .device-type svg {
  flex-shrink: 0;
}

/* Предотвращение сжатия при открытии модального окна */
body.modal-open {
  overflow: hidden;
}

.modal {
  z-index: 1055;
}

.modal-backdrop {
  z-index: 1050;
}

/* Стили для модального окна в темной теме */
body.dark-theme .modal-content {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal-header {
  background-color: #1e1e1e !important;
  border-bottom-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal-body {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal-footer {
  background-color: #1e1e1e !important;
  border-top-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal-title {
  color: #e0e0e0 !important;
}

body.dark-theme .modal .form-control,
body.dark-theme .modal .form-select {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal .form-control:focus,
body.dark-theme .modal .form-select:focus {
  background-color: #2d2d2d !important;
  border-color: #80bdff !important;
  color: #e0e0e0 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

body.dark-theme .modal .form-control::placeholder,
body.dark-theme .modal .form-select::placeholder {
  color: #888 !important;
}

body.dark-theme .modal .form-label {
  color: #e0e0e0 !important;
}

body.dark-theme .modal .text-muted {
  color: #aaa !important;
}

body.dark-theme .modal .alert {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}

/* Стили для таблиц в модальных окнах в темной теме */
body.dark-theme .modal .table {
  color: #e0e0e0 !important;
}

body.dark-theme .modal .table thead th {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal .table tbody td {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal .table-striped tbody tr:nth-of-type(odd) {
  background-color: #252525 !important;
}

body.dark-theme .modal .table-striped tbody tr:nth-of-type(even) {
  background-color: #1e1e1e !important;
}

body.dark-theme .modal .table-striped tbody tr:nth-of-type(odd) td {
  background-color: #252525 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal .table-striped tbody tr:nth-of-type(even) td {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal .login-history-table {
  color: #e0e0e0 !important;
}

body.dark-theme .modal .login-history-table thead th {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #ffffff !important;
  font-weight: bold;
}

body.dark-theme .modal .login-history-table tbody td {
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .modal .login-history-table tbody tr:nth-of-type(odd) {
  background-color: #252525 !important;
}

body.dark-theme .modal .login-history-table tbody tr:nth-of-type(even) {
  background-color: #1e1e1e !important;
}

/* Дополнительные стили для модальных окон в темной теме (на случай если класс применяется не к body) */
.dark-theme .modal-content,
body.dark-theme .modal-content {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

.dark-theme .modal-body,
body.dark-theme .modal-body {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

.dark-theme .modal .table,
body.dark-theme .modal .table {
  color: #e0e0e0 !important;
}

.dark-theme .modal .table thead th,
body.dark-theme .modal .table thead th {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #ffffff !important;
}

.dark-theme .modal .table tbody td,
body.dark-theme .modal .table tbody td {
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

.dark-theme .modal .table-striped tbody tr:nth-of-type(odd),
body.dark-theme .modal .table-striped tbody tr:nth-of-type(odd) {
  background-color: #252525 !important;
}

.dark-theme .modal .table-striped tbody tr:nth-of-type(even),
body.dark-theme .modal .table-striped tbody tr:nth-of-type(even) {
  background-color: #1e1e1e !important;
}

body.light-theme .modal-content {
  background-color: #ffffff !important;
  border-color: #dee2e6 !important;
  color: #333 !important;
}

body.light-theme .modal-header {
  background-color: #ffffff !important;
  border-bottom-color: #dee2e6 !important;
  color: #333 !important;
}

body.light-theme .modal-body {
  background-color: #ffffff !important;
  color: #333 !important;
}

body.light-theme .modal-footer {
  background-color: #ffffff !important;
  border-top-color: #dee2e6 !important;
  color: #333 !important;
}

/* Стили для нового интерфейса */
.info-section {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Стили для темной темы - колонки и секции */
body.dark-theme .col-md-6,
body.dark-theme .col-md-3,
body.dark-theme .col-12 {
  background-color: transparent !important;
}

body.dark-theme .info-section {
  background: #1e1e1e !important;
  border: 1px solid #333 !important;
  color: #e0e0e0 !important;
}

body.light-theme .info-section {
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  color: #333 !important;
}

.section-title {
  color: #495057;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

body.dark-theme .section-title {
  color: #e0e0e0 !important;
  border-bottom: 1px solid #444 !important;
}

body.light-theme .section-title {
  color: #495057 !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.info-item {
  margin-bottom: 0.75rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

body.dark-theme .info-label {
  color: #aaa !important;
}

body.light-theme .info-label {
  color: #6c757d !important;
}

.info-value {
  font-size: 0.9rem;
  color: #212529;
}

body.dark-theme .info-value,
body.dark-theme .info-value * {
  color: #e0e0e0 !important;
}

body.light-theme .info-value {
  color: #212529 !important;
}

.actions-section {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
}

body.dark-theme .actions-section {
  background: #1e1e1e !important;
  border: 1px solid #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .actions-section * {
  color: #e0e0e0 !important;
}

body.light-theme .actions-section {
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  color: #333 !important;
}

body.light-theme .actions-section * {
  color: #333 !important;
}

.user-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  font-weight: 500;
  display: inline-block;
  max-width: 200px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
}

.user-status.active {
  background-color: #d1edff;
  color: #0c5460;
}

.user-status.trial {
  background-color: #fff3cd;
  color: #856404;
}

.user-status.expired {
  background-color: #f8d7da;
  color: #721c24;
}

.user-note {
  border-left: 3px solid #007bff;
  background-color: #f8f9fa !important;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Стили для темной темы - блок примечания */
body.dark-theme .user-note,
body.dark-theme .user-note.bg-light {
  background-color: #2d2d2d !important;
  border-left-color: #007bff !important;
  color: #e0e0e0 !important;
}

body.dark-theme .user-note strong,
body.dark-theme .user-note.bg-light strong {
  color: #e0e0e0 !important;
}

body.dark-theme .user-note .text-muted,
body.dark-theme .user-note.bg-light .text-muted {
  color: #aaa !important;
}

/* Стили для темной темы - общий класс bg-light */
body.dark-theme .bg-light {
  background-color: #2d2d2d !important;
  color: #e0e0e0 !important;
}

body.dark-theme .bg-light code,
body.dark-theme .bg-light span {
  color: #e0e0e0 !important;
}

/* Улучшенные кнопки */
.btn-group-sm > .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Быстрые действия */
.btn-group.flex-wrap {
  gap: 0.25rem;
}

.btn-group.flex-wrap > .btn {
  margin-bottom: 0.25rem;
  border-radius: 0.25rem !important;
}

.btn-group.flex-wrap > .btn:not(:last-child) {
  margin-right: 0.25rem;
}

/* Анимация для копирования */
.copy-btn.text-success,
.copy-short-btn.text-success {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
}

/* Убеждаемся, что обе кнопки копирования имеют одинаковый стиль */
.input-group .copy-btn,
.input-group .copy-short-btn {
  border-color: #28a745;
  color: #28a745;
  background-color: transparent;
  transition: all 0.2s ease;
  width: auto;
  min-width: 38px;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group .copy-btn svg,
.input-group .copy-short-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.input-group .copy-btn:hover,
.input-group .copy-short-btn:hover {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

.input-group .copy-btn:hover svg,
.input-group .copy-short-btn:hover svg {
  fill: #fff !important;
}

.input-group .copy-btn:focus,
.input-group .copy-short-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
  border-color: #28a745;
  color: #28a745;
}

.input-group .copy-btn:active,
.input-group .copy-short-btn:active {
  background-color: #218838;
  border-color: #1e7e34;
  color: #fff;
}

/* Для обратной совместимости (если кнопки используются вне input-group) */
.copy-btn,
.copy-short-btn {
  border-color: #28a745;
  color: #28a745;
  background-color: transparent;
  transition: all 0.2s ease;
}

.copy-btn:hover,
.copy-short-btn:hover {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.copy-btn:focus,
.copy-short-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
  border-color: #28a745;
  color: #28a745;
}

.copy-btn:active,
.copy-short-btn:active {
  background-color: #218838;
  border-color: #1e7e34;
  color: #fff;
}

/* Улучшенные поля ввода */
.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Стили для темной темы - поля ввода */
body.dark-theme .form-control,
body.dark-theme .note-input {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}

/* Специфичные стили для поля примечания в дилерском кабинете */
body.dark-theme .form-control.note-input,
body.dark-theme input.note-input,
body.dark-theme .input-group .form-control.note-input,
body.dark-theme .input-group-sm .form-control.note-input,
body.dark-theme .info-value .form-control.note-input,
body.dark-theme .info-value input.note-input,
body.dark-theme .info-value .input-group .form-control.note-input,
body.dark-theme .info-value .input-group-sm .form-control.note-input {
  background-color: #2d2d2d !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .form-control:focus,
body.dark-theme .note-input:focus {
  background-color: #2d2d2d !important;
  border-color: #80bdff !important;
  color: #e0e0e0 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

body.dark-theme .form-control.note-input:focus,
body.dark-theme input.note-input:focus,
body.dark-theme .input-group .form-control.note-input:focus,
body.dark-theme .input-group-sm .form-control.note-input:focus,
body.dark-theme .info-value .form-control.note-input:focus,
body.dark-theme .info-value input.note-input:focus,
body.dark-theme .info-value .input-group .form-control.note-input:focus,
body.dark-theme .info-value .input-group-sm .form-control.note-input:focus {
  background-color: #2d2d2d !important;
  border-color: #80bdff !important;
  color: #e0e0e0 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

body.dark-theme .form-control::placeholder,
body.dark-theme .note-input::placeholder {
  color: #888 !important;
}

body.dark-theme .form-control.note-input::placeholder,
body.dark-theme input.note-input::placeholder,
body.dark-theme .info-value .form-control.note-input::placeholder,
body.dark-theme .info-value input.note-input::placeholder {
  color: #888 !important;
}

/* Стили для светлой темы - поля ввода */
body.light-theme .form-control,
body.light-theme .note-input {
  background-color: #ffffff !important;
  border-color: #ddd !important;
  color: #333 !important;
}

body.light-theme .form-control:focus,
body.light-theme .note-input:focus {
  background-color: #ffffff !important;
  border-color: #80bdff !important;
  color: #333 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .info-section {
    padding: 0.75rem;
  }
  
  .section-title {
    font-size: 0.85rem;
  }
  
  .info-label {
    font-size: 0.75rem;
  }
  
  .info-value {
    font-size: 0.85rem;
  }
  
  .btn-group-sm > .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .user-status {
    max-width: 150px;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-content {
    border-radius: 0.5rem;
  }
  
  .devices-modal .table-responsive {
    max-height: 50vh;
  }
  
  .devices-modal .btn-group {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .devices-modal .btn-group .btn {
    margin: 0;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .categories-container {
    max-height: 250px !important;
  }
  
  .card-user {
    margin-bottom: 1rem;
  }
  
  .user-email {
    font-size: 0.9rem;
    word-break: break-all;
  }
  
  .actions {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .actions .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ========== Стили для страницы устройств (devices.php) ========== */

.content-body {
    background-color: transparent;
    min-height: calc(100vh - 57px);
    padding: 2rem 0;
}

body.dark-theme .content-body {
    background-color: #121212;
    color: #e0e0e0;
}

body.light-theme .content-body {
    background-color: #ffffff;
    color: #333;
}

/* Карточка */
.card {
    border: 1px solid #333;
    background-color: #1e1e1e;
}

body.light-theme .card {
    border: 1px solid #ddd;
    background-color: #ffffff;
}

.card-title {
    color: #e0e0e0;
}

body.light-theme .card-title {
    color: #333;
}

/* Таблица */
.devices-table th {
    border-top: none;
    font-weight: 600;
    color: #e0e0e0;
    background-color: #2d2d2d;
    border-bottom: 2px solid #444;
}

body.light-theme .devices-table th {
    color: #495057;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.devices-table td {
    vertical-align: middle;
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

body.light-theme .devices-table td {
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.devices-table tbody {
    background-color: #1e1e1e !important;
}

.devices-table tbody tr {
    background-color: #1e1e1e !important;
}

body.dark-theme .devices-table tbody {
    background-color: #1e1e1e !important;
}

body.dark-theme .devices-table tbody tr {
    background-color: #1e1e1e !important;
}

body.dark-theme .devices-table tbody td {
    background-color: transparent !important;
}

body.light-theme .devices-table tbody {
    background-color: #ffffff !important;
}

body.light-theme .devices-table tbody tr {
    background-color: #ffffff !important;
}

.badge {
    font-size: 0.75rem;
}

code {
    font-size: 0.85rem;
    background-color: #2d2d2d;
    color: #ff6b6b;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

body.light-theme code {
    background-color: #f8f9fa;
    color: #dc3545;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

body.light-theme .table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Текст */
.text-muted {
    color: #aaa !important;
}

body.light-theme .text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #2196f3 !important;
}

@media (max-width: 768px) {
    .devices-table {
        font-size: 0.85rem;
    }
    
    .devices-table th,
    .devices-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* ========== Стили для личного кабинета (lk.php) ========== */

@keyframes highlight {
  0% { background-color: #fff; }
  50% { background-color: #d4edda; }
  100% { background-color: #fff; }
}

/* Стили для списка каналов */
.channel-card {
  background: #fff;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #dee2e6;
  margin-bottom: 6px;
}

.channel-card:hover {
  background: #f8f9fa;
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.channel-logo-wrapper {
  position: relative;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
}

.channel-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 4px;
}

.channel-logo-placeholder {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  font-size: 1.3rem;
}

.channel-name {
  font-size: 0.95rem;
  color: #212529;
  line-height: 1.3;
}

.channel-card:hover .channel-name {
  color: #007bff;
}

.channel-meta {
  margin-top: 4px;
}

.channel-meta .badge {
  font-size: 0.7rem;
  padding: 3px 7px;
  font-weight: 500;
}

.channel-list-group {
  max-height: 500px;
  overflow-y: auto;
}

/* Красивый скроллбар */
.channel-list-group::-webkit-scrollbar {
  width: 6px;
}

.channel-list-group::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.channel-list-group::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}

.channel-list-group::-webkit-scrollbar-thumb:hover {
  background: #495057;
}

/* Стили для channel-list-group в темной теме */
body.dark-theme .channel-list-group,
.dark-theme .channel-list-group {
  background-color: #2a2a2a !important;
}

body.dark-theme .channel-list-group .list-group-item,
.dark-theme .channel-list-group .list-group-item {
  background-color: #2a2a2a !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .channel-list-group .list-group-item:hover,
.dark-theme .channel-list-group .list-group-item:hover {
  background-color: #333 !important;
}

body.dark-theme .channel-list-group::-webkit-scrollbar-track,
.dark-theme .channel-list-group::-webkit-scrollbar-track {
  background: #1e1e1e !important;
}

body.dark-theme .channel-list-group::-webkit-scrollbar-thumb,
.dark-theme .channel-list-group::-webkit-scrollbar-thumb {
  background: #555 !important;
}

body.dark-theme .channel-list-group::-webkit-scrollbar-thumb:hover,
.dark-theme .channel-list-group::-webkit-scrollbar-thumb:hover {
  background: #666 !important;
}

/* Анимация появления */
.channel-item {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Кнопки копирования */
.btn-copy-category {
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-copy-category:hover {
  background: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
}

/* Адаптивность */
@media (max-width: 768px) {
  .channel-logo-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .channel-logo,
  .channel-logo-placeholder {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .channel-name {
    font-size: 0.85rem;
  }
  
  .channel-meta .badge {
    font-size: 0.65rem;
    padding: 2px 5px;
  }
  
  .btn-copy-category {
    padding: 1px 6px;
    font-size: 0.7rem;
  }
}

/* ========== Стили для страницы тарифов (tarifffs.php) ========== */

.tariff-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 2px solid #dee2e6;
    height: 100%;
}

.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.tariff-card.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    z-index: 10;
}

.price-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
}

.days-badge {
    background: #007bff;
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hd-icon-wrapper {
    display: inline-block;
    animation: pulse-hd 2s ease-in-out infinite;
}

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

/* ========== Стили для страницы оплаты (payment.php) ========== */
/* Стили уже включены в секцию "Стили для страницы тарифов" выше */

/* ========== Стили для страницы buy.php ========== */

/* Стили для темной темы */
.dark-layout .card {
    background-color: #283046 !important;
    color: #fff !important;
}

.dark-layout .card-body {
    background-color: #283046 !important;
    color: #fff !important;
}

.dark-layout .form-control {
    background-color: #161d31 !important;
    border-color: #404656 !important;
    color: #fff !important;
}

.dark-layout .alert-warning {
    background-color: #483d1c !important;
    color: #ffc107 !important;
    border-color: #675d2d !important;
}

.dark-layout .input-group-text {
    background-color: #161d31 !important;
    border-color: #404656 !important;
    color: #fff !important;
}

.dark-layout .badge.bg-light-success {
    background-color: #28544c !important;
    color: #28c76f !important;
}

.dark-layout h4 {
    color: #fff !important;
}

.content-header-title {
    float: none !important;
    text-align: center;
    display: block;
}

.content-header .breadcrumb {
    display: none;
}

/* Стили для светлой темы остаются без изменений */
.card {
    transition: all 0.3s ease;
}

/* Дополнительные стили для кнопок в темной теме */
.dark-layout .btn-outline-primary {
    border-color: #7367f0 !important;
    color: #7367f0 !important;
}

.dark-layout .btn-outline-primary:hover {
    background-color: #7367f0 !important;
    color: #fff !important;
}

/* ========== Стили для страницы новостей ========== */

/* Заголовок страницы */
.news-header {
    text-align: center;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
}

.news-title i {
    color: #0d6efd;
}

/* Пустое состояние */
.news-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.empty-icon {
    font-size: 4rem;
    color: #adb5bd;
}

.empty-text {
    font-size: 1.25rem;
    color: #6c757d;
    margin: 0;
}

/* Карточка новости */
.news-article {
    animation: fadeIn 0.5s ease-in;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.news-body {
    padding: 3rem;
}

/* Содержимое новости */
.news-content {
    word-wrap: break-word;
    line-height: 1.9;
    font-size: 1.1rem;
    color: #2c3e50;
    font-family: 'Nunito', sans-serif;
}

.news-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.news-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.news-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.news-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: #2c3e50;
    line-height: 1.4;
}

.news-content h4, .news-content h5, .news-content h6 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.news-content ul, .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
    line-height: 1.8;
}

.news-content ul li, .news-content ol li {
    margin-bottom: 0.5rem;
}

.news-content ul {
    list-style-type: disc;
}

.news-content ol {
    list-style-type: decimal;
}

.news-content a {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.news-content a:hover {
    color: #0a58ca;
    border-bottom-color: #0a58ca;
}

.news-content strong, .news-content b {
    font-weight: 700;
    color: #1a1a1a;
}

.news-content em, .news-content i {
    font-style: italic;
}

.news-content u {
    text-decoration: underline;
}

.news-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.news-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для новостей */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .news-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .news-body {
        padding: 1.5rem 1.25rem;
    }
    
    .news-content {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .news-content p {
        margin-bottom: 1.25rem;
        text-align: left;
        font-size: 1rem;
    }
    
    .news-content h1 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }
    
    .news-content h2 {
        font-size: 1.35rem;
        margin-top: 1.5rem;
        margin-bottom: 0.875rem;
        line-height: 1.3;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .news-content h4, .news-content h5, .news-content h6 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .news-content ul, .news-content ol {
        margin-bottom: 1.25rem;
        padding-left: 1.75rem;
        line-height: 1.7;
    }
    
    .news-content ul li, .news-content ol li {
        margin-bottom: 0.5rem;
    }
    
    .news-content blockquote {
        padding-left: 1rem;
        margin: 1.25rem 0;
        font-size: 0.95rem;
    }
    
    .news-card {
        border-radius: 15px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-body {
        padding: 1.25rem 1rem;
    }
    
    .news-content {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .news-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .news-content h1 {
        font-size: 1.35rem;
    }
    
    .news-content h2 {
        font-size: 1.25rem;
    }
    
    .news-content h3 {
        font-size: 1.15rem;
    }
    
    .news-content ul, .news-content ol {
        padding-left: 1.5rem;
    }
}

/* Темная тема для новостей */
.dark-theme .news-card {
    background: #1e1e1e;
    border-color: #333;
}

.dark-theme .news-content {
    color: #e0e0e0;
}

.dark-theme .news-content h1,
.dark-theme .news-content h2,
.dark-theme .news-content h3,
.dark-theme .news-content h4,
.dark-theme .news-content h5,
.dark-theme .news-content h6 {
    color: #ffffff;
}

.dark-theme .news-content strong,
.dark-theme .news-content b {
    color: #ffffff;
}

.dark-theme .news-empty-state {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-color: #444;
}

.dark-theme .empty-text {
    color: #adb5bd;
}

/* Дополнительные стили для кнопок действий - гарантированный белый цвет текста */
button.btn-warning,
button.btn-danger,
button.btn-primary,
button.btn-success,
button.btn-info,
button.btn-secondary,
button.btn-warning.btn-sm,
button.btn-danger.btn-sm,
button.btn-primary.btn-sm,
button.btn-success.btn-sm,
button.btn-info.btn-sm,
button.btn-secondary.btn-sm,
body.light-theme button.btn-warning,
body.light-theme button.btn-danger,
body.light-theme button.btn-primary,
body.light-theme button.btn-success,
body.light-theme button.btn-info,
body.light-theme button.btn-secondary,
body.light-theme button.btn-warning.btn-sm,
body.light-theme button.btn-danger.btn-sm,
body.light-theme button.btn-primary.btn-sm,
body.light-theme button.btn-success.btn-sm,
body.light-theme button.btn-info.btn-sm,
body.light-theme button.btn-secondary.btn-sm,
body.dark-theme button.btn-warning,
body.dark-theme button.btn-danger,
body.dark-theme button.btn-primary,
body.dark-theme button.btn-success,
body.dark-theme button.btn-info,
body.dark-theme button.btn-secondary,
body.dark-theme button.btn-warning.btn-sm,
body.dark-theme button.btn-danger.btn-sm,
body.dark-theme button.btn-primary.btn-sm,
body.dark-theme button.btn-success.btn-sm,
body.dark-theme button.btn-info.btn-sm,
body.dark-theme button.btn-secondary.btn-sm {
    color: #ffffff !important;
}

button.btn-warning:hover,
button.btn-warning:focus,
button.btn-warning:active,
button.btn-danger:hover,
button.btn-danger:focus,
button.btn-danger:active,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active,
button.btn-success:hover,
button.btn-success:focus,
button.btn-success:active,
button.btn-info:hover,
button.btn-info:focus,
button.btn-info:active,
button.btn-secondary:hover,
button.btn-secondary:focus,
button.btn-secondary:active,
button.btn-warning.btn-sm:hover,
button.btn-warning.btn-sm:focus,
button.btn-warning.btn-sm:active,
button.btn-danger.btn-sm:hover,
button.btn-danger.btn-sm:focus,
button.btn-danger.btn-sm:active,
button.btn-primary.btn-sm:hover,
button.btn-primary.btn-sm:focus,
button.btn-primary.btn-sm:active,
button.btn-success.btn-sm:hover,
button.btn-success.btn-sm:focus,
button.btn-success.btn-sm:active,
button.btn-info.btn-sm:hover,
button.btn-info.btn-sm:focus,
button.btn-info.btn-sm:active,
button.btn-secondary.btn-sm:hover,
button.btn-secondary.btn-sm:focus,
button.btn-secondary.btn-sm:active,
body.light-theme button.btn-warning:hover,
body.light-theme button.btn-warning:focus,
body.light-theme button.btn-warning:active,
body.light-theme button.btn-danger:hover,
body.light-theme button.btn-danger:focus,
body.light-theme button.btn-danger:active,
body.light-theme button.btn-primary:hover,
body.light-theme button.btn-primary:focus,
body.light-theme button.btn-primary:active,
body.light-theme button.btn-success:hover,
body.light-theme button.btn-success:focus,
body.light-theme button.btn-success:active,
body.light-theme button.btn-warning.btn-sm:hover,
body.light-theme button.btn-warning.btn-sm:focus,
body.light-theme button.btn-warning.btn-sm:active,
body.light-theme button.btn-danger.btn-sm:hover,
body.light-theme button.btn-danger.btn-sm:focus,
body.light-theme button.btn-danger.btn-sm:active,
body.light-theme button.btn-primary.btn-sm:hover,
body.light-theme button.btn-primary.btn-sm:focus,
body.light-theme button.btn-primary.btn-sm:active,
body.light-theme button.btn-success.btn-sm:hover,
body.light-theme button.btn-success.btn-sm:focus,
body.light-theme button.btn-success.btn-sm:active,
body.light-theme button.btn-info:hover,
body.light-theme button.btn-info:focus,
body.light-theme button.btn-info:active,
body.light-theme button.btn-secondary:hover,
body.light-theme button.btn-secondary:focus,
body.light-theme button.btn-secondary:active,
body.light-theme button.btn-info.btn-sm:hover,
body.light-theme button.btn-info.btn-sm:focus,
body.light-theme button.btn-info.btn-sm:active,
body.light-theme button.btn-secondary.btn-sm:hover,
body.light-theme button.btn-secondary.btn-sm:focus,
body.light-theme button.btn-secondary.btn-sm:active,
body.dark-theme button.btn-warning:hover,
body.dark-theme button.btn-warning:focus,
body.dark-theme button.btn-warning:active,
body.dark-theme button.btn-danger:hover,
body.dark-theme button.btn-danger:focus,
body.dark-theme button.btn-danger:active,
body.dark-theme button.btn-primary:hover,
body.dark-theme button.btn-primary:focus,
body.dark-theme button.btn-primary:active,
body.dark-theme button.btn-success:hover,
body.dark-theme button.btn-success:focus,
body.dark-theme button.btn-success:active,
body.dark-theme button.btn-warning.btn-sm:hover,
body.dark-theme button.btn-warning.btn-sm:focus,
body.dark-theme button.btn-warning.btn-sm:active,
body.dark-theme button.btn-danger.btn-sm:hover,
body.dark-theme button.btn-danger.btn-sm:focus,
body.dark-theme button.btn-danger.btn-sm:active,
body.dark-theme button.btn-primary.btn-sm:hover,
body.dark-theme button.btn-primary.btn-sm:focus,
body.dark-theme button.btn-primary.btn-sm:active,
body.dark-theme button.btn-success.btn-sm:hover,
body.dark-theme button.btn-success.btn-sm:focus,
body.dark-theme button.btn-success.btn-sm:active,
body.dark-theme button.btn-info:hover,
body.dark-theme button.btn-info:focus,
body.dark-theme button.btn-info:active,
body.dark-theme button.btn-secondary:hover,
body.dark-theme button.btn-secondary:focus,
body.dark-theme button.btn-secondary:active,
body.dark-theme button.btn-info.btn-sm:hover,
body.dark-theme button.btn-info.btn-sm:focus,
body.dark-theme button.btn-info.btn-sm:active,
body.dark-theme button.btn-secondary.btn-sm:hover,
body.dark-theme button.btn-secondary.btn-sm:focus,
body.dark-theme button.btn-secondary.btn-sm:active {
    color: #ffffff !important;
}
