/** toast **/
.toast-container {
    z-index: 2000;
}

/** /toast **/

/** レコード追加画面で利用 **/
.part-items {
    max-height: 150px;
    overflow-y: auto;
}

.part-images {
    display: flex;
    justify-content: space-evenly;
}

.part-images svg {
    height: 150px;
}

.release-none {
    display: none !important
}

/** /レコード追加画面で利用 **/

/** ユーザーページ カレンダー **/
/* ユーザープロフィールとカレンダーのコンテナ */
.user-profile-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
}

/* プロフィールカードとカレンダーカードの基本スタイル */
.user-profile,
.user-calendar {
    width: 100%;
}

/* カレンダーの日付セル */
.calendar-day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    margin: 0 auto;
}

/* タイムラインがある日付のスタイル */
.calendar-day.has-timeline {
    background-color: #3d85c6;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.calendar-day.has-timeline:hover {
    background-color: #2a75b5;
    transform: scale(1.05);
}

/* カレンダーテーブルのレイアウト設定 */
.calendar-table {
    table-layout: fixed;
    width: 100%;
}

.calendar-table th,
.calendar-table td {
    width: 14.28%; /* 100% ÷ 7 = 約14.28% */
    padding: 2px;
    text-align: center;
    font-weight: normal;
}

/* ローディング表示のスタイル */
.calendar-loading {
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 0.25rem;
}

/* 無効なボタンのスタイル */
#current-month-btn:disabled,
#next-month-btn:disabled {
    background-color: #e9ecef;
    border-color: #6c757d;
    color: #343a40;
    cursor: default;
}

/* 選択された日付のスタイル */
.calendar-day.selected {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    background-color: #28a745;
    color: white;
    border: 2px solid #fff;
    font-weight: bold;
}

/* タイムラインがある選択された日付のスタイル */
.calendar-day.has-timeline.selected {
    background-color: #28a745;
    color: white;
    border: 2px solid #ffc107;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.7);
}

/* メディアクエリ：タブレット以上の画面サイズ */
@media (min-width: 768px) {
    .user-profile-calendar-container {
        flex-direction: row;
    }

    .user-profile,
    .user-calendar {
        flex: 1;
    }
}

/** /ユーザーページ カレンダー **/


#modal-active-templates-contents div.active-template-name {
    max-width: 60vw;
}

.timeline-info {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#training-chart {
    background-color: white;
}
/* Tablet */
@media (max-width: 1023px) {
    #modal-active-templates-contents div.active-template-name {
        max-width: 53vw;
    }

    .timeline-info {
        max-width: 70vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    #modal-active-templates-contents div.active-template-name {
        max-width: 78vw;
    }

    .timeline-info {
        max-width: 50vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Smartphone */
@media (max-width: 575px) {
    #modal-active-templates-contents div.active-template-name {
        max-width: 78vw;
    }

    .timeline-info {
        max-width: 50vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #training-table .date {
        font-size: 0.8rem;
    }
}
