/* 收藏夹页面特定样式 */
.favorites-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.favorites-actions {
    margin-top: 20px;
    text-align: right;
}

.favorites-actions .btn {
    margin-left: 10px;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-favorite-add {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-favorite-add:hover {
    background-color: #218838;
}

.favorite-category-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.favorite-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.favorite-category-title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.favorite-category-controls {
    display: flex;
    gap: 10px;
}

.favorite-category-controls .btn {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.favorite-item {
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.favorite-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    background: white;
}

.favorite-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.favorite-item-icon {
	position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.favorite-item-info {
    flex-grow: 1;
}

.favorite-item-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.favorite-item-url {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

.favorite-item-description {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

.favorite-item-controls {
    flex-shrink: 0;
    display: flex;
    gap: 5px;
}

.favorite-item-controls .btn {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn-favorite-delete {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-favorite-delete:hover {
    background-color: #c82333;
}

.btn-favorite-move {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.btn-favorite-move:hover {
    background-color: #138496;
}

.empty-favorites {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-favorites i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-favorites h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-favorites p {
    margin-bottom: 20px;
}

/* 收藏按钮样式 */
.website-controls .website-favorite-btn {
    background-color: transparent;
    border: none;
    color: #f60;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
    transition: all 0.3s ease;
}

.website-controls .website-favorite-btn:hover {
    color: #ff9800;
    transform: scale(1);
}

.website-controls .website-favorite-btn:active {
    transform: scale(0.95);
}

/* 收藏表单样式 */
#add-to-favorites-form .edit-form-buttons,
#favorite-move-form .edit-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#add-to-favorites-form select,
#favorite-move-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 收藏项移动和删除按钮样式 */
.btn-favorite-move,
.btn-favorite-delete {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite-move:hover {
    background-color: #138496 !important;
    transform: translateY(-2px);
}

.btn-favorite-delete:hover {
    background-color: #c82333 !important;
    transform: translateY(-2px);
}

/* 空收藏夹提示样式 */
.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.empty-favorites i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.empty-favorites h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
}

.empty-favorites p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 收藏对话框样式 */
#favorite-category-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    min-width: 400px;
    max-width: 500px;
}