/* FBM Unified Feed Styles */

.fbm-unified-feed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tabs */
.fbm-feed-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.fbm-feed-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.fbm-feed-tab:hover {
    background: #e9ecef;
    color: #212529;
}

.fbm-feed-tab.active {
    background: white;
    color: #5c6ac4;
    border-bottom-color: #5c6ac4;
}

.fbm-feed-tab i {
    font-size: 16px;
}

/* Feed Entries */
.fbm-feed-entries {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fbm-feed-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.fbm-feed-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.fbm-feed-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fbm-feed-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.fbm-feed-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fbm-feed-item-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.fbm-feed-item-date {
    font-size: 14px;
    color: #495057;
}

.fbm-feed-item-content {
    margin-bottom: 15px;
}

.fbm-feed-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 10px 0;
}

.fbm-feed-item-detail {
    font-size: 14px;
    color: #6c757d;
    margin: 5px 0;
}

.fbm-feed-item-excerpt {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin-top: 10px;
}

.fbm-feed-item-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.fbm-feed-action-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fbm-feed-action-btn:hover {
    background: #e9ecef;
    color: #212529;
}

/* Loading State */
.fbm-feed-loading {
    text-align: center;
    padding: 40px 20px;
}

.fbm-feed-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5c6ac4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fbm-feed-loading p {
    color: #6c757d;
    font-size: 14px;
}

/* No More Entries */
.fbm-feed-no-more {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Empty State */
.fbm-feed-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.fbm-feed-empty p {
    font-size: 16px;
}

/* Completion Entry */
.fbm-feed-completion-entry {
    background: #f0f9ff;
    border-left-color: #28a745 !important;
}

.fbm-feed-completion-entry .fbm-feed-item-icon {
    background-color: #28a745 !important;
}

.fbm-feed-completion-text {
    font-size: 16px;
    color: #155724;
    font-weight: 500;
    margin: 0;
}

/* Calendar View */
.fbm-feed-calendar-view {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .fbm-unified-feed {
        padding: 15px;
    }
    
    .fbm-feed-filters {
        gap: 8px;
    }
    
    .fbm-feed-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .fbm-feed-item {
        padding: 15px;
    }
    
    .fbm-feed-item-title {
        font-size: 16px;
    }
}

