/* サービス稼働状況ページ専用CSS */

.status-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.last-updated {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.status-list {
    margin: 1rem 0;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f0f1f2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.service-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    text-align: left;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-align: right;
}

.status-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    min-width: 1.2rem;
    text-align: center;
}

/* ステータス別の色設定 */
.service-status.available {
    color: #27ae60;
}

.service-status.available .status-indicator {
    color: #27ae60;
}

.service-item:has(.service-status.available) {
    border-left-color: #27ae60;
}

.service-status.partly {
    color: #f39c12;
}

.service-status.partly .status-indicator {
    color: #f39c12;
}

.service-item:has(.service-status.partly) {
    border-left-color: #f39c12;
}

.service-status.suspended {
    color: #e74c3c;
}

.service-status.suspended .status-indicator {
    color: #e74c3c;
}

.service-item:has(.service-status.suspended) {
    border-left-color: #e74c3c;
}

.service-status.not-in-service {
    color: #95a5a6;
}

.service-status.not-in-service .status-indicator {
    color: #95a5a6;
}

.service-item:has(.service-status.not-in-service) {
    border-left-color: #95a5a6;
}

/* ステータス説明セクション */
.status-legend {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    background: #f8f9fa;
}

.legend-item .status-indicator {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.legend-item.available .status-indicator,
.legend-item .status-indicator.available {
    color: #27ae60;
}

.legend-item.partly .status-indicator,
.legend-item .status-indicator.partly {
    color: #f39c12;
}

.legend-item.suspended .status-indicator,
.legend-item .status-indicator.suspended {
    color: #e74c3c;
}

.legend-item.not-in-service .status-indicator,
.legend-item .status-indicator.not-in-service {
    color: #95a5a6;
}

.error {
    color: #e74c3c;
    font-weight: bold;
    padding: 1rem;
    background: #ffe6e6;
    border-radius: 6px;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .status-container,
    .status-legend {
        padding: 1rem;
        margin: 1rem;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-status {
        width: 100%;
        justify-content: flex-start;
    }
    
    .last-updated {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .legend-item {
        flex-direction: row;
        gap: 0.5rem;
    }
}