/* ============================================
   CBT ACTIVITY FEED - STYLE
   ============================================ */

.cbt-feed-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    max-height: 250px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.cbt-feed-container::-webkit-scrollbar {
    width: 4px;
}

.cbt-feed-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Header */
.cbt-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.cbt-feed-icon {
    font-size: 20px;
}

.cbt-feed-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.cbt-feed-status {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: auto;
}

.cbt-feed-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

/* Body / List */
.cbt-feed-body {
    min-height: 40px;
}

.cbt-feed-item {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    animation: cbtFeedSlide 0.4s ease;
    font-size: 14px;
    line-height: 1.6;
}

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

@keyframes cbtFeedSlide {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cbt-feed-username {
    font-weight: 700;
    color: #2563eb;
}

.cbt-feed-username.guest {
    color: #8b5cf6;
}

.cbt-feed-packet {
    color: #1e293b;
    font-weight: 500;
}

.cbt-feed-time-label {
    color: #94a3b8;
    font-size: 12px;
}

/* Loading */
.cbt-feed-loading {
    text-align: center;
    color: #94a3b8;
    padding: 10px 0;
}

.cbt-loading-dots::after {
    content: '...';
    animation: cbtDots 1.2s steps(4, end) infinite;
}

@keyframes cbtDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Footer */
.cbt-feed-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.cbt-feed-autoupdate {
    font-size: 11px;
    color: #94a3b8;
}

/* Empty state */
.cbt-feed-empty {
    text-align: center;
    color: #94a3b8;
    padding: 15px 0;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE - DIPERBESAR TINGGINYA
   ============================================ */

@media screen and (max-width: 768px) {
    .cbt-feed-container {
        padding: 12px 15px;
        max-height: 400px;  /* DIPERBESAR DARI 200px */
    }
    
    .cbt-feed-title {
        font-size: 14px;
    }
    
    .cbt-feed-item {
        font-size: 13px;
    }
    
    .cbt-feed-status {
        font-size: 10px;
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .cbt-feed-container {
        padding: 10px 12px;
        max-height: 350px;  /* DIPERBESAR DARI 180px */
        border-radius: 8px;
    }
    
    .cbt-feed-item {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .cbt-feed-header {
        gap: 6px;
    }
    
    .cbt-feed-title {
        font-size: 13px;
    }
    
    .cbt-feed-time-label {
        font-size: 10px;
        display: block;
        margin-top: 2px;
    }
}

/* ============================================
   DARK MODE - CBT ACTIVITY FEED
   ============================================ */

/* Dark Mode Container */
body.dark-mode .cbt-feed-container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Scrollbar */
body.dark-mode .cbt-feed-container::-webkit-scrollbar {
    background: #0f172a;
}

body.dark-mode .cbt-feed-container::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Dark Mode Header */
body.dark-mode .cbt-feed-title {
    color: #f1f5f9;
}

body.dark-mode .cbt-feed-status {
    color: #34d399;
    background: #064e3b;
}

body.dark-mode .cbt-feed-time {
    color: #94a3b8;
}

/* Dark Mode Feed Items */
body.dark-mode .cbt-feed-item {
    border-bottom-color: #334155;
}

body.dark-mode .cbt-feed-username {
    color: #60a5fa;
}

body.dark-mode .cbt-feed-username.guest {
    color: #a78bfa;
}

body.dark-mode .cbt-feed-packet {
    color: #f1f5f9;
}

body.dark-mode .cbt-feed-time-label {
    color: #64748b;
}

/* Dark Mode Loading */
body.dark-mode .cbt-feed-loading {
    color: #94a3b8;
}

/* Dark Mode Empty State */
body.dark-mode .cbt-feed-empty {
    color: #94a3b8;
}

/* Dark Mode Footer (jika ada) */
body.dark-mode .cbt-feed-footer {
    border-top-color: #334155;
}

body.dark-mode .cbt-feed-autoupdate {
    color: #64748b;
}
/* Progress indicator */
.cbt-feed-progress {
    color: #8b5cf6;
    font-weight: 600;
    font-size: 12px;
    background: #f3e8ff;
    padding: 1px 10px;
    border-radius: 12px;
    margin: 0 4px;
    display: inline-block;
}

/* Dark mode progress */
body.dark-mode .cbt-feed-progress {
    color: #a78bfa;
    background: #2d1b4e;
}