/* Log Stream Terminal Styling */

.terminal-container {
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.terminal-body {
    line-height: 1.5;
}

/* Custom scrollbar for terminal */
.terminal-body::-webkit-scrollbar {
    width: 10px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0f172a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Firefox scrollbar */
.terminal-body {
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}

/* Log line styling */
.log-line {
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 2px 0;
    user-select: text;
    border-radius: 2px;
}

.log-line:hover {
    background: rgba(51, 65, 85, 0.3);
}

.log-line.system-message {
    text-align: center;
    padding: 0.75rem 0;
    margin: 0.5rem 0;
}

/* Selection styling for copy functionality */
.terminal-body ::selection {
    background: rgba(59, 130, 246, 0.5);
    color: white;
}

.terminal-body ::-moz-selection {
    background: rgba(59, 130, 246, 0.5);
    color: white;
}

/* Filter input dark theme styling */
#log-filter {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#log-filter:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

#log-filter::placeholder {
    color: #94a3b8 !important;
}

/* Action button hover effects */
#pause-btn:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.7) !important;
}

#copy-btn:hover {
    background: rgba(156, 163, 175, 0.25) !important;
    border-color: rgba(156, 163, 175, 0.6) !important;
    color: #d1d5db !important;
}

#clear-btn:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
}

a[href="/logs"]:hover {
    background: rgba(100, 116, 139, 0.25) !important;
    border-color: rgba(100, 116, 139, 0.6) !important;
    color: #cbd5e1 !important;
}

/* Pulse animation for connecting state */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll paused indicator animation */
#scroll-paused-indicator button {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-4px) translateX(-50%);
    }
}

/* Terminal header dots */
.terminal-header span.bg-red-500,
.terminal-header span.bg-yellow-500,
.terminal-header span.bg-green-500 {
    box-shadow: 0 0 4px currentColor;
}
