/* ========== SMART TABS STYLES ==========*/
/* Умные вкладки под хранилищем */

/* Контейнер вкладок */
.smart-tabs {
    max-width: 1000px;
    margin: 16px auto 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

/* Отдельная вкладка */
.smart-tabs__tab {
    min-width: 136px;
    max-width: 136px;
    height: 24px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-dark);
    padding: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
}

.smart-tabs__tab:hover {
    background-color: #d0d0d0;
    border-color: #999;
}

.smart-tabs__tab.active {
    background-color: var(--yellow-btn);
    border-color: var(--yellow-btn);
    font-weight: 600;
}

/* Поле редактирования названия вкладки */
.smart-tabs__tab-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}

/* Кнопка удаления вкладки (крестик) */
.smart-tabs__tab-delete {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(244, 67, 54, 0.7);
    font-size: 14px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.smart-tabs__tab:hover .smart-tabs__tab-delete {
    display: flex;
}

.smart-tabs__tab-delete:hover {
    color: rgba(244, 67, 54, 1);
    transform: translateY(-50%) scale(1.2);
}

/* Кнопка добавления новой вкладки */
.smart-tabs__add-btn {
    min-width: 24px;
    width: 24px;
    height: 19px;
    background-color: #6B9E78;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.smart-tabs__add-btn:hover {
    background-color: #5A8A68;
    transform: scale(1.1);
}

/* ========== DELETE CONFIRMATION MODAL ==========*/
/* Модальное окно подтверждения удаления вкладки */

.delete-tab-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.delete-tab-modal.active {
    display: flex;
}

.delete-tab-modal__content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.delete-tab-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    text-align: center;
}

.delete-tab-modal__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-tab-modal__btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-tab-modal__btn--confirm {
    background-color: #f44336;
    color: #ffffff;
}

.delete-tab-modal__btn--confirm:hover {
    background-color: #d32f2f;
    transform: scale(1.05);
}

.delete-tab-modal__btn--cancel {
    background-color: #e0e0e0;
    color: var(--text-dark);
}

.delete-tab-modal__btn--cancel:hover {
    background-color: #d0d0d0;
    transform: scale(1.05);
}
