/**
 * Companies Status Page Styles
 * Extracted from check2.php to improve organization and maintainability
 */

/* ===================================
   🌟 RATING SYSTEM STYLES
   ================================== */

/* Rating button styles */
.rating-btn.selected {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    transform: scale(1.05);
}

.rating-btn.average-display {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.rating-btn {
    transition: all 0.2s ease-in-out;
}

/* Website banner styling */
.website-banner-image {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Rating section general styles */
.rating-section {
    padding: 1rem 0;
    border-radius: 12px;
    margin: 2rem 0;
}

.rating-stars-large {
    text-align: center;
    margin-bottom: 0.5rem;
}

.rating-stars-large i {
    font-size: 1.5rem !important;
    margin-right: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.rating-info {
    text-align: center;
    font-weight: 500;
}

.rating-voting-section {
}

.rating-label-button {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* Rating button group styling */
.btn-group .rating-btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 0 1px;
    min-width: 70px;
}

.btn-group .rating-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-group .rating-btn:active {
    transform: translateY(0);
}

/* Mobile responsive styling */
@media (max-width: 768px) {
    .rating-section {
        padding: 1.5rem 0;
        margin: 1rem 0;
    }
    
    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-group .rating-btn {
        flex: 1;
        min-width: auto;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    #rating-label-mobile {
        margin-bottom: 1rem;
    }
}

/* Rating stars animation */
.rating-stars-large i {
    transition: all 0.3s ease;
}

.rating-stars-large:hover i {
    transform: scale(1.1);
}

/* Rating button wave effect */
.btn-wave {
    position: relative;
    overflow: hidden;
}

.btn-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-wave:active::before {
    width: 300px;
    height: 300px;
}

.btn-wave span {
    position: relative;
    z-index: 1;
}

/* ===================================
   📄 STATUS PAGE LAYOUT
   ================================== */

/* Status Page Layout */
.status-page-content {
    padding: 2rem 0;
}

.status-page-content section {
    margin-bottom: 2rem;
}

/* Status Hero Section */
.status-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.status-hero-section .container {
    max-width: 1200px;
}

.status-hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.status-hero-section .status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
}

.status-hero-section .status-indicator.status-up {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
}

.status-hero-section .status-indicator.status-down {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
}

.status-hero-section .status-indicator.status-issues {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
}

/* Uptime Chart Section */
.uptime-chart-section .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.uptime-chart-container {
    margin: 1rem 0;
}

.uptime-bars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f8f9fa;
    border-radius: 8px;
}

  .uptime-hour-bar {
    flex: 1;
    height: 26px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
                
.uptime-hour-bar:last-child {
    margin-right: 0;
}

.uptime-segment {
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.uptime-segment:hover {
    transform: scaleY(1.1);
    z-index: 10;
    position: relative;
}

/* Uptime Status Colors */
                .uptime-segment:last-child {
                    border-right: none;
                }
                
                .uptime-segment-full {
                    border-radius: 2px;
                    border-right: none !important;
                }
                
                .uptime-segment:hover {
                    transform: translateY(-1px);
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
                    z-index: 10;
                    filter: brightness(1.1);
                }
                
                .uptime-segment.status-up {
                    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                }
                
                .uptime-segment.status-partial {
                    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
                }
                
                .uptime-segment.status-slow {
                    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
                }
                
                .uptime-segment.status-down {
                    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
                }
                
                .uptime-segment.status-unknown {
                    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
                }
                
                .uptime-segment.status-recovering {
                    position: relative;
                    animation: pulse-recovery 2s infinite;
                    border: 1px solid #10b981;
                    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                }
                
                @keyframes pulse-recovery {
                    0% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
                    50% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
                    100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
                }

/* Uptime Indicator Section */
.uptime-indicator-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

.uptime-indicator-header {
    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 Indicator Container */
.uptime-indicator-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Uptime Bars */
.uptime-bars {
    height: 40px;
    border-radius: 4px;
    background: #f8fafc;
}

/* Now Hour Bar - special styling for current hour */
.now-hour-bar {
    position: relative;
}

.now-hour-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;
}

/* Now Indicator */
.now-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 0.5rem;
}

.now-indicator small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #007bff;
}

/* Uptime Legend */
.uptime-legend {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.legend-item {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.legend-bar {
    width: 12px;
    height: 8px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

/* 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);
}

/* Recovery animation */
@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); }
}

/* Enhanced segment hover effects */
.uptime-segment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    filter: brightness(1.1);
}

