/**
 * Activity Feed Widget Styles
 * Improved readability with bright colors on dark background
 */

/* Activity Feed Container */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

/* Scrollbar Styling */
.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.8);
}

/* Activity Item */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

/* Activity Icon */
.activity-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Activity Content */
.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.4;
}

.activity-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
    line-height: 1.5;
}

.activity-time {
    font-size: 12px;
    color: rgba(0, 212, 255, 0.8);
    font-weight: 500;
}

/* Empty State */
.activity-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.text-muted-bright {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px !important;
    line-height: 1.6;
}

/* Activity Types Color Accents */
.activity-item[data-type="fund_view"] .activity-title {
    color: #8b9eff;
}

.activity-item[data-type="search"] .activity-title {
    color: #ff8ac7;
}

.activity-item[data-type="trending"] .activity-title {
    color: #4facfe;
}

.activity-item[data-type="alert"] .activity-title {
    color: #ffd166;
}

.activity-item[data-type="fund_added"] .activity-title {
    color: #30cfd0;
}

/* Loading State Override */
#activity-feed p.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .activity-item {
        padding: 12px;
        gap: 12px;
    }

    .activity-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .activity-title {
        font-size: 14px;
    }

    .activity-description {
        font-size: 12px;
    }

    .activity-time {
        font-size: 11px;
    }
}

/* Animation */
@keyframes fadeInActivity {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item {
    animation: fadeInActivity 0.4s ease-out;
}

.activity-item:nth-child(1) { animation-delay: 0s; }
.activity-item:nth-child(2) { animation-delay: 0.05s; }
.activity-item:nth-child(3) { animation-delay: 0.1s; }
.activity-item:nth-child(4) { animation-delay: 0.15s; }
.activity-item:nth-child(5) { animation-delay: 0.2s; }
