/* Realtime Status - 系統托盤實時狀態顯示 */

/* 狀態容器 - 嵌入系統托盤 */
.status-tray {
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
    max-width: 200px;
    overflow: hidden;
}

/* 狀態指示燈 */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--win98-gray-dark);
}

.status-indicator.online {
    background-color: var(--win98-dark-green);
}

.status-indicator.offline {
    background-color: var(--win98-gray-dark);
}

/* 狀態文字 - 滾動效果 */
.status-text {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    color: var(--win98-black);
    cursor: default;
    line-height: var(--taskbar-height);
}

/* 音樂圖標動畫 */
.status-music-icon {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    height: 14px;
    margin-right: 2px;
}

.status-music-icon .bar {
    width: 2px;
    height: 8px;
    background-color: var(--win98-black);
    animation: musicBounce 0.6s ease-in-out infinite alternate;
}

.status-music-icon .bar:nth-child(2) {
    animation-delay: 0.15s;
}

.status-music-icon .bar:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes musicBounce {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* 懸停提示框 */
.status-tooltip {
    display: none;
    position: absolute;
    bottom: var(--taskbar-height);
    right: 0;
    min-width: 220px;
    max-width: 300px;
    background-color: var(--win98-gray);
    border-top: 2px solid var(--win98-white);
    border-left: 2px solid var(--win98-white);
    border-right: 2px solid var(--win98-black);
    border-bottom: 2px solid var(--win98-black);
    padding: 8px;
    z-index: 22;
    font-size: 11px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.status-tray:hover .status-tooltip {
    display: block;
}

/* 提示框內部各行 */
.status-tooltip-row {
    display: flex;
    align-items: flex-start;
    padding: 2px 0;
    gap: 6px;
}

.status-tooltip-row + .status-tooltip-row {
    border-top: 1px solid var(--win98-gray-dark);
    margin-top: 2px;
    padding-top: 4px;
}

.status-tooltip-label {
    font-weight: bold;
    min-width: 50px;
    flex-shrink: 0;
    color: var(--win98-black);
}

.status-tooltip-value {
    color: var(--win98-black);
    word-break: break-word;
}

/* 離線狀態下隱藏音樂圖標 */
.status-tray.offline .status-music-icon {
    display: none;
}