/* Focus state for accessibility */
.uptime-segment:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mobile responsive styles for uptime bars */
@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 */
    }
	
	.uptime-legend {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Custom Tooltips */
.custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-tooltip.show {
    opacity: 1;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Timeline Section */
.timeline-section .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.timeline-stats {
    padding: 1.5rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.timeline-stats .status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-stats .status-indicator i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.timeline-stats .status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-stats .uptime-info,
.timeline-stats .response-time-info,
.timeline-stats .reports-info,
.timeline-stats .affected-regions {
    margin-top: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.timeline-stats h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Vote Chart Section */
.recent-votes-section .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Vote Chart Section */
.vote-chart-section .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#vote-chart-container {
    min-height: 200px;
}

.initial-vote-stats {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Comments Section */
.comments-section .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.comments-loading {
    padding: 2rem;
}

/* SEO Content - Hidden but available for search engines */
.seo-status-content,
.seo-uptime-bars,
.seo-comments,
.seo-vote-stats,
.seo-recent-votes {
    display: none !important;
}

/* Recent Votes Design - Match the reference image */
.recent-votes-list {
    padding: 0;
    margin: 0;
}

.recent-vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recent-vote-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.vote-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.vote-prefix {
    color: #6b7280;
    font-size: 14px;
}

.vote-flag-container {
    width: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.country-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.vote-country {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.vote-action {
    color: #6b7280;
    font-size: 14px;
}

.vote-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.vote-badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.vote-badge-yellow {
    background: #fef3c7;
    color: #d97706;
}

.vote-badge-blue {
    background: #dbeafe;
    color: #2563eb;
}

.vote-badge-gray {
    background: #f3f4f6;
    color: #6b7280;
}

.vote-badge-default {
    background: #f3f4f6;
    color: #6b7280;
}

.vote-time {
    color: #312c2c;
    font-size: 0.8rem;
    font-weight: 300;
    white-space: nowrap;
}

/* Vote Loading State */
.vote-loading-state {
    padding: 2rem;
    text-align: center;
}

/* Vote Chart 24h Styling */
#vote-chart-container {
    background: #ffffff;
    min-height: 200px;
}

#vote-chart {
    max-height: 200px;
}

#refresh-vote-chart {
    transition: all 0.2s ease;
}

#refresh-vote-chart:hover {
    background-color: #f8f9fa;
    border-color: #d1d5db;
}

#vote-chart-no-data i {
    opacity: 0.5;
}

/* Chart container dimensions */
.vote-chart-container {
    min-height: 320px;
    position: relative;
}

.chart-container {
    min-height: 450px;
    height: 450px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin: 8px 0;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 8px;
}

#chart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#charts-container {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    height: calc(100vh - 300px);
    min-height: 500px;
}

.chart-container.d-none {
    display: none !important;
}

.chart-tab {
    border: none;
    background: transparent;
    color: #6c757d;
    transition: all 0.3s ease;
}

.chart-tab.active {
    background: var(--bs-primary);
    color: white;
}

.chart-tab:hover:not(.active) {
    background: var(--bs-light);
    color: var(--bs-primary);
}

/* Modern chart tabs styling */
.chart-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #3b82f6 !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.chart-tab {
    transition: all 0.2s ease;
    border-radius: 8px !important;
}

.chart-tab:hover:not(.active) {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

/* 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-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 for voting grid */
@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;
    }
    
    .voting-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .voting-text {
        font-size: 12px;
    }
}

/* Response Time Chart Styling */
.response-time-chart-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

.response-time-chart-header h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 8px;
}

#status-response-time-chart-container {
    min-height: 150px;
}

#status-response-time-chart {
    max-height: 150px;
}

#status-response-time-no-data i {
    opacity: 0.6;
}

/* Chart loading states */
#vote-chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
}

#vote-chart-no-data {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

/* Chart status indicators */
#chart-status-indicator {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
}

#baseline-indicator {
    display: none;
    font-size: 0.75rem;
}

/* Votes Pagination Styling */
.votes-pagination {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.votes-pagination .pagination {
    margin-bottom: 8px;
}

.votes-pagination .page-link {
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 8px 12px;
}

.votes-pagination .page-link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.votes-pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
}

.votes-pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #ffffff;
    border-color: #e5e7eb;
}

