/**
 * Modern Check System Styles - 2025 Edition
 * Enhanced UI for the modernized check.php system
 */

/* Performance Debug Panel Styles */
#performance-debug-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #0f0;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    z-index: 99999;
    max-width: 280px;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Enhanced Status Display */
.status-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Professional Status Display Container */
.status-display-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 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, #ef4444, #f87171, #fca5a5, #f87171, #ef4444);
    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);
    }
    15% {
        background-position: -120% 0;
        opacity: 0.8;
        height: 5px;
        transform: scaleX(0.9);
    }
    30% {
        background-position: -50% 0;
        opacity: 0.95;
        height: 6px;
        transform: scaleX(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }
    45% {
        background-position: 0% 0;
        opacity: 1;
        height: 7px;
        transform: scaleX(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
    60% {
        background-position: 50% 0;
        opacity: 0.95;
        height: 6px;
        transform: scaleX(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }
    75% {
        background-position: 120% 0;
        opacity: 0.8;
        height: 5px;
        transform: scaleX(0.9);
    }
    90% {
        background-position: 180% 0;
        opacity: 0.7;
        height: 4px;
        transform: scaleX(0.85);
    }
    100% {
        background-position: 300% 0;
        opacity: 0.6;
        height: 4px;
        transform: scaleX(0.8);
    }
}

/* Enhanced lightning effect for critical status */
.status-hero-card.status-down::before {
    animation: lightning-charge-critical 2s ease-in-out infinite;
}

@keyframes lightning-charge-critical {
    0% {
        background-position: -200% 0;
        opacity: 0.7;
        height: 4px;
        transform: scaleX(0.8);
    }
    10% {
        background-position: -100% 0;
        opacity: 0.9;
        height: 6px;
        transform: scaleX(0.95);
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
    }
    20% {
        background-position: -20% 0;
        opacity: 1;
        height: 8px;
        transform: scaleX(1.1);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.9);
    }
    30% {
        background-position: 20% 0;
        opacity: 0.95;
        height: 7px;
        transform: scaleX(1.05);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
    }
    50% {
        background-position: 100% 0;
        opacity: 0.8;
        height: 5px;
        transform: scaleX(0.9);
    }
    70% {
        background-position: 150% 0;
        opacity: 0.7;
        height: 4px;
        transform: scaleX(0.85);
    }
    100% {
        background-position: 300% 0;
        opacity: 0.6;
        height: 4px;
        transform: scaleX(0.8);
    }
}

.status-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* Status Icon Container */
.status-icon-container {
    flex-shrink: 0;
}

.status-main-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.status-main-icon.status-up {
    color: #10b981;
}

.status-main-icon.status-down {
    color: #ef4444;
}

.status-main-icon.status-degraded {
    color: #f59e0b;
}

.status-main-icon.status-partial {
    color: #0ea5e9;
}

/* Status Text Section */
.status-text-section {
    flex: 1;
    min-width: 0;
}

.status-domain-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    word-break: break-word;
}

.status-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.status-message.status-up {
    color: #10b981;
}

.status-message.status-down {
    color: #ef4444;
}

.status-message.status-degraded {
    color: #f59e0b;
}

.status-message.status-partial {
    color: #0ea5e9;
}

/* Status Metadata */
.status-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.status-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.status-meta-item.reports-indicator {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.status-meta-item.recovery-indicator {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Status Actions */
.status-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-actions .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status Details Card */
.status-details-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.status-details-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.status-details-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
}

.status-details-content {
    padding: 1.5rem;
}

.status-explanation {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    background: rgba(59, 130, 246, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

/* Technical Information */
.technical-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.tech-info-item {
    text-align: center;
}

.tech-info-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tech-info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Animations */
@keyframes pulse-success {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes pulse-danger {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes pulse-warning {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes pulse-info {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse-success {
    animation: pulse-success 2s infinite ease-in-out;
}

.pulse-danger {
    animation: pulse-danger 1.5s infinite ease-in-out;
}

.pulse-warning {
    animation: pulse-warning 2s infinite ease-in-out;
}

.pulse-info {
    animation: pulse-info 2s infinite ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-hero-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .status-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .status-main-icon {
        font-size: 3rem;
    }
    
    .status-domain-name {
        font-size: 2rem;
    }
    
    .status-message {
        font-size: 1.25rem;
    }
    
    .status-metadata {
        justify-content: center;
        gap: 1rem;
    }
    
    .status-actions {
        justify-content: center;
    }
    
    .status-details-content {
        padding: 1rem;
    }
    
    .technical-info {
        padding: 1rem;
    }
    
    .tech-info-value {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .status-hero-card {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .status-domain-name {
        font-size: 1.75rem;
    }
    
    .status-message {
        font-size: 1.125rem;
    }
    
    .status-metadata {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .status-meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Professional Share Section */
.status-share-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.share-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.share-section-header h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn i {
    font-size: 1rem;
}

.social-btn span {
    font-weight: 500;
}

/* Social Button Colors */
.social-btn-twitter {
    background: #1da1f2;
    color: white;
}

.social-btn-twitter:hover {
    background: #1a91da;
    color: white;
}

.social-btn-facebook {
    background: #1877f2;
    color: white;
}

.social-btn-facebook:hover {
    background: #166fe5;
    color: white;
}

.social-btn-linkedin {
    background: #0a66c2;
    color: white;
}

.social-btn-linkedin:hover {
    background: #095ba0;
    color: white;
}

.social-btn-whatsapp {
    background: #25d366;
    color: white;
}

.social-btn-whatsapp:hover {
    background: #22c55e;
    color: white;
}

.social-btn-email {
    background: #6b7280;
    color: white;
}

.social-btn-email:hover {
    background: #4b5563;
    color: white;
}

/* Copy Link Section */
.copy-link-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
}

.copy-link-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.copy-link-group {
    display: flex;
    gap: 0.5rem;
}

.copy-link-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4b5563;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.copy-link-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.copy-link-btn {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
}

.copy-link-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.copy-link-btn i {
    font-size: 1rem;
}

/* Mobile Responsive for Share Section */
@media (max-width: 768px) {
    .status-share-section {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .social-share-buttons {
        gap: 0.5rem;
    }
    
    .social-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .social-btn i {
        font-size: 0.9rem;
    }
    
    .copy-link-section {
        padding: 1rem;
    }
    
    .copy-link-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .copy-link-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .status-share-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .social-share-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .social-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Recent Checks Section */
.recent-checks-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.recent-checks-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.recent-checks-header h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-checks-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.recent-checks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-check-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recent-check-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.check-status-indicator {
    flex-shrink: 0;
}

.check-status-indicator i {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.check-details {
    flex: 1;
    min-width: 0;
}

.check-main-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.check-status {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.check-response-time {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.check-http-code {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: white;
}

.check-http-code.code-2 {
    background: #10b981;
}

.check-http-code.code-3 {
    background: #0ea5e9;
}

.check-http-code.code-4 {
    background: #f59e0b;
}

.check-http-code.code-5 {
    background: #ef4444;
}

.check-timestamp {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.no-recent-checks {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive for Recent Checks */
@media (max-width: 768px) {
    .recent-checks-section {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .recent-check-item {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .check-status-indicator {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .check-details {
        width: 100%;
        text-align: center;
    }
    
    .check-main-info {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .check-timestamp {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .recent-checks-section {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .recent-check-item {
        padding: 0.75rem;
    }
    
    .check-main-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .check-status-indicator i {
        font-size: 1.5rem;
    }
}

/* Enhanced Recent Checks Styling */
.recent-check-item.enhanced {
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.recent-check-item.enhanced:hover {
    transform: translateX(2px);
    border-left-color: #0ea5e9;
}

.recent-check-item.enhanced.most-recent {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.user-reports-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

.check-main-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.performance-grade {
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: help;
}

.grade-excellent { background: #dcfce7; }
.grade-good { background: #fef3c7; }
.grade-fair { background: #fed7aa; }
.grade-poor { background: #fecaca; }
.grade-very-poor { background: #fca5a5; }

.performance-excellent { color: #059669; background: rgba(5, 150, 105, 0.1); }
.performance-good { color: #0891b2; background: rgba(8, 145, 178, 0.1); }
.performance-fair { color: #d97706; background: rgba(217, 119, 6, 0.1); }
.performance-poor { color: #dc2626; background: rgba(220, 38, 38, 0.1); }
.performance-very-poor { color: #991b1b; background: rgba(153, 27, 27, 0.1); }

.latest-badge {
    background: linear-gradient(45deg, #0ea5e9, #3b82f6);
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-context, .error-context {
    margin-top: 0.25rem;
    padding: 0.25rem 0;
}

.user-context small, .error-context small {
    font-size: 0.7rem;
    line-height: 1.3;
}

.check-actions {
    display: flex;
    align-items: center;
}

.toggle-details {
    transition: all 0.2s ease;
}

.toggle-details:hover {
    transform: scale(1.1);
}

.detailed-metrics {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.metrics-grid .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 0.8rem;
}

.metrics-grid .metric.full-width {
    grid-column: 1 / -1;
}

.metrics-grid .metric.error-detail {
    background: #fef2f2;
    border-color: #fecaca;
}

.metrics-grid .metric.error-detail .value {
    color: #dc2626;
    font-weight: 600;
}

.metrics-grid .metric .label {
    font-weight: 600;
    color: #6b7280;
}

.metrics-grid .metric .value {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #1f2937;
}

/* Enhanced responsiveness */
@media (max-width: 768px) {
    .recent-check-item.enhanced {
        padding: 0.75rem;
    }
    
    .check-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .check-actions {
        margin-top: 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-badge {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

.status-card.status-up {
    background: linear-gradient(135deg, #d1f2eb 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
}

.status-card.status-down {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
}

.status-card.status-degraded {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.status-card.status-partial {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 4px solid #0ea5e9;
}

/* Enhanced Pulsating Animation */
.pulsating-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulsate 2s infinite;
    box-shadow: 0 0 0 0 currentColor;
}

.pulsating-green {
    background-color: #10b981;
    color: #10b981;
}

.pulsating-red {
    background-color: #ef4444;
    color: #ef4444;
}

.pulsating-yellow {
    background-color: #f59e0b;
    color: #f59e0b;
}

.pulsating-blue {
    background-color: #0ea5e9;
    color: #0ea5e9;
}

@keyframes pulsate {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(currentColor, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(currentColor, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(currentColor, 0);
    }
}

/* Enhanced Voting Buttons */
.vote-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vote-btn.voted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #059669;
}

.vote-btn.voted::after {
    content: '✓';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* Enhanced Comment System */
/* Import Roboto font for YouTube-style comments */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* YouTube-Style Comments System */
.youtube-comments {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* YouTube Comment Form */
.youtube-comment-form {
    margin-bottom: 32px;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #065fd4, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.comment-input-container {
    position: relative;
}

.comment-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    line-height: 20px;
    background: transparent;
    resize: none;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    transition: all 0.2s ease;
}

.comment-input::placeholder {
    color: #606060;
}

.comment-input:focus {
    outline: none;
}

.comment-input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #ccc;
    transition: all 0.2s ease;
}

.comment-input:focus + .comment-input-border,
.comment-input-container:focus-within .comment-input-border {
    height: 2px;
    background: #065fd4;
}

.comment-expanded-options {
    margin-top: 16px;
}

.quick-reactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.quick-reactions small {
    white-space: nowrap;
    flex-shrink: 0;
}

.reaction-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 4px 12px;
    font-size: 12px;
    color: #606060;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.reaction-btn:hover {
    background: #f2f2f2;
    border-color: #909090;
}

.reaction-btn.active {
    background: #065fd4;
    border-color: #065fd4;
    color: white;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.character-count {
    font-size: 12px;
    color: #606060;
}

/* YouTube Comment Items */
.youtube-comment-item {
    margin-bottom: 16px;
    padding: 0;
    transition: all 0.2s ease;
}

.youtube-comment-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.youtube-comment-avatar img,
.youtube-comment-avatar div {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.youtube-comment-content {
    min-width: 0; /* Prevents flex item from overflowing */
}

.youtube-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.youtube-comment-author {
    font-size: 13px;
    font-weight: 500 !important;
    color: #0f0f0f;
    text-decoration: none;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin-left: 2px;
}

.youtube-comment-author:hover {
    color: #065fd4;
    cursor: pointer;
}

.youtube-comment-time {
    font-size: 12px;
    color: #606060;
    white-space: nowrap;
}

.youtube-comment-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
    margin-right: 2px;
}

.youtube-comment-text {
    font-size: 14px;
    line-height: 20px;
    color: #0f0f0f;
    word-wrap: break-word;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.youtube-comment-category .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: normal;
}

.youtube-comment-actions {
    margin-top: 4px;
}

.youtube-comment-btn {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 8px;
    color: #606060;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.youtube-comment-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.youtube-comment-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.youtube-vote-btn[data-voted="true"] {
    color: #065fd4;
}

.youtube-vote-btn[data-voted="true"]:hover {
    background: rgba(6, 95, 212, 0.1);
}

.reply-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.vote-count {
    font-size: 12px;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

/* YouTube Comment Form Interaction */
.comment-input:focus ~ .comment-expanded-options,
.comment-expanded-options.active {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .youtube-comment-form .d-flex {
        gap: 12px;
    }
    
    .user-avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .youtube-comment-avatar img,
    .youtube-comment-avatar div {
        width: 32px;
        height: 32px;
    }
    
    .youtube-comment-header {
        gap: 6px;
    }
    
    .youtube-comment-btn {
        padding: 6px;
        margin-right: 4px;
        font-size: 11px;
    }
    
    .quick-reactions {
        gap: 6px;
    }
    
    .reaction-btn {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* Legacy comment styles (keeping for backward compatibility) */
.comment-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.comment-item:hover {
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.comment-vote-btn {
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 12px;
    padding: 4px 8px;
}

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

.comment-vote-btn.voted {
    background-color: #10b981 !important;
    border-color: #059669 !important;
    color: white !important;
}

.chart-tabs .nav-link {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.chart-tabs .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Loading States */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Notifications */
.modern-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Debug Console */
#recheck-debug-console {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 12px;
    font-family: 'Fira Code', 'Courier New', monospace;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.debug-line {
    padding: 4px 8px;
    border-left: 3px solid transparent;
    font-size: 13px;
    line-height: 1.4;
}

.debug-line.success {
    color: #4ade80;
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.debug-line.error {
    color: #f87171;
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.debug-line.warning {
    color: #fbbf24;
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.debug-line.info {
    color: #60a5fa;
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

/* Enhanced Bulletproof Status */
#bulletproof-status {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 2px solid #0ea5e9 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

#bulletproof-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #6366f1, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

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

/* Enhanced Form Controls */
.form-control {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Statistics Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #performance-debug-panel {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        max-width: none;
    }
    
    .modern-notification {
        left: 10px;
        right: 10px;
        min-width: auto;
    }
    
    .comment-item {
        padding: 12px;
    }
    
    .stat-card {
        margin-bottom: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .status-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .comment-item {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .chart-container {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .stat-card {
        background: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus indicators */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .status-card {
        border: 2px solid;
    }
    
    .btn {
        border: 2px solid;
    }
    
    .comment-item {
        border: 2px solid;
    }
}
