/* LM Studio Status Indicator in Header */

.lm-studio-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 15px;
    transition: all 0.3s ease;
}

.lm-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFA500;
    animation: pulse 2s infinite;
    transition: background 0.3s ease;
}

.lm-status-dot.connected {
    background: #10B981;
    animation: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.lm-status-dot.disconnected {
    background: #DC143C;
    animation: pulse 2s infinite;
}

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

.lm-status-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.lm-status-text a {
    color: #10B981;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.lm-status-text a:hover {
    color: #34D399;
}

/* Hover effect for the status container */
.lm-studio-status:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    cursor: help;
}

/* Tooltip on hover */
.lm-studio-status::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.lm-studio-status[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lm-studio-status {
        padding: 6px 10px;
        margin-right: 10px;
    }

    .lm-status-text {
        font-size: 0.8rem;
    }

    .lm-status-dot {
        width: 8px;
        height: 8px;
    }

    /* Hide text on very small screens, show only dot */
    @media (max-width: 480px) {
        .lm-status-text {
            display: none;
        }

        .lm-studio-status {
            padding: 8px;
            margin-right: 5px;
        }
    }
}