/* History Page Specific Styles */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000005;
    overflow-x: hidden;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 20px rgba(180, 210, 255, 0.3);
}

/* Message Card Styles */
.message-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.message-card[style*="cursor: pointer"]:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Message Content */
.message-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.6;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-enabled {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-disabled {
    background-color: rgba(107, 114, 128, 0.2);
    color: rgb(107, 114, 128);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Rating Indicators */
.rating-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.rating-positive {
    color: rgb(34, 197, 94);
}

.rating-negative {
    color: rgb(239, 68, 68);
}

.rating-neutral {
    color: rgb(107, 114, 128);
}

/* Timestamp */
.timestamp {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .message-content {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .status-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
    
    .timestamp {
        font-size: 0.625rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Fade in animation for messages */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Stats card hover effects */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Tab styles */
.tab-button {
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.tab-button:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}