/* Responsive adjustments for recent votes */
@media (max-width: 768px) {
    .recent-vote-item {
        flex-direction: column;
        align-items: center;
    }
    
    .vote-user-info {
        justify-content: center;
        margin-bottom: 0.7rem;
        row-gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    /* Keep "A user from [flag][country]" on same line */
    .vote-user-info .vote-prefix,
    .vote-flag-container,
    .vote-user-info .vote-country {
        display: inline;
    }
    
    /* Stack the action and badge on separate lines */
    .vote-user-info .vote-action,
    .vote-user-info .vote-badge {
        display: block;
    }
    
    .vote-flag-container {
        display: inline-flex;
        align-items: center;
    }
    
    .vote-time {
        margin-left: 0;
        align-self: center;
        text-align: center;
        width: 100%;
        margin-top: 4px;
    }
}

@media (max-width: 468px) {
    .vote-badge {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        text-transform: capitalize;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-hero-section {
        padding: 2rem 0;
    }
    
    .status-hero-section h1 {
        font-size: 2rem;
    }
    
    .uptime-bars-wrapper {
        gap: 1px;
        padding: 0.5rem;
    }
    
    .uptime-segment {
        min-height: 10px;
    }
    
    .timeline-stats {
        padding: 1rem;
    }
    
    .custom-tooltip {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .status-page-content {
        padding: 1rem 0;
    }
    
    .status-page-content section {
        margin-bottom: 1.5rem;
    }
    
    .uptime-hour-bar {
        min-height: 40px;
    }
    
    .uptime-segment {
        min-height: 8px;
    }
}

/* Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus and Accessibility */
.uptime-segment:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.status-indicator:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .uptime-bars-wrapper {
        background: #2d3748;
    }
    
    .timeline-stats {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .timeline-stats .uptime-info,
    .timeline-stats .response-time-info,
    .timeline-stats .reports-info,
    .timeline-stats .affected-regions {
        background: #4a5568;
    }
    
    .initial-vote-stats {
        background: #2d3748;
        color: #e2e8f0;
    }
}

/* Print Styles */
@media print {
    .status-page-content {
        padding: 0;
    }
    
    .status-hero-section {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .uptime-bars-wrapper {
        background: white !important;
        border: 1px solid #ddd;
    }
    
    .custom-tooltip {
        display: none !important;
    }
}

/* ==================== YOUTUBE-STYLE COMMENTS SECTION ==================== */
/* Comments Section Enhancements */
.comments-section {
    background: #fff;
    margin-top: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* YouTube-style Comments Container */
.youtube-comments {
    background: transparent;
    padding: 2rem;
}


/* User Avatar in Comment Form */
.comment-avatar-input {
    flex-shrink: 0;
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #020202);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Comment Input Field */
.comment-input-container {
    position: relative;
    width: 100%;
}

.comment-input-border {
	background: #000 !important;
}

.comment-input {
    border: none;
    border-bottom: 1px solid #8b808029;
    background: transparent;
    resize: none;
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
}

.comment-input:focus {
    border-bottom-color: #35bd05;
    box-shadow: none;
}

.comment-input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d6efd, #198754);
    transition: width 0.3s ease;
}

.comment-input:focus + .comment-input-border {
    width: 100%;
}

/* Expanded Options */
.comment-expanded-options {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.comment-expanded-options.active,
.comment-expanded-options.show {
    opacity: 1;
    max-height: 300px;
}

/* Quick Reactions */
.quick-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.reaction-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.reaction-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
}

.reaction-btn.selected {
    background: linear-gradient(135deg, #0d6efd, #198754);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

/* Character Count */
.character-count {
    font-size: 12px;
    font-weight: 500;
}

/* Comment Form Actions */
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.comment-form-actions .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comment-form-actions .btn:hover {
    transform: translateY(-1px);
}

.comment-form-actions .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #198754);
    border: none;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

/* Comments Container */
#comments-container {
    min-height: 200px;
}

.initial-comments-content {
    margin-bottom: 2rem;
}

/* Individual Comment Styling */
.comment-item,
.youtube-comment-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar,
.youtube-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #198754, #0d6efd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.youtube-comment-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.youtube-comment-avatar-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.youtube-comment-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.youtube-comment-author {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.youtube-comment-time {
    color: #6c757d;
    font-size: 12px;
}

.youtube-comment-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}

.youtube-comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.youtube-comment-btn,
.youtube-vote-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
}

.youtube-comment-btn:hover,
.youtube-vote-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.youtube-comment-btn.voted,
.youtube-vote-btn.voted {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.comment-meta {
    flex-grow: 1;
}

.comment-author {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.comment-date {
    color: #6c757d;
    font-size: 12px;
}

.comment-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-vote-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
}

.comment-vote-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.comment-vote-btn.voted {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

/* Flag Displays */
.comment-flags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.country-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Comments Pagination */
.comments-pagination {
    margin-top: 2rem;
    text-align: center;
}

.comments-pagination .btn {
    border-radius: 20px;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.comments-pagination .btn:hover {
    transform: translateY(-1px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .youtube-comments {
        padding: 1rem;
    }
    
    .quick-reactions {
        justify-content: flex-start;
    }
    
    .reaction-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .comment-form-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .user-avatar-placeholder,
    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .comment-item {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .comment-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .quick-reactions {
        gap: 6px;
    }
    
    .reaction-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .comment-form-actions .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item {
    animation: fadeInUp 0.4s ease;
}

/* Focus States for Accessibility */
.comment-input:focus,
.reaction-btn:focus,
.comment-vote-btn:focus {
    outline-offset: 2px;
}

/* Status-specific styles */
.comment-status.working { background: rgba(25, 135, 84, 0.1); color: #198754; }
.comment-status.down { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.comment-status.slow { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.comment-status.timeout { background: rgba(108, 117, 125, 0.1); color: #6c757d; }
.comment-status.error { background: rgba(255, 87, 34, 0.1); color: #ff5722; }
.comment-status.maintenance { background: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.comment-status.partial { background: rgba(255, 152, 0, 0.1); color: #ff9800; }
.comment-status.fast { background: rgba(76, 175, 80, 0.1); color: #4caf50; }

/* Empty State Styling */
.text-center.py-4.text-muted {
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px dashed #dee2e6;
}

.text-center.py-4.text-muted i {
    color: #ced4da;
}

/* ==================== END YOUTUBE-STYLE COMMENTS SECTION ==================== */

/* ===================================
   📊 STATUS TIMELINE STYLES
   ================================== */

/* Enhanced timeline styling for status metadata */
.status-timeline-section {
    margin-top: 1.5rem;
}

.status-timeline-section .card {
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.status-timeline-section .card-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-timeline {
    margin-top: 0;
}

.timeline-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-item:first-child {
    padding-top: 0;
}

.timeline-item:hover {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background: rgba(255,255,255,.3);
    border-radius: 8px;
    margin: 0 -0.5rem;
}

.timeline-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-content i {
    opacity: 0.9;
    min-width: 20px;
}

.timeline-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
    color: #000 !important;
}

.timeline-text-content {
    flex: 1;
}

.timeline-timestamp {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: auto;
    font-weight: 400;
    color: #000 !important;
}

.timeline-categories {
    width: 100%;
    margin-top: 0.5rem;
}

.categories-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.category-item {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
    display: inline-flex;
    align-items: center;
}

/* Status-specific timeline icon colors */
.timeline-item[data-stat-type="status"] .timeline-content i {
    color: #198754 !important;
}

.timeline-item[data-stat-type="trend"] .timeline-content i {
    color: #0dcaf0 !important;
}

.timeline-item[data-stat-type="recovery"] .timeline-content i {
    color: #0d6efd !important;
}

.timeline-item[data-stat-type="reports"] .timeline-content i {
    color: #ffc107 !important;
}

.timeline-item[data-stat-type="outage"] .timeline-content i {
    color: #dc3545 !important;
}

.timeline-item[data-stat-type="features"] .timeline-content i {
    color: #dc3545 !important;
}

/* Responsive timeline adjustments */
@media (max-width: 768px) {
    .status-timeline-section .card-body {
        padding: 1rem;
    }
    
    .timeline-item {
        padding: 0.5rem 0;
    }
    
    .timeline-text {
        font-size: 0.8rem;
    }
    
    .timeline-item:hover {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }
}

  /* Main Status Hero Card */
        .status-hero-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.05);
            padding: 2.5rem;
            margin-bottom: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .status-hero-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            opacity: 0.9;
            animation: lightning-charge 3s ease-in-out infinite;
        }

        /* Dynamic Status-Based Gradients */
        .status-hero-card.status-up::before {
            background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #34d399, #10b981);
            background-size: 200% 100%;
        }

        .status-hero-card.status-down::before {
            background: linear-gradient(90deg, #f5420c, #e32d10, #cb0c0c, #ed3706, #fd0909);
            background-size: 200% 100%;
        }

        .status-hero-card.status-degraded::before {
            background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d, #fbbf24, #f59e0b);
            background-size: 200% 100%;
        }

        .status-hero-card.status-partial::before {
            background: linear-gradient(90deg, #0ea5e9, #38bdf8, #7dd3fc, #38bdf8, #0ea5e9);
            background-size: 200% 100%;
        }

        .status-hero-card.status-working::before {
            background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #34d399, #10b981);
            background-size: 200% 100%;
        }

        .status-hero-card.status-issues::before {
            background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d, #fbbf24, #f59e0b);
            background-size: 200% 100%;
        }

        /* Lightning Charge Animation */
        @keyframes lightning-charge {
            0% {
                background-position: -200% 0;
                opacity: 0.6;
                height: 4px;
                transform: scaleX(0.8);
            }
            50% {
                background-position: 50% 0;
                opacity: 1;
                height: 6px;
                transform: scaleX(1);
                box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
            }
            100% {
                background-position: 300% 0;
                opacity: 0.6;
                height: 4px;
                transform: scaleX(0.8);
            }
        }

        /* Enhanced Friendly Dialogue System */
        .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: 1.2rem;
            font-weight: 400;
            color: #000000;
            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 */
        .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;
        }

        /* Responsive design for dialogue system */
        @media (max-width: 768px) {
            .status-hero-card {
                padding: 1.5rem;
                margin-bottom: 1rem;
            }
            
            .friendly-dialogue-enhanced {
                padding: 1.5rem;
                min-height: 100px;
            }
            
            .astronaut-bg-decoration {
                width: 80px;
                height: 80px;
                right: 1rem;
            }
            
            .dialogue-content-wrapper {
                max-width: calc(100% - 100px);
            }
            
            .game-title-text {
                font-size: 1.5rem;
            }
            
            .dialogue-question-text {
                font-size: 0.9rem;
            }
            
            .dialogue-short-answer {
                font-size: 1.5rem;
            }
            
            .long-answer-container {
                padding: 1rem;
            }
        }

        @media (max-width: 576px) {
            .status-hero-card {
                padding: 0.4rem;
                border-radius: 16px;
            }
            
            .friendly-dialogue-enhanced {
                padding: 1rem;
                min-height: 80px;
            }
            
            .astronaut-bg-decoration {
                width: 60px;
                height: 60px;
                right: 0.5rem;
                top: 1rem;
                transform: none;
            }
            
            .dialogue-content-wrapper {
                max-width: calc(100% - 70px);
                padding-right: 0;
            }
            
            .game-title-text {
                font-size: 1.25rem;
            }
            
            .dialogue-question-text {
                font-size: 0.85rem;
            }
            
            .dialogue-short-answer {
                font-size: 1.25rem;
            }
        }

/* Mobile pagination optimization - hide Previous/Next text, show only arrows */
@media (max-width: 768px) {
    .recent-votes-pagination .page-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hide "Previous" and "Next" text on mobile */
    .recent-votes-pagination .page-item:first-child .page-link,
    .recent-votes-pagination .page-item:last-child .page-link {
        font-size: 0;
        padding: 0.57rem 0.75rem;
        min-width: 40px;
        text-align: center;
    }
    
    /* Show only arrow icons on mobile */
    .recent-votes-pagination .page-item:first-child .page-link:before {
        content: "";
        font-size: 1.2rem;
        font-weight: bold;
    }
    
    .recent-votes-pagination .page-item:last-child .page-link:before {
        content: "";
        font-size: 1.2rem;
        font-weight: bold;
    }
    
    /* If Bootstrap icons are used instead */
    .recent-votes-pagination .page-item:first-child .page-link .bi-chevron-left:before {
        font-size: 1.2rem;
    }
    
    .recent-votes-pagination .page-item:last-child .page-link .bi-chevron-right:before {
        font-size: 1.2rem;
    }
    
    /* Hide any text content in first/last pagination items */
    .recent-votes-pagination .page-item:first-child .page-link *:not(.bi),
    .recent-votes-pagination .page-item:last-child .page-link *:not(.bi) {
        display: none;
    }
}
		