.html-widget .widget-content th {
        background: #374151;
        color: #f3f4f6;
    }
    
    /* Confetti widget dark mode */
    .confetti-widget .celebrating-member {
        background: #374151;
        border-left-color: #fbbf24;
    }
    
    .confetti-widget .celebrating-member:hover {
        background: #4b5563;
    }
    
    .confetti-widget .member-name {
        color: #f3f4f6;
    }
    
    .confetti-widget .member-years {
        background: #4b5563;
        color: #d1d5db;
    }
    
    .confetti-widget .member-date {
        color: #9ca3af;
    }
    
    .confetti-widget .confetti-message {
        color: #9ca3af;
    }
    
    .confetti-widget .no-celebrations {
        color: #6b7280;
    }/* FluentCommunity Sidebar Frontend Styles */

.fluent-sidebar-widgets {
    margin: 0;
    padding: 0;
}

/* FluentCommunity specific context */
.fluent-sidebar-widgets.fluent-community-context {
    margin-top: 20px;
}

.fluent-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fluent-sidebar-widget:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.fluent-sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Widget Title */
.widget-title {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    padding: 12px 16px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

.widget-title:empty {
    display: none;
}

/* Widget Content */
.widget-content {
    padding: 16px;
    color: #4b5563;
    line-height: 1.6;
}

.widget-content:empty {
    display: none;
}

/* HTML Widget Specific Styles */
.html-widget .widget-content {
    font-size: 14px;
}

.html-widget .widget-content p {
    margin: 0 0 12px 0;
}

.html-widget .widget-content p:last-child {
    margin-bottom: 0;
}

.html-widget .widget-content ul,
.html-widget .widget-content ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.html-widget .widget-content ul:last-child,
.html-widget .widget-content ol:last-child {
    margin-bottom: 0;
}

.html-widget .widget-content li {
    margin-bottom: 4px;
}

.html-widget .widget-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.html-widget .widget-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.html-widget .widget-content h1,
.html-widget .widget-content h2,
.html-widget .widget-content h3,
.html-widget .widget-content h4,
.html-widget .widget-content h5,
.html-widget .widget-content h6 {
    margin: 0 0 8px 0;
    color: #374151;
    font-weight: 600;
}

.html-widget .widget-content h1 { font-size: 18px; }
.html-widget .widget-content h2 { font-size: 16px; }
.html-widget .widget-content h3 { font-size: 15px; }
.html-widget .widget-content h4 { font-size: 14px; }
.html-widget .widget-content h5 { font-size: 13px; }
.html-widget .widget-content h6 { font-size: 12px; }

.html-widget .widget-content blockquote {
    margin: 12px 0;
    padding: 8px 12px;
    border-left: 3px solid #e5e7eb;
    background: #f9fafb;
    font-style: italic;
    color: #6b7280;
}

.html-widget .widget-content code {
    background: #f3f4f6;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #374151;
}

.html-widget .widget-content pre {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 12px 0;
}

.html-widget .widget-content pre code {
    background: none;
    padding: 0;
}

.html-widget .widget-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
}

