/* Participation Status Styles */
.participation-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

.status-badge.status-participated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-200);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.status-badge.status-participated .material-icons {
    font-size: 14px;
    color: var(--success-600);
    flex-shrink: 0;
}

/* Hover effect for participated status */
.status-badge.status-participated:hover {
    background: var(--success-100);
    border-color: var(--success-300);
}

/* Alternative styling for different states */
.status-badge.status-not-participated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.status-not-participated .material-icons {
    font-size: 16px;
    color: var(--gray-500);
}

/* Animation for status changes */
.status-badge {
    transition: all 0.3s ease;
    animation: statusFadeIn 0.4s ease-out;
}

@keyframes statusFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-badge.status-participated,
    .status-badge.status-not-participated {
        padding: 3px 6px;
        font-size: 10px;
        max-width: 100px;
    }
    
    .status-badge.status-participated .material-icons,
    .status-badge.status-not-participated .material-icons {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .status-badge.status-participated,
    .status-badge.status-not-participated {
        padding: 2px 4px;
        font-size: 9px;
        max-width: 80px;
    }
    
    .status-badge.status-participated .material-icons,
    .status-badge.status-not-participated .material-icons {
        font-size: 10px;
    }
}

/* Integration with existing button styles */
.item-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
}

/* Ensure proper alignment with buttons */
.participation-status {
    min-width: 120px;
    max-width: 140px;
    justify-content: center;
    overflow: hidden;
}

/* Success color variations */
:root {
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-600: #16a34a;
    --success-700: #15803d;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .status-badge.status-participated {
        background: rgba(34, 197, 94, 0.1);
        color: #4ade80;
        border-color: rgba(34, 197, 94, 0.2);
    }
    
    .status-badge.status-participated:hover {
        background: rgba(34, 197, 94, 0.15);
        border-color: rgba(34, 197, 94, 0.3);
    }
    
    .status-badge.status-participated .material-icons {
        color: #22c55e;
    }
}
