/* Voting Options Design - Modern Card Layout */
.voting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0;
    padding: 10px 0;
}

.voting-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: rgba(220, 53, 69, 0.03);
    border: 1.5px solid rgba(220, 53, 69, 0.15);
    border-radius: 12px;
    min-height: 120px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-decoration: none;
    color: #374151;
    box-shadow: 0 1px 3px 0 rgba(220, 53, 69, 0.08);
}

.voting-option-card:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(220, 53, 69, 0.25);
}

.voting-option-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(220, 53, 69, 0.3);
}

.voting-option-card.success {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

    .voting-option-card.error {
        background: #dc3545 !important;
        border-color: #dc3545 !important;
        color: #ffffff !important;
    }

    /* Vote Chart 24h Styling */
    #vote-chart-container {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        padding: 16px;
        min-height: 200px;
    }

    #vote-chart {
        max-height: 200px;
    }

    #refresh-vote-chart {
        transition: all 0.2s ease;
    }

    /* Player Chart 24h Styling */
    #player-chart-container {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        padding: 16px;
        min-height: 200px;
    }

    #player-chart {
        max-height: 200px;
    }

    #vote-chart-no-data i {
        opacity: 0.5;
    }

    /* Comment System Styling */
    .comment-item {
        position: relative;
    }

    .comment-item:last-child {
        border-bottom: none !important;
    }

    .comment-author {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .comment-text {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #374151;
        word-wrap: break-word;
    }

    .comment-location {
        font-size: 0.8rem;
    }

    .comment-actions .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        border-width: 1px;
    }

    .vote-btn[data-active="true"] {
        font-weight: 600;
    }

    .vote-btn[data-active="true"].btn-outline-success {
        background-color: #198754;
        border-color: #198754;
        color: white;
    }

    .vote-btn[data-active="true"].btn-outline-danger {
        background-color: #dc3545;
        border-color: #dc3545;
        color: white;
    }

    .vote-count {
        margin-left: 0.25rem;
        font-weight: 500;
    }
</style>

<style>
.voting-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: inherit;
    transition: color 0.2s ease;
}

.voting-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    color: inherit;
    transition: color 0.2s ease;
}

.voting-option-card:hover .voting-icon,
.voting-option-card:hover .voting-text {
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voting-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .voting-option-card {
        min-height: 100px;
        padding: 15px 10px;
    }
    
    .voting-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .voting-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .voting-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .voting-option-card {
        min-height: 80px;
        padding: 12px 8px;
    }
}
</style>

