.feature-icon {
    font-size: 3rem;
}

.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.table-responsive {
    border-radius: 0.375rem;
}

.btn-action {
    margin: 0 2px;
}

/* Предотвращение перетаскивания модальных окон */
.modal,
.modal-dialog,
.modal-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Разрешаем выбор текста в полях ввода */
.modal input,
.modal textarea,
.modal select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Предотвращаем перетаскивание изображений и других элементов в модальных окнах */
.modal img,
.modal * {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Убираем курсор перемещения для модальных окон */
.modal-content {
    cursor: default !important;
}

.modal-header,
.modal-body,
.modal-footer {
    cursor: default !important;
}

/* Разрешаем нормальный курсор для интерактивных элементов */
.modal button,
.modal input,
.modal textarea,
.modal select,
.modal a {
    cursor: pointer !important;
}

.modal input[type="text"],
.modal input[type="number"],
.modal input[type="email"],
.modal input[type="password"],
.modal textarea {
    cursor: text !important;
}

/* Стили для Telegram Mini App - исправление цветов меню */
body.telegram-webapp {
    background: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
}

body.telegram-webapp .navbar {
    background: var(--tg-theme-secondary-bg-color, #f0f0f0) !important;
    border-bottom: 1px solid var(--tg-theme-hint-color, rgba(0, 0, 0, 0.1));
}

/* Исправление цветов меню для Telegram Mini App */
body.telegram-webapp .navbar .navbar-brand,
body.telegram-webapp .navbar .nav-link {
    color: var(--tg-theme-text-color, #000000) !important;
}

body.telegram-webapp .navbar .nav-link:hover,
body.telegram-webapp .navbar .nav-link:focus {
    color: var(--tg-theme-link-color, #0088cc) !important;
}

body.telegram-webapp .navbar .nav-link.active {
    color: var(--tg-theme-link-color, #0088cc) !important;
    font-weight: 600;
}

body.telegram-webapp .navbar .navbar-toggler {
    border-color: var(--tg-theme-text-color, #000000);
}

body.telegram-webapp .navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Иконки уведомлений и чата */
body.telegram-webapp .navbar .notification-icon svg,
body.telegram-webapp .navbar .chat-icon svg {
    fill: var(--tg-theme-text-color, #000000) !important;
}

/* Скрытие контента при открытом чате в Telegram Mini App */
body.telegram-webapp[data-chat-open="true"] nav,
body.telegram-webapp[data-chat-open="true"] main,
body.telegram-webapp[data-chat-open="true"] footer {
    display: none !important;
}

body.telegram-webapp[data-chat-open="true"] {
    overflow: hidden !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Стили для заголовков полей в формах конкурентов */
#reportTabsContent .form-label {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#reportTabsContent .card.bg-light .form-label {
    color: #0a58ca;
}

/* Улучшенные стили для чередующихся карточек конкурентов */
#reportTabsContent .card.bg-light {
    background-color: #e9ecef !important;
    border: 1px solid #dee2e6;
}

#reportTabsContent .card.bg-light .card-body {
    background-color: #e9ecef;
}

#reportTabsContent .card:not(.bg-light) {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

#reportTabsContent .card:not(.bg-light) .card-body {
    background-color: #ffffff;
}

/* Стили для выпадающего списка компаний */
#company {
    border: 2px solid #0d6efd;
    font-weight: 500;
    font-size: 1rem;
}

#company:focus {
    border-color: #0a58ca;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

#company option {
    background-color: #ffffff;
    color: #212529;
    padding: 10px;
    font-size: 1rem;
}

#company option:checked {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    font-weight: 600;
}

#company option:hover {
    background-color: #e7f1ff;
    color: #0d6efd;
}

#company option:first-child {
    color: #6c757d;
    font-style: italic;
    background-color: #f8f9fa;
}

/* Стили для даты обновления в заголовке карточки конкурента */
#reportTabsContent .card-header small {
    background-color: #28a745;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

#reportTabsContent .card-header.bg-secondary small {
    background-color: #198754;
    color: #ffffff !important;
}

/* Стили для значка тарифного плана */
.tariff-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    line-height: 1.2;
    vertical-align: middle;
}

.tariff-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

.tariff-badge.badge-sm {
    font-size: 0.65rem;
    padding: 3px 8px;
    letter-spacing: 0.3px;
}

.tariff-badge.badge-md {
    font-size: 0.8rem;
    padding: 5px 12px;
    letter-spacing: 0.5px;
}

.tariff-badge.badge-lg {
    font-size: 0.9rem;
    padding: 6px 14px;
    letter-spacing: 0.6px;
}

/* Значок тарифа в навигации */
.navbar .tariff-badge {
    margin-left: 0;
    margin-right: 0;
}

.navbar-nav .nav-item .tariff-badge {
    display: inline-block;
    margin: 0;
    cursor: default;
}

/* Ссылка со значком тарифа */
.navbar-nav .nav-item a[href*="tariff.php"] {
    text-decoration: none;
    display: inline-block;
}

.navbar-nav .nav-item a[href*="tariff.php"]:hover .tariff-badge {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Адаптация для темной навигации */
.navbar-dark .tariff-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Адаптация для светлой навигации (Telegram) */
body.telegram-webapp .navbar .tariff-badge {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Плитка тарифа на странице настроек */
.tariff-card {
    border: 2px solid;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tariff-card .tariff-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tariff-card .tariff-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tariff-card .tariff-price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Таблица тарифов */
.tariff-table {
    width: 100%;
    border-collapse: collapse;
}

.tariff-table th,
.tariff-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.tariff-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.tariff-table tr:hover {
    background-color: #f8f9fa;
}

/* Современные стили для главной страницы и изображений */
.hero-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 30px rgba(13, 110, 253, 0.2));
}

.hero-image img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 15px 40px rgba(13, 110, 253, 0.3));
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

/* Улучшенные карточки с градиентами и тенями */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.15);
}

.card-body {
    padding: 2rem;
}

/* Улучшенные иконки */
.feature-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Современные кнопки */
.btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.3);
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
    .hero-image img {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
}

