main {
    padding-top: calc(var(--header-height, 60px) + 10px);
}

#header {
    --header-height: 80px;
}

.dataTables_paginate .paginate_button {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 5px;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Стилизация DataTables под Front */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #495057;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    margin: 0 4px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    color: white !important;
    border-radius: 5px;
}

/* ======= LEAFLET MAP STYLING ======= */

/* Вспомогательный класс для выравнивания текста */
.align-right {
    text-align: right;
}

/* Общий стиль для лейблов на карте */
.label_content, .hub_label {
    position: relative;
    border-radius: 3px;
    padding: 4px 6px;
    color: #ffffff;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
    width: auto;
    min-width: 48px;
    max-width: 120px;
    white-space: nowrap;
}

/* Лейбл самолета */
.label_content {
    background-color: var(--bs-danger) !important;
    /* Принудительное применение цвета */
    color: #fff !important;
    /* Белый текст */
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    min-width: 50px;
    max-width: 80px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Лейбл аэропорта (хаб) */
.hub_label {
    background-color: var(--bs-primary) !important;
    /* Принудительный цвет */
    color: #fff !important;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    min-width: 50px;
    max-width: 80px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Исправление наследуемых стилей */
.label_content span,
.hub_label span {
    display: block;
    white-space: nowrap;
}

/* Отключаем ненужный after-элемент */
.label_content:after {
    display: none;
}

/* Попапы на карте */
.leaflet-popup-content {
    font-size: 14px;
    line-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.leaflet-popup-content div {
    margin-bottom: 10px;
}

.plane-icon img {
    filter: drop-shadow(0px 0px 2px white) drop-shadow(0px 0px 5px white);
}


/* Пунктирная линия для предполагаемого маршрута */
.planned-flight-path {
    stroke-dasharray: 10, 5;
    stroke-dashoffset: 0;
    opacity: 0.4;
}

.actual-flight-path {
    stroke-width: 3px;
    stroke: #0FA2D2;
    animation: light-move 2s linear infinite;
    filter: drop-shadow(0px 0px 5px rgba(15, 162, 210, 0.9));
    /* Эффект свечения */
}

/* ======= SCROLLABLE CONTAINERS ======= */

/* Стили для логов полетов */
.flightlog, .activity-history {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-gray-500) var(--bs-gray-300);
    /* Цвета скролла */
}

/* Увеличенная высота для истории активности */
.activity-history {
    max-height: 300px;
}

/* Стилизация скролла */
.flightlog::-webkit-scrollbar, .activity-history::-webkit-scrollbar {
    width: 6px;
}

.flightlog::-webkit-scrollbar-thumb, .activity-history::-webkit-scrollbar-thumb {
    background: var(--bs-gray-500);
    border-radius: 3px;
}

.flightlog::-webkit-scrollbar-track, .activity-history::-webkit-scrollbar-track {
    background: var(--bs-gray-300);
    border-radius: 3px;
}

#map {
    height: 600px;
    margin-bottom: 20px;
    z-index: 0 !important;
}

@keyframes glow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}