<!-- Game Status Hero Section CSS -->
<style>
    /* Game Details Styling */
    
    .badge.bg-outline-secondary {
        background-color: #f8f9fa !important;
        color: #6c757d !important;
        border: 1px solid #dee2e6;
    }
    
    .requirements-container,
    .languages-container {
        max-width: 100%;
    }
    
    .requirements-content,
    .languages-content {
        background: #f8f9fa;
        border-radius: 6px;
        padding: 12px;
        font-size: 12px;
        line-height: 1.4;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .requirements-toggle,
    .languages-toggle {
        border: 1px solid #dee2e6;
        font-size: 12px;
        padding: 4px 8px;
        transition: all 0.2s ease;
    }
    
    .requirements-toggle:hover,
    .languages-toggle:hover {
        background-color: #e9ecef;
        transform: translateY(-1px);
    }
    
    /* Game Banner Styling */
    .game-banner-container {
        position: relative;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .game-banner-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
    
    .game-banner-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }
    
    @media (max-width: 768px) {
        .game-banner-container {
            max-width: 100%;
        }
    }

    /* 24-Hour Uptime Indicator Styles */
    .uptime-indicator-section {
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        padding: 16px;
        position: relative;
        overflow: hidden;
    }
    
    .uptime-indicator-section > * {
        position: relative;
        z-index: 2;
    }

    .uptime-indicator-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .uptime-indicator-header h6 {
        color: #374151;
        font-weight: 600;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .uptime-percentage {
        font-size: 1rem;
        font-weight: 700;
        color: #059669 !important;
    }

    .uptime-bars {
        height: 40px;
        padding: 4px 0;
        border-radius: 4px;
        background: #f8fafc;
    }
    
    /* Wrapper for 2-row layout on all devices */
    .uptime-bars-wrapper {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    /* Mobile: 2 rows with better spacing */
    @media (max-width: 767px) {
        .uptime-bars {
            height: 35px;
            padding: 3px 0;
        }
        
        .uptime-hour-bar {
            height: 28px;
        }
        
        .uptime-segment {
            min-width: 8px; /* Ensure segments are large enough to tap */
        }
    }

    /* Hour-level container for sub-segments */
    .uptime-hour-bar {
        flex: 1;
        height: 32px;
        display: flex;
        border-radius: 3px;
        overflow: hidden;
        margin-right: 2px;
        position: relative;
    }

    .uptime-hour-bar:last-child {
        margin-right: 0;
    }

    /* Individual 15-minute segments */
    .uptime-segment {
        flex: 1;
        height: 100%;
        transition: all 0.3s ease;
        cursor: pointer;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;
    }

    .uptime-segment:last-child {
        border-right: none;
    }

    /* Full-width segment for legacy single-bar mode */
    .uptime-segment-full {
        border-radius: 3px;
        border-right: none !important;
    }

    /* Hover effects for individual segments only */
    .uptime-segment:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 10;
        filter: brightness(1.1);
    }

    /* Remove hover from hour container */
    .uptime-hour-bar {
        /* No hover effects on container */
    }

    /* Legacy uptime-bar styles for compatibility */
    .uptime-bar {
        flex: 1;
        height: 32px;
        border-radius: 3px;
        position: relative;
        transition: all 0.3s ease;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .uptime-bar:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .uptime-bar.status-up, .uptime-segment.status-up {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .uptime-bar.status-partial, .uptime-segment.status-partial {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .uptime-bar.status-slow, .uptime-segment.status-slow {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .uptime-bar.status-down, .uptime-segment.status-down {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    /* REMOVED: Unknown status CSS - no longer needed */

    /* Recovery indicator - add pulsing animation and special styling */
    .uptime-segment.status-recovering {
        position: relative;
        animation: pulse-recovery 2s infinite;
        border: 2px solid #10b981 !important;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6) !important;
        /* Keep the underlying status color but add recovery border and glow */
    }
    
    .uptime-bar.status-recovering {
        position: relative;
        animation: pulse-recovery 2s infinite;
        border: 2px solid #10b981;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .uptime-bar.status-recovering::before, .uptime-segment.status-recovering::before {
        content: '📈';
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 10px;
        opacity: 0.8;
        z-index: 2;
    }

    @keyframes pulse-recovery {
        0% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
        50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
        100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
    }

    /* "Now" bar styling - make it more prominent */
    .uptime-bar.now-bar {
        border: 2px solid rgba(0, 123, 255, 0.3);
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
        position: relative;
    }

    .uptime-bar.now-bar::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 1px solid rgba(0, 123, 255, 0.4);
        border-radius: 4px;
        pointer-events: none;
        z-index: 1;
    }

    .uptime-time-labels {
        font-size: 11px;
        margin-top: 8px;
    }

    .now-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .now-arrow {
        color: #007bff;
        font-size: 14px;
        font-weight: bold;
        margin-top: 2px;
        animation: pulse-arrow 2s infinite;
    }

    @keyframes pulse-arrow {
        0%, 50%, 100% {
            opacity: 1;
            transform: translateY(0);
        }
        25% {
            opacity: 0.7;
            transform: translateY(-2px);
        }
    }

    .uptime-legend {
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }

    .legend-item {
        font-size: 12px;
    }

    .legend-bar {
        width: 12px;
        height: 8px;
        border-radius: 2px;
    }

    /* Legend bar colors matching status colors */
    .legend-bar.status-up {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .legend-bar.status-partial {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    .legend-bar.status-slow {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    }

    .legend-bar.status-down {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .legend-bar.status-recovering {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border: 1px solid #10b981;
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
    }    

    /* Status Hero Content with Background Astronaut */
    .status-hero-content {
        position: relative;
        min-height: 200px;
		display: block !important;
        padding: 0rem !important;
        z-index: 2;
    }

    /* Status icon container adjustments */
    .status-icon-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 1.5rem;
    }
    
    /* =============== ENHANCED DIALOGUE DESIGN =============== */
    .friendly-dialogue-enhanced {
        position: relative;
        background: linear-gradient(135deg, rgb(255 255 255 / 98%) 0%, rgb(255 255 255) 100%);
        border-radius: 20px;
        padding: 2rem;
        margin-bottom: 1.5rem;
        border: 1px solid rgb(75 73 73 / 20%);
        box-shadow: 0 3px 3px rgb(0 0 0 / 31%);
        backdrop-filter: blur(12px);
        overflow: hidden;
        min-height: 120px;
    }

    /* Astronaut Background Decoration */
    .astronaut-bg-decoration {
        position: absolute;
        top: 50%;
        right: 2rem;
        transform: translateY(-50%);
        width: 100px;
        height: 100px;
        z-index: 1;
        pointer-events: none;
    }

    .astronaut-decoration {
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 1;
        filter: contrast(1.2) saturate(0.8);
    }

    /* Content Wrapper */
    .dialogue-content-wrapper {
        position: relative;
        z-index: 2;
        max-width: calc(100% - 120px);
        padding-right: 1rem;
    }

    /* Game Title Section */
    .game-title-section {
        margin-bottom: 0.75rem;
    }

    .game-title-text {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.3;
        margin: 0;
        letter-spacing: -0.02em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* Question Section */
    .dialogue-question-section {
        margin-bottom: 1rem;
    }

    .dialogue-question-text {
        font-size: 1rem;
        font-weight: 400;
        color: #64748b;
        line-height: 1.4;
        margin: 0;
        padding: 0.5rem 0;
        font-style: italic;
        border: none;
        background: none;
    }
    
    /* Short Answer Section */
    .dialogue-short-answer {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.3;
        margin: 0;
        letter-spacing: -0.02em;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* Long Answer Container (Outside main dialogue) */
    .long-answer-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1.5rem;
        margin-top: 1rem;
        border: 1px solid rgb(75 73 73 / 20%);
    }

    .long-answer-content {
        font-size: 1rem;
        line-height: 1.7;
        color: #475569;
        margin: 0;
    }

    /* Categories Styling */
    .categories-inline {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .category-item {
        display: inline;
        margin-right: 0.25rem;
    }
    
    .category-item .text-danger {
        margin-left: 0.15rem;
    }

    /* =============== RESPONSIVE BREAKPOINTS FOR ENHANCED DIALOGUE =============== */

    /* Large Tablets (768px - 1024px) */
    @media (max-width: 1024px) {
        .friendly-dialogue-enhanced {
            padding: 1.75rem;
        }
        
        .game-title-text {
            font-size: 1.6rem;
        }
        
        .dialogue-question-text {
            font-size: 0.95rem;
        }
        
        .dialogue-short-answer {
            font-size: 1.6rem;
        }
        
        .long-answer-container {
            padding: 1.25rem;
        }
        
        .long-answer-content {
            font-size: 0.95rem;
        }
        
        .dialogue-answer-content {
            font-size: 1.15rem;
        }
        
        .astronaut-bg-decoration {
            width: 90px;
            height: 90px;
        }
        
        .dialogue-content-wrapper {
            max-width: calc(100% - 110px);
        }
    }

    /* Small Tablets (600px - 768px) */
    @media (max-width: 768px) {
        .friendly-dialogue-enhanced {
            padding: 1.5rem;
            border-radius: 16px;
        }
        
        .game-title-text {
            font-size: 1.4rem;
            line-height: 1.35;
        }
        
        .dialogue-question-text {
            font-size: 0.9rem;
        }
        
        .dialogue-short-answer {
            font-size: 1.4rem;
        }
        
        .long-answer-container {
            padding: 1.125rem;
        }
        
        .long-answer-content {
            font-size: 0.9rem;
            line-height: 1.6;
        }
        
        .astronaut-bg-decoration {
            width: 75px;
            height: 75px;
            right: 1.5rem;
        }
        
        .dialogue-content-wrapper {
            max-width: calc(100% - 95px);
            padding-right: 0.75rem;
        }
    }

    /* Mobile Landscape (480px - 600px) */
    @media (max-width: 600px) {
        .friendly-dialogue-enhanced {
            padding: 1.25rem;
            margin-bottom: 1.25rem;
        }
        
        .game-title-text {
            font-size: 1.25rem;
            line-height: 1.4;
            margin-bottom: 0.5rem;
            text-align: left;
        }
        
        .dialogue-question-text {
            font-size: 0.85rem;
            text-align: left;
        }
        
        .dialogue-short-answer {
            font-size: 1.25rem;
            text-align: left;
        }
        
        .long-answer-container {
            padding: 1rem;
        }
        
        .long-answer-content {
            font-size: 0.85rem;
            line-height: 1.65;
            text-align: left;
        }
        
        .astronaut-bg-decoration {
            width: 65px;
            height: 65px;
            top: 1.5rem;
            transform: none;
            right: 1.25rem;
        }
        
        .dialogue-content-wrapper {
            max-width: calc(100% - 85px);
            padding-right: 0.5rem;
        }
    }

    /* Mobile Portrait (320px - 480px) */
    @media (max-width: 480px) {
        .friendly-dialogue-enhanced {
            padding: 1rem;
            border-radius: 14px;
            min-height: 100px;
        }
        
        .dialogue-question-section {
            margin-bottom: 1rem;
        }
        
        .game-title-text {
            font-size: 1.15rem;
            line-height: 1.45;
            font-weight: 600;
            letter-spacing: -0.01em;
            text-align: left;
        }
        
        .dialogue-question-text {
            font-size: 0.8rem;
            text-align: left;
        }
        
        .dialogue-short-answer {
            font-size: 1.15rem;
            text-align: left;
        }
        
        .long-answer-container {
            padding: 0.875rem;
        }
        
        .long-answer-content {
            font-size: 0.8rem;
            line-height: 1.7;
            text-align: left;
        }
        
        .astronaut-bg-decoration {
            width: 55px;
            height: 55px;
            top: 1rem;
            right: 1rem;
        }       
        
        .dialogue-content-wrapper {
            max-width: calc(100% - 75px);
            padding-right: 0.25rem;
        }
    }


    /* Tooltip for uptime bars */
    .uptime-bar::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 12px;
        white-space: pre-line;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin-bottom: 5px;
        min-width: 120px;
        max-width: 300px;
        text-align: center;
    }

    .uptime-bar:hover::after {
        opacity: 1;
        visibility: visible;
    }

    /* Beautiful Custom Tooltip */
    .custom-tooltip {
        position: absolute;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #ffffff;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.4;
        white-space: pre-line;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 1000;
        pointer-events: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        transform: translateY(10px);
        min-width: 180px;
        max-width: 300px;
        text-align: left;
    }

    .custom-tooltip.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .custom-tooltip::before {
        content: '';
        position: absolute;
        top: -5px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid #1a1a1a;
    }
    
    /* Status metadata styling */
    .status-meta-item.categories-indicator {
        font-size: 0.875rem;
        color: #6b7280;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 0.375rem;
        padding: 0.5rem 0.75rem;
        margin-top: 0.5rem;
    }
    
    .status-meta-item.categories-indicator i {
        color: #3b82f6;
    }
    
    /* Recent Votes Design - Match check.php layout */
    .recent-votes-list {
        max-height: 400px;
        overflow-y: auto;
        padding: 0;
    }
    
    .vote-item {
        transition: background-color 0.2s ease;
        border-radius: 6px;
    }
    
    .vote-item:hover {
        background-color: #f8fafc;
    }
    
    .flag-container {
        flex-shrink: 0;
    }
    
    .country-flag {
        width: 24px;
        height: 18px;
        border-radius: 3px;
        object-fit: cover;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .vote-details {
        min-width: 0;
    }
    
    .vote-category {
        font-weight: 500;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
    }
    
    .vote-category i {
        margin-right: 0.25rem;
    }
    
    .vote-location {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .vote-time {
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    /* Pagination styles */
    .votes-pagination .pagination {
        margin-bottom: 0;
    }
    
    .votes-pagination .page-link {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .votes-pagination .page-item.active .page-link {
        background-color: #dc3545;
        border-color: #dc3545;
    }
    }
    
    .vote-category i {
        margin-right: 0.5rem;
        color: #dc2626;
    }
    
    .vote-meta {
        color: #6b7280;
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .vote-comment {
        color: #374151;
        font-size: 0.8rem;
        line-height: 1.4;
        font-style: italic;
        margin-top: 0.25rem;
    }
    
    .vote-time {
        color: #9ca3af;
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }
    
    /* Responsive adjustments for recent votes */
    @media (max-width: 768px) {
        .recent-vote-item {
            padding: 0.5rem;
        }
        
        .vote-avatar {
            width: 28px;
            height: 28px;
            font-size: 0.7rem;
        }
    }
    
    /* Empty state styling */
    .recent-votes-empty {
        text-align: center;
        padding: 2rem 1rem;
        color: #6b7280;
    }
    
    .recent-votes-empty i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #d1d5db;
    }   
    
    .status-timeline {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, rgb(255 255 255), rgb(255 255 255));
    border-radius: 16px;
    border: 1px solid rgb(37 37 37 / 15%);
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 3px -1px rgb(0 0 0 / 15%);
    }
    
    .timeline-item {
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(203, 213, 225, 0.2);
        transition: all 0.2s ease;
    }
    
    .timeline-item:hover {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        margin: 0 -0.5rem;
    }
    
    .timeline-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .timeline-item:first-child {
        padding-top: 0;
    }
    
    .timeline-content {
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .timeline-content i {
        font-size: 1.1rem;
        opacity: 0.9;
        min-width: 20px;
    }
    
    .timeline-text {
        line-height: 1.4;
        font-size: 0.9rem;
        font-weight: 400;
        color: #000000 !important;
    }
    
    .timeline-categories {
        margin-top: 0; /* Removed top margin */
    }
    
    .timeline-categories .categories-inline {
        font-size: 0.85rem;
    }
    
    /* Make vote categories display in red color */
    .timeline-categories .text-danger,
    .timeline-categories .category-item .text-danger {
        color: #dc3545 !important;
    }
    
    .timeline-timestamp {
        font-size: 0.8rem;
        font-weight: 400;
        opacity: 0.7;
        margin-left: 1rem;
        color: #000000 !important;
    }   
    
    /* Category breakdown styling */
    .category-row {
        background: rgba(248, 249, 250, 0.8);
        border-radius: 6px;
        padding: 8px 12px !important;
        margin: 4px 0;
        border-left: 3px solid #dee2e6;
        transition: all 0.2s ease;
    }
    
    .category-row:hover {
        background: rgba(233, 236, 239, 0.9);
        border-left-color: #007bff;
    }
    
    .category-name {
        font-weight: 500 !important;
        color: #495057 !important;
    }
    
    .category-stats {
        font-size: 0.85em !important;
        background: #e9ecef !important;
        color: #495057 !important;
        border: 1px solid #ced4da !important;
    }
    
    .timeline-content small.text-muted {
        display: block;
        margin-top: 8px;
        font-weight: 600 !important;
        color: #6c757d !important;
    }
    
    .timeline-item {
        color: #000000 !important;
    }
        white-space: nowrap;
        min-width: fit-content;
    }
    
    /* Mobile responsive */
    @media (max-width: 768px) {
        .status-timeline {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 12px;
        }
        
        .category-row {
            flex-direction: column;
            align-items: flex-start !important;
            gap: 4px;
        }
        
        .category-stats {
            align-self: flex-end;
        }
        
        .timeline-item {
            flex-direction: column;
            align-items: flex-start;
            padding: 0.6rem 0;
        }
        
        .timeline-content {
            width: 100%;
            margin-bottom: 0.25rem;
        }
        
        .timeline-text {
            font-size: 0.85rem;
        }
        
        .timeline-timestamp {
            margin-left: 0;
            font-size: 0.75rem;
            padding-left: 1.6rem; /* Align with text after icon */
        }
        
        .timeline-content i {
            font-size: 1rem;
        }
    }
    }
    
    /* Responsive dialogue styling */
    @media (max-width: 768px) {
        .dialogue-question {
            font-size: 1.25rem;
        }
        
        .dialogue-answer {
            font-size: 1rem;
        }
        
        .friendly-dialogue {
            padding: 1rem;
        }
    }
    
    /* =============== ACCESSIBILITY & ENHANCEMENTS =============== */
    
    /* Text Selection Styling */
    .dialogue-question-text::selection,
    .dialogue-answer-content::selection {
        background: rgba(59, 130, 246, 0.2);
        color: inherit;
    }

    /* Accessibility Improvements */
    @media (prefers-reduced-motion: reduce) {
        .friendly-dialogue-enhanced {
            transition: none;
        }      
    }

    /* High Contrast Mode */
    @media (prefers-contrast: high) {
        .friendly-dialogue-enhanced {
            background: #ffffff;
            border: 2px solid #000000;
            box-shadow: none;
        }
        
        .dialogue-question-text {
            color: #000000;
            text-shadow: none;
        }
        
        .dialogue-answer-content {
            color: #000000;
        }
    }

    /* Dark Mode Support */
    @media (prefers-color-scheme: dark) {
        .friendly-dialogue-enhanced {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
            border-color: rgba(71, 85, 105, 0.6);
            color: #e2e8f0;
        }
        
        .game-title-text {
            color: #f1f5f9;
        }
        
        .dialogue-question-text {
            color: #94a3b8;
        }
        
        .dialogue-short-answer {
            color: #f1f5f9;
        }
        
        .long-answer-container {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%);
            border-color: rgba(71, 85, 105, 0.6);
        }
        
        .long-answer-content {
            color: #cbd5e1;
        }
        
        .categories-inline {
            color: #e2e8f0;
        }
        
        .timeline-categories {
            color: #cbd5e1;
        }
    }

    /* Focus States for Accessibility */
    .friendly-dialogue-enhanced:focus-within {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }
    