/* ===================================
   段階的読み込み用スタイル
   =================================== */

/* ローディングセルのスタイル */
.loading-cell {
    color: #999;
    font-size: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* パルスアニメーション */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* 進捗バーのコンテナ */
#loadingProgress {
    background: #f0f0f0;
    height: 4px;
    margin: 10px 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* 進捗バー本体 */
#loadingProgressBar {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

/* ローディングステータステキスト */
#loadingStatus {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* ローディング行のスタイル */
.loading-row td {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* ローディングドットアニメーション */
.loading-row span {
    display: inline-block;
    margin: 0 2px;
}

/* データ読み込み中のテーブルセル */
td .loading-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

/* フェードイン効果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 予約可能なセルのハイライト（データ到着後） */
td:has(input[type="radio"]) label {
    transition: all 0.2s ease;
}

td:has(input[type="radio"]) label:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    #loadingStatus {
        font-size: 12px;
    }
    
    #loadingProgress {
        height: 3px;
        margin: 8px 0;
    }
    
    .loading-row td {
        padding: 15px;
        font-size: 13px;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    #loadingProgress {
        background: #333;
    }
    
    #loadingStatus {
        color: #aaa;
    }
    
    .loading-cell {
        color: #666;
    }
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .loading-cell,
    .loading-row span,
    #loadingProgressBar {
        animation: none;
        transition: none;
    }
}