/*
*= require bootstrap
*= require_tree .
*= require_self
*= require dataTables/bootstrap/4
*= require select2
*= require select2-bootstrap
*/

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: 'Poppins', sans-serif;
}


.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.fas {
    color: #4a90e2;
}

.btn:not(.btn-link):hover .fas {
    color: white !important;
}


/* Navbar adjustments */
.nav-link:hover {
    color: #4a90e2;
}

.main-navigation {
    background-color: #f8f9fa !important; /* Цвет фона навигации */
    border-bottom: 1px solid #e0e0e0; /* Нижняя граница */
}

.dropdown-menu {
    opacity: 1 !important; /* Меню становится видимым */
    transition: opacity 0s ease, visibility 0s linear 0s; /* Плавное изменение прозрачности */
    /*max-height: none !important;*/
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
}

/* Table compact styling */
.table {
    font-size: 0.875rem;
}

/* Base styling with compact dimensions */
body {
    font-size: 0.875rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}


.modal-content {
    width: auto;
    max-width: 100%;
}

.modal-body {
    white-space: nowrap;
}

input {
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input:focus {
    border-color: #007bff; /* Цвет границы при фокусе */
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.3); /* Тень при фокусе */
    outline: none; /* Убираем стандартное выделение */
}

.loading-indicator {
    display: none; /* Изначально скрыто */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(74, 144, 226, 0.1) !important; /* Фон с прозрачностью */
    border-radius: 10px;
    padding: 20px;
    background: #4a90e2;
}


.alert-wrapper {
    position: fixed;
    top: 70px; /* Установите нужное значение для расстояния от навигационной панели */
    right: 20px;
    z-index: 1050; /* Убедитесь, что уведомления находятся над другим контентом */
    width: auto; /* Корректируйте ширину по вашему усмотрению */
    margin-top: 20px; /* Spacing above the alert */
}

.alert {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adding shadow */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 20px;
}

.form-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.form-label {
    margin-bottom: 0.5rem; /* Отступ под меткой */
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem; /* Отступ между группами формы */
}

.btn {
    padding: 10px 20px; /* Внутренние отступы кнопки */
    border-radius: 5px; /* Скругленные углы кнопки */
}

.margin-right {
    margin-right: 10px; /* Или любое другое значение по вашему выбору */
}

.form-actions {
    margin-top: 20px;
}

.role-suggestions {
    max-height: 150px; /* Максимальная высота списка */
    overflow-y: auto; /* Скроллинг при переполнении */
}

.role-suggestions li {
    cursor: pointer; /* Указатель на курсор */
}

.role-suggestions li:hover {
    background-color: #f0f0f0; /* Цвет при наведении */
}

/*====*/
/* Основные стили пагинации */
.dt-paging .pagination {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.dt-paging-button.page-item .page-link {
    border: 1px solid #4a90e2 !important;
    color: #4a90e2;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white !important;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
    min-width: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Состояние ховера */
.dt-paging-button.page-item:not(.active):not(.disabled) .page-link:hover {
    background: #4a90e2 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
    text-decoration: none;
}

/* Активная страница */
.dt-paging-button.page-item.active .page-link {
    background: #4a90e2 !important;
    color: white !important;
    border-color: transparent !important;
    cursor: default;
}

/* Отключенные кнопки */
.dt-paging-button.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

/* Стрелки навигации */
.dt-paging-button.page-item .page-link.previous,
.dt-paging-button.page-item .page-link.next {
    font-size: 1.2em;
    line-height: 1;
    padding-top: 2px;
}

/* Многоточие */
.dt-paging-button.page-item .page-link.ellipsis {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
}


.dataTable tbody tr:hover {
    background-color: rgba(74, 144, 226, 0.1);
}


/* === Buttons === */
/* Стили для кнопок */
.btn-primary {
    border: 1px solid #4a90e2 !important;
    background: #4a90e2 !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
    margin-right: 10px !important;
}

.btn-primary:hover {
    background: #4a90e2 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.btn-outline-primary {
    border: 1px solid #4a90e2 !important;
    color: #4a90e2;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: white !important;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
    margin-right: 10px !important;
}

.btn-outline-primary:hover {
    background: #4a90e2 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

/* Делаем иконку белой при наведении на кнопку */
.btn-outline-primary:hover .navbar-toggler-icon,
.btn-outline-primary:hover span i {
    filter: brightness(0) invert(1); /* Делает темные иконки белыми */
    color: white !important; /* Для текстовых иконок */
}

.btn-primary-danger {
    border: 1px solid #dc3545 !important;
    background: #dc3545 !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
    margin-right: 10px !important;
}

.btn-primary-danger:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.btn-outline-primary-danger {
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: white !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
    margin-right: 10px !important;
}

.btn-outline-primary-danger.fas {
    color: #dc3545 !important;
}

.btn-outline-primary-danger:hover {
    background: #dc3545 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

/* Делаем иконку белой при наведении на кнопку */
.btn-outline-primary-danger:hover .navbar-toggler-icon,
.btn-outline-primary-danger:hover span i {
    filter: brightness(0) invert(1); /* Делает темные иконки белыми */
    color: white !important; /* Для текстовых иконок */
}

.btn-back {
    display: inline-block !important; /* Отменяет flex и делает кнопку блочным элементом */
}

.bold-text {
    font-weight: bold;
}

