/* 動画進捗トラッカーのスタイル - 動画の下に配置 */
.video-progress-indicator {
    position: relative; /* 絶対位置からrelativeに変更 */
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.7); /* 背景色を少し濃くして見やすく */
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 1;
    /*margin-top: 5px;*/ /* 動画との間に少し余白を追加 */
    /*border-radius: 4px;*/ /* 角を少し丸く */
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.progress-fill {
    height: 100%;
    background: #FFC107;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-fill.near-complete {
    background: #4CAF50;
}

.progress-text {
    color: white;
    font-size: 12px;
    min-width: 40px;
    text-align: right;
    font-weight: bold; /* テキストを太字に */
}

.video-completion-notification {
    background: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 0.5s;
}

.video-completion-notification.fade-out {
    animation: fadeOut 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 完了ボタンのスタイル */
#course01-mark-complete.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #828282 !important;
}

/* 進捗設定ページのスタイル */
.video-progress-settings {
    max-width: 800px;
    margin: 20px 0;
}

.video-progress-settings .form-table th {
    width: 250px;
}

/* 視聴必須割合に達したときの色変更 */
.progress-fill.threshold-reached {
    background: #4CAF50; /* 緑色 */
}


/* 閾値達成通知のスタイル */
.video-threshold-notification {
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 0.5s;
    font-weight: bold;
}

.video-threshold-notification.fade-out {
    animation: fadeOut 0.5s;
}


/* 視聴必須割合に達したときの色変更 */
.progress-fill.threshold-reached {
    background: #4CAF50; /* 緑色 */
}