.main_top_item_block {
  padding: 1.5rem !important;
  width: 100% !important;
  margin-right: 15px;
  margin-left: 15px;
}

.title_quest_awards {
  font-size: 1.2rem;
  color: #333;
  margin-left: 15px;
  text-align: center !important;
}

/* Блок заголовков таблицы */
.q_awards_th {
  font-weight: 500;
  font-size: 15px;
  color: #495057;
  text-align: left !important;
  background-color: #f8f9fa !important;
}

.col-12 {
  float: left;
}

/* Нижний колонтитул */
.col_footer_mmo {
  flex: 0 0 100%;
  max-width: 100%;
  font-size: 12px;
  margin: auto;
}

.main_block_db {
  background-color: #ffffff;
  width: 100% !important;
}

.title_top_block_db {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.my_title {
  margin-bottom: 1.5rem !important;
  margin-top: 1.5rem !important;
  background-color: #ebedf0;
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Меню */
.base_menu {
  width: 100% !important;
  margin-left: 15px;
}

/* Шапка/полоса */
.justify-content-around {
  background-color: #f1f3f5;
  padding-top: 10px;
  padding-bottom: 10px;
}

.map_view_npc {
  justify-content: space-around !important;
}

.logobase {
  margin-bottom: 3px;
}

.m_b_r {
  margin-right: 15px;
}

.pagination {
  margin-right: 15px;
}

/* Ссылки и текст */
.boss_base a {
  color: #FF5722; /* Яркий оранжевый, смотрится современно и заметно */
  font-size: 20px;
  text-decoration-line: none;
}

.dopres_base {
  color: #3eaa81; /* Можно оставить слегка зеленоватый оттенок */
  font-size: 16px;
}

.other_base {
  font-size: 14px;
}

/* Заголовок секции */
.xx_title {
  background-color: #ebedf0;
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 20px;
  color: #63c886; 
  font-weight: bold;
}

/* Ховер-эффекты */
.green_res:hover {
  box-shadow: 0 0 15px rgb(0, 250, 154);
}

.gold_res:hover {
  box-shadow: 0 0 15px rgb(255, 215, 0);
}

.orange_res:hover {
  box-shadow: 0 0 20px rgb(255, 96, 0);
}

.purple_res:hover {
  box-shadow: 0 0 15px rgb(140, 140, 239);
}

/* Текст в таблицах */
.xxth {
  font-weight: 500;
  font-size: 15px;
  color: #666;
}

/* Блоки */




/* Поисковый блок */
.cats-search {
  width: 100%;
}

.cats-search__autocomplete {
  position: relative;
  width: 100%;
  z-index: 100;
  display: none;
}

.form-control:focus ~ .cats-search__autocomplete,
.cats-search__autocomplete:hover {
  display: block;
}

.cats-search__autocomplete > div {
  left: 0;
  top: 0;
  width: 100%;
  position: absolute;
  max-height: 300px;
  background-color: #ffffff;
  overflow: auto;
}

.cats-search__autocomplete > div > a {
  display: block;
  color: #333;
}


.index_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}


.index_block_db {
    position: relative;
    width: calc(33.333% - 10px);
    min-width: 200px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.index_block_db:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

.index_block_db img {
    width: 100%;
    display: block;
}

.index_block_db a {
    display: block;
    position: relative;
    text-decoration: none;
}

.index_block_db::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.index_block_db:hover::before {
    background: rgba(255, 255, 255, 0.2);
}

.index_block_db .text-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(10, 25, 50, 0.8) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 10px 0;
    text-align: center;
}

.index_block_db .text-overlay span {
    font-weight: 700;
    font-family: "Beaufort", sans-serif;
    font-size: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #5997ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.index_block_db:hover .text-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(10, 25, 50, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

@media (max-width: 1024px) {
    .index_block_db {
        width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .index_block_db {
        width: calc(100% - 10px);
    }
}

.autocomplete {
    position: relative;
    width: 100%;
    max-width: 300px; 
}

.autocomplete-row {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.autocomplete-items {
    position: absolute;
    top: 100%;          
    left: 0;
    right: 0;
    z-index: 1000;     
    background-color: #fff;
    max-height: 200px;   
    overflow-y: auto;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #d4d4d4;
}

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

.autocomplete-item a {
    text-decoration: none;
    color: #000;
    display: block;
}

.autocomplete-item:hover {
    background-color: #e9e9e9;
}

@media (max-width: 480px) {
    .autocomplete {
        max-width: 100%;
    }
    .autocomplete-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .autocomplete {
        max-width: none;
    }
}

/* Favorites styles */
.favorite-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid #007bff;
    background-color: transparent;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.favorite-btn.is-favorite {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.favorite-btn.is-favorite:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.favorite-btn i {
    margin-right: 0.25rem;
}

.favorites-count {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 5px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Favorites grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0;
}

.favorite-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    transition: all 0.2s;
    cursor: move;
}

.favorite-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.favorite-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.favorite-item.drag-over {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.favorite-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.favorite-item-drag {
    color: #6c757d;
    cursor: grab;
    font-size: 1.2rem;
}

.favorite-item-drag:active {
    cursor: grabbing;
}

.favorite-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorite-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.favorite-item-name {
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.favorite-item-name:hover {
    color: #007bff;
    text-decoration: none;
}

.favorite-item-actions {
    display: flex;
    gap: 0.5rem;
}

.favorite-item-actions .btn {
    padding: 0.25rem 0.5rem;
}

.favorite-item-actions .btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
    
    .favorite-item-content {
        flex-wrap: wrap;
    }
    
    .favorite-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}

/* Item tabs */
#itemTabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 0;
}

#itemTabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

#itemTabs .nav-link:hover {
    color: #007bff;
    border-bottom-color: rgba(0, 123, 255, 0.3);
}

#itemTabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom-color: #007bff;
}

#itemTabs .nav-link i {
    margin-right: 0.5rem;
}

.tab-content {
    background: white;
}

/* Price chart specific styles */
#statistics .card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

#statistics .card-body {
    padding: 1rem;
}

#statistics .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#statistics ul {
    padding-left: 1.25rem;
}

#statistics ul li {
    margin-bottom: 0.25rem;
}

/* Favorites search items */
.favorites-search-item {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e9e9e9;
}

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

.favorites-search-item:hover {
    background-color: #f8f9fa;
}

.favorites-search-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.favorites-search-item .btn-success {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

#favorites-autocomplete-list {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

/* Nav tabs styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    border-bottom-color: #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.nav-tabs .nav-link i {
    margin-right: 6px;
}

/* Tab content */
.tab-content {
    background: transparent;
    padding: 20px 0;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

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

