/**
 * AI状态指示器样式
 * 显示在导航栏右上角
 */

.ai-status-indicator {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--ls-bg-secondary);
    border: 1px solid var(--ls-border-color);
    border-radius: var(--ls-radius-md);
    cursor: pointer;
    transition: var(--ls-transition);
    font-size: 0.85rem;
    color: var(--ls-text-secondary);
}

.ai-status-indicator:hover {
    background: var(--ls-bg-primary);
    border-color: var(--ls-primary);
}

.ai-status-indicator .status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s ease-in-out infinite;
}

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

/* 绿灯：DeepSeek启用 */
.ai-status-indicator.status-active .status-light {
    background: #10b981;
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.ai-status-indicator.status-active {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* 黄灯：仅应用级AI */
.ai-status-indicator.status-limited .status-light {
    background: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.ai-status-indicator.status-limited {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

/* 红灯：所有AI功能都不可用 */
.ai-status-indicator.status-disabled .status-light {
    background: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.ai-status-indicator.status-disabled {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.ai-status-indicator .status-text {
    font-weight: 500;
    white-space: nowrap;
}

.ai-status-indicator .status-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--ls-bg-primary);
    border: 1px solid var(--ls-border-color);
    border-radius: var(--ls-radius-md);
    box-shadow: var(--ls-shadow-lg);
    font-size: 0.8rem;
    color: var(--ls-text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: var(--ls-transition);
    z-index: 1001;
    pointer-events: none;
}

.ai-status-indicator:hover .status-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-status-indicator .status-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--ls-bg-primary);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ai-status-indicator {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .ai-status-indicator .status-text {
        display: none;
    }

    .ai-status-indicator .status-light {
        width: 12px;
        height: 12px;
    }
}

