/* Norwegian Travel Hub Dashboard Styles */
/* Glass & Steel Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #09090b; /* Zinc 950 */
    color: #a1a1aa; /* Zinc 400 */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Scan Animation */
@keyframes scan {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.scan-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    animation: scan 2s infinite ease-in-out;
    pointer-events: none;
}

/* Gradient Text */
.text-glow {
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Glass Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Progress Animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.6); }
}

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

/* Fade in animation for new rows */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Activity feed item */
.feed-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item .timestamp {
    color: #52525b;
    flex-shrink: 0;
}

.feed-item .status {
    flex-shrink: 0;
}

.feed-item .status.success {
    color: #22c55e;
}

.feed-item .status.info {
    color: #3b82f6;
}

.feed-item .status.error {
    color: #ef4444;
}

.feed-item .message {
    color: #a1a1aa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Type badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-badge.activity {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.type-badge.article {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #a78bfa;
}

.type-badge.accommodation {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.type-badge.restaurant {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.type-badge.event {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.type-badge.page {
    background: rgba(113, 113, 122, 0.1);
    border: 1px solid rgba(113, 113, 122, 0.2);
    color: #a1a1aa;
}

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

.spinner {
    animation: spin 1s linear infinite;
}

/* Progress bar */
.progress-bar {
    transition: width 0.3s ease-out;
}

/* Table row hover */
tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Connection status indicators */
.ws-connected {
    background-color: #22c55e;
}

.ws-disconnected {
    background-color: #ef4444;
}

.ws-connecting {
    background-color: #eab308;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
