/* health_status.css */

.health-status-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.traffic-light-container {
    display: flex;
    flex-direction: row;
    width: 240px;
    height: 80px;
    background-color: #333;
    border-radius: 10px;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 15px;
}

.light {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #555; /* 消灯時の色 */
    border: 2px solid #222;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease-in-out;
}

/* 信号灯の順序をHTMLに合わせて指定 */
#traffic-light-green {
    order: 1;
}
#traffic-light-yellow {
    order: 2;
}
#traffic-light-red {
    order: 3;
}

.light.on {
    box-shadow: 0 0 15px rgba(255,255,255,0.8), 0 0 25px rgba(255,255,255,0.6);
}

.light.red.on {
    background-color: #ff0000;
}
.light.yellow.on {
    background-color: #ffff00;
}
.light.green.on {
    background-color: #00ff00;
}

/* 点滅アニメーション */
.light.blink {
    animation: blink-animation 1s infinite alternate;
}

@keyframes blink-animation {
    from { opacity: 1; }   /* 点灯時は完全に表示 */
    to { opacity: 0.1; } /* ここを0.2に変更して、消灯時の背景色を少し透過させる */
}

/* スコアと状態のテキストスタイル */
.status-text {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.status-text span {
    display: contents;
}
.score-change span {
    display: contents;
}

.status-normal { color: #009900; }
.status-caution { color: #ccaa00; }
.status-bad { color: #cc6600; }
.status-warning { color: #aa0000; }
.status-critical { color: #880000; }


.score-change {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

/* ログ表示 */
.status-log {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    background-color: #fcfcfc;
}

.log-entry {
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
    font-size: 0.9em;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-date {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 3px;
}

.log-score {
    color: #666;
    margin-bottom: 3px;
}

.log-factor {
    color: #444;
}

/* ヘッダーのリストスタイルをリセット */
.session.left .session_title {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    color: #0056b3;
}

.indent {
    margin-left: 20px;
}
.group {
    margin-bottom: 15px;
}
.heading {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 5px;
}