/* LLHub 自定义样式 */

/* 刷新按钮旋转动画 */
.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 卡片 hover 效果 */
.project-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* 编辑按钮 hover 时显示 */
.project-card .group-edit-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
}
.project-card:hover .group-edit-btn {
    opacity: 1;
}

/* 服务状态指示灯 */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.running {
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
.status-dot.stopped {
    background-color: #d1d5db;
}

/* 标签胶囊 */
.tag-pill {
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    line-height: 1.5;
}

/* 分组标题 */
.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.group-header .group-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.group-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
}
.group-header .count {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
}

/* 登录页面动画 */
#login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 跳转定位时的卡片高亮（2s 边框闪烁） */
.project-card-highlight {
    animation: card-flash 2s ease-out;
}
@keyframes card-flash {
    0%   { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.9); }
    50%  { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
