/* Модальное окно */
#bookmarks-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#bookmarks-modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Закрытие модального окна */
.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
    z-index: 10000;
}

.close-modal:hover {
    color: #ff4444;
}

/* Вкладки */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    position: sticky;
    top: -21px;
    background-color: #1a1a1a;
    z-index: 1;
}

.tab-link {
    padding: 8px 16px;
    background: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-link.active {
    background: #ff4444;
}

/* Список закладок */
.bookmarks-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bookmarks-list.active {
    display: block;
}

/* Стили для элементов закладок */
.bookmark-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    background: #2a2a2a;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.bookmark-item:hover {
    background: #333;
}

.bookmark-link {
    color: #fff;
    text-decoration: none;
    flex-grow: 1;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.bookmark-link:hover {
    color: #ff4444;
}

.bookmark-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-select {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-select:hover {
    border-color: #ff4444;
}

.delete-bookmark {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.delete-bookmark:hover {
    color: #ff0000;
}

/* Кнопки экспорта/импорта */
.bookmarks-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    position: sticky;
    bottom: -18px;
    background-color: #1a1a1a;
}

.export-btn,
.import-btn {
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.export-btn:hover,
.import-btn:hover {
    background: #ff4444;
}

/* Toast уведомления */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #ff4444;
}

/* Модальное окно подтверждения */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.confirm-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .bookmark-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .bookmark-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }

    .category-select {
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-link {
        width: 100%;
        text-align: center;
    }

    .toast {
        width: 90%;
        left: 5%;
        right: auto;
    }
} 