body {
    background-color: #fafbfe;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    border-radius: .25rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}

.navbar-brand {
    font-weight: bold;
}

.form-group {
    margin-bottom: 8px;
}

.circle-logo {
    display: inline-block;
    width: 14px;          /* Размер внешнего круга */
    height: 14px;         /* Размер внешнего круга */
    border: 4px solid white;  /* Толщина и цвет "пончика" */
    border-radius: 50%;    /* Делаем круг */
    background: transparent; /* Прозрачный фон внутри */
    position: relative;
    box-sizing: border-box;
    animation: blink 2s infinite; /* Анимация: 2 секунды, бесконечно */
}

@keyframes blink {
    0%, 100% { opacity: 1; } /* Полная видимость */
    50% { opacity: 0.3; }    /* Полупрозрачность */
}

html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-left: 10px;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.text-white-50 { color: rgba(255, 255, 255, .5); }

.bg-purple { background-color: #6f42c1; }

.hidden-link {
    color: #000000;
    text-decoration: none;
}

.hover-darken:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.hover-darken:hover .text-gray-dark {
    color: #000 !important;
}

.articles-list .hidden-link {
    text-decoration: none;
    color: inherit;
}
    
.articles-list .shadow-sm {
    transition: transform 0.2s;
}
    
.articles-list .shadow-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}
    
.article-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list .hidden-link {
    text-decoration: none;
    color: inherit;
}
    
.news-list .shadow-sm {
    transition: transform 0.2s;
}
    
.news-list .shadow-sm:hover {
    transform: translateY(-2px);
}
    
.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-scroll::-webkit-scrollbar {
    height: 4px;
}
    
.categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
    
.categories-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}
    
.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}
    
.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}
    
.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
    
.card-body {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.help-block {
    color: red;
}

.square-image-container {
    width: 100%;
    aspect-ratio: 1/1; /* Сохраняем соотношение сторон 1:1 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезаем изображение, сохраняя пропорции */
    border-radius: 50%; /* Для круглого изображения */
}

.breadcrumb li {
    background-color: #DCDCDC;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.breadcrumb li a {
    color: #363636;
    text-decoration: none;
}

.breadcrumb {
    display: block;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.breadcrumb::-webkit-scrollbar {
    display: none; /*chrome*/
}

.breadcrumb > li {
    display: inline-block;
}

.breadcrumb-item + .breadcrumb-item {
    padding-right: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: left;
    color: var(--bs-breadcrumb-divider-color);
    content: ""; /* rtl: var(--bs-breadcrumb-divider, "/") */;
}

.search-input {
    background-color: #3c4655;
    color: #FFF;
    border: 0;
}

.search-input::placeholder { 
    color: white; 
}  

@media(max-width:767px) {
    .search-input {
        margin-top: 10px;
    }
}

.search-container {
    width: 300px;
}

.search-suggestions {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.search-suggestion-item {
    padding: 8px 15px;
    cursor: pointer;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-divider {
    border-top: 1px solid #eee;
    margin: 5px 0;
}

.suggestion-type {
    font-weight: bold;
    color: #6c757d;
}

/* Индикатор загрузки */
.search-loading-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    width: 20px;
    height: 20px;
}

.search-loading .search-loading-indicator {
    display: block;
}

.search-loading-indicator:after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Добавьте это к существующим стилям */
.search-container {
    position: relative;
}

.search-suggestion-item.active {
    background-color: #f0f0f0;
}

/* Анимация появления подсказок */
.search-suggestions {
    animation: fadeIn 0.2s ease-out;
}

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