.html-widget .widget-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.html-widget .widget-content th,
.html-widget .widget-content td {
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.html-widget .widget-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Poll Widget Styles (placeholder) */
.poll-widget {
    /* Will be implemented with poll widget */
}

.poll-widget .widget-content {
    padding: 0;
}

/* Confetti Widget Styles */
.confetti-widget .widget-title {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 300% 300%;
    animation: gradient 3s ease infinite;
    color: white;
    border-bottom-color: transparent;
    text-align: center;
    font-weight: 700;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.confetti-widget .widget-content {
    padding: 16px;
}

.confetti-message {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    font-style: italic;
}

.celebrating-members {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.celebrating-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #feca57;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.celebrating-member:hover {
    background: #f3f4f6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.celebrating-member::before {
    content: "🎉";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-60%);
    }
    60% {
        transform: translateY(-55%);
    }
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.member-years {
    font-size: 12px;
    color: #9ca3af;
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.member-date {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    margin-right: 30px; /* Space for emoji */
}

.no-celebrations {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
}

.celebration-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.no-celebrations p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

/* Confetti Animation Effect */
.confetti-widget.celebrating {
    position: relative;
    overflow: hidden;
}

.confetti-widget.celebrating::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: 
        radial-gradient(circle, #ff6b6b 2px, transparent 2px),
        radial-gradient(circle, #4ecdc4 2px, transparent 2px),
        radial-gradient(circle, #feca57 2px, transparent 2px),
        radial-gradient(circle, #45b7d1 2px, transparent 2px);
    background-size: 20px 20px, 25px 25px, 30px 30px, 35px 35px;
    background-position: 0 0, 5px 5px, 10px 10px, 15px 15px;
    animation: confettiFall 3s linear infinite;
    pointer-events: none;
}

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

/* Interactive Animations */
.celebrating-member.celebrate-clicked {
    animation: celebrateClick 0.6s ease-out;
}

@keyframes celebrateClick {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.celebrating-member.fade-in {
    animation: slideInUp 0.6s ease-out both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-celebrations.gentle-fade {
    animation: gentleFade 1s ease-in-out;
}

@keyframes gentleFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fluent-sidebar-widget {
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    .widget-title {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .widget-content {
        padding: 12px;
        font-size: 13px;
    }
    
    .html-widget .widget-content h1 { font-size: 16px; }
    .html-widget .widget-content h2 { font-size: 15px; }
    .html-widget .widget-content h3 { font-size: 14px; }
    
    /* Confetti widget mobile styles */
    .celebrating-member {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    
    .member-info {
        width: 100%;
    }
    
    .member-date {
        text-align: left;
        margin-right: 0;
    }
    
    .celebrating-member::before {
        right: 10px;
        top: 10px;
        transform: none;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fluent-sidebar-widget {
        margin-bottom: 12px;
        border-radius: 4px;
    }
    
    .widget-title {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .widget-content {
        padding: 10px;
        font-size: 12px;
    }
    
    .confetti-message {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .member-name {
        font-size: 14px;
    }
    
    .member-years {
        font-size: 11px;
    }
    
    .member-date {
        font-size: 11px;
    }
    
    .no-celebrations {
        padding: 16px 12px;
    }
    
    .celebration-icon {
        font-size: 24px;
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .fluent-sidebar-widget {
        background: #1f2937;
        border-color: #374151;
        color: #e5e7eb;
    }
    
    .widget-title {
        background: #111827;
        border-bottom-color: #374151;
        color: #f3f4f6;
    }
    
    .widget-content {
        color: #d1d5db;
    }
    
    .html-widget .widget-content h1,
    .html-widget .widget-content h2,
    .html-widget .widget-content h3,
    .html-widget .widget-content h4,
    .html-widget .widget-content h5,
    .html-widget .widget-content h6 {
        color: #f3f4f6;
    }
    
    .html-widget .widget-content a {
        color: #60a5fa;
    }
    
    .html-widget .widget-content a:hover {
        color: #93c5fd;
    }
    
    .html-widget .widget-content blockquote {
        background: #374151;
        border-left-color: #6b7280;
        color: #9ca3af;
    }
    
    .html-widget .widget-content code {
        background: #374151;
        color: #e5e7eb;
    }
    
    .html-widget .widget-content pre {
        background: #374151;
    }
    
    .html-widget .widget-content th,
    .html-widget .widget-content td {
        border-color: #4b5563;
    }
    
    .html-widget .widget-content th {
        background: #374151;
        color: #f3f4f6;
    }
}

/* Custom animation for widget appearance */
.fluent-sidebar-widget {
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading state */
.fluent-sidebar-widget.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fluent-sidebar-widget.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}