/* 表格整体垂直居中 */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
    vertical-align: middle;
}

/* 状态容器 */
.monitor-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9em;
}

/* 第一行：红绿点 + 文字 */
.monitor-main {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* 呼吸灯效果的圆点 */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.status-dot.online {
    background-color: #2ea44f;
    box-shadow: 0 0 8px rgba(46, 164, 79, 0.4);
    animation: pulse-green 2s infinite;
}

.status-dot.down {
    background-color: #cb2431;
    box-shadow: 0 0 8px rgba(203, 36, 49, 0.4);
    animation: pulse-red 2s infinite;
}

.status-dot.unknown {
    background-color: #dbab09;
}

/* 第二行：详细数据徽章 */
.monitor-details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.monitor-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,245,248,0.5) 100%);
    font-size: 0.85em;
    color: #546e7a;
    border: 1px solid rgba(236, 64, 122, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.monitor-badge:hover {
    background: rgba(252, 228, 236, 0.4);
    border-color: rgba(236, 64, 122, 0.12);
}

/* 暗色模式适配 (MkDocs Material) */
[data-md-color-scheme="slate"] .monitor-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    color: #ddd;
    border: 1px solid rgba(255,255,255,0.06);
}

.monitor-badge .icon {
    margin-right: 4px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* 呼吸动画定义 */
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 164, 79, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 164, 79, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 164, 79, 0); }
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(203, 36, 49, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(203, 36, 49, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(203, 36, 49, 0); }
}

/* 优化你的按钮里的文字 */
.desc-text {
    display: block;
    font-size: 0.75em;
    opacity: 0.7;
    margin-top: 2px;
    font-weight: normal;
    line-height: 1.2;
}