/* challengeWidgetV2.css */
.challenge-v2-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-v2-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenge-v2-card.status-attention {
    border-left: 4px solid #FFC107;
    background: #fffdf5;
}

.challenge-v2-card.status-pending {
    border-left: 4px solid #2196F3;
}

.challenge-v2-card.fading-out {
    opacity: 0;
    transform: translateX(100%);
}

.cv2-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv2-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cv2-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cv2-info {
    flex: 1;
}

.cv2-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cv2-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cv2-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.cv2-badge.pending {
    background: #e3f2fd;
    color: #1976D2;
}

.cv2-badge.attention {
    background: #fff8e1;
    color: #F57C00;
}

.cv2-response-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #222;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #ccc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Progress Bar - 12 weeks */
.cv2-progress-wrapper {
    margin-top: 5px;
}

.cv2-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 4px;
}

.cv2-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.cv2-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Actions */
.cv2-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.cv2-btn {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.cv2-btn-resolve {
    background: #4CAF50;
    color: white;
    flex: 1;
    justify-content: center;
}

.cv2-btn-resolve:hover {
    background: #43A047;
}

.cv2-btn-notes {
    background: #f5f5f5;
    color: #555;
}

.cv2-btn-notes:hover {
    background: #e0e0e0;
}

.cv2-btn-attention {
    background: #FFF3E0;
    color: #E65100;
}

.cv2-btn-attention:hover {
    background: #FFE0B2;
}

/* Notes Section */
.cv2-notes-section {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin-top: 5px;
}

.cv2-notes-section.expanded {
    display: flex;
}

.cv2-textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    font-size: 0.9rem;
    min-height: 60px;
    font-family: inherit;
}

.cv2-btn-save-note {
    background: #2196F3;
    color: white;
    align-self: flex-end;
}

.cv2-btn-save-note:hover {
    background: #1976D2;
}

/* Empty state */
.cv2-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.cv2-empty-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.cv2-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Tabs & Badge */
.cv2-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    padding: 0 1rem;
}

.cv2-tab-btn {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.cv2-tab-btn:hover {
    color: var(--primary-color, #2196F3);
}

.cv2-tab-btn.active {
    color: var(--primary-color, #2196F3);
    border-bottom-color: var(--primary-color, #2196F3);
    font-weight: bold;
    background-color: white;
}

.cv2-badge-attention {
    background: #E65100;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 4px;
}

.cv2-badge-pending {
    background: #1976D2;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 4px;
}

.cv2-badge-ending {
    background: #9C27B0;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 4px;
}