

.category-tabs {
    position: relative;
}

.tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    justify-content: center;
}

.tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #657786;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 80px;
    white-space: nowrap;
}

.tab-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--tab-color);
    opacity: 0.7;
}

.tab-item.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--tab-color);
}

.tab-item.active i {
    opacity: 1;
}

.tab-text {
    font-size: 0.8rem;
    line-height: 1;
}

.content-feed {
    background: transparent;
    padding: 0;
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #f1f3f4;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    position: relative;
}

.feed-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.feed-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f1419;
    margin: 0;
    display: flex;
    align-items: center;
}

.feed-title i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feed-container {
    min-height: 400px;
}

.feed-item {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.feed-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.feed-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.feed-item:hover::before {
    width: 4px;
}

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

.feed-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.feed-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feed-item:hover .feed-icon::before {
    opacity: 1;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-item-title {
    font-weight: 600;
    color: #0f1419;
    margin: 0 0 6px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.feed-item-meta {
    font-size: 0.85rem;
    color: #657786;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-item-meta .category-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.feed-time {
    font-size: 0.8rem;
    color: #657786;
    white-space: nowrap;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

#add-new-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

#add-new-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.category-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.category-link-btn:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.feed-item-description {
    font-size: 0.8rem;
    color: #8899a6;
    margin: 2px 0 0 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

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

.feed-item.new-item {
    animation: fadeInUp 0.5s ease;
}

/* Category FAB Button */
.category-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.category-fab:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .feed-header {
        display: none;
    }
    .modern-header {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .total-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .tabs-scroll {
        gap: 4px;
        justify-content: flex-start;
    }
    
    .tab-item {
        padding: 8px 12px;
        min-width: 60px;
    }
    
    .tab-item i {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .tab-text {
        font-size: 0.7rem;
    }
    
    .feed-item {
        padding: 12px 16px;
    }
    
    .feed-header {
        padding: 16px 20px;
    }
    
    .category-link-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    #add-new-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .category-fab {
        bottom: 90px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    

}