/* 動的にクラスが付与される time-slot-unit のスタイル */
.time-slot.candidate {
    background-color: #e0f2fe; /* 薄い水色 */
    cursor: pointer;
}
.time-slot.candidate:hover {
    background-color: #c7e5fc;
}

.time-slot.selected {
    background-color: #3b82f6; /* 青 */
    color: white;
}

.time-slot.tentative {
    background-color: #d1fae5; /* 薄い緑 */
    cursor: pointer; 
}

/* unavailable */
.time-slot.unavailable {
    background-color: #e5e7eb; /* gray */
    cursor: not-allowed;
    color: #9ca3af;
}

/* メッセージモーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* style.css に追加 */
.time-slot.confirmed-mtg {
    background-color: #1d4ed8; /* 確定枠として目立つ青 */
    color: white; 
    font-weight: bold; 
    cursor: pointer; /* キャンセル可能であることを示唆 */
}

/* 確定MTGキャンセル時の視覚フィードバック */
.time-slot-unit.cancelling {
    background-color: #f87171 !important; /* Tailwind CSSのred-400相当 */
    border: 2px solid #ef4444; /* Tailwind CSSのred-500相当 */
    color: white !important;
}

/* 確定MTG枠 (既存のクラス) */
.time-slot-unit.confirmed-mtg {
    /* 既存の水色設定 (例: #93c5fd) */
}
/* 視認性改善のため、グリッド調整 */
.calendar-grid {
    display: grid;
    grid-template-columns: 60px repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, 0.6fr));
    gap: 2px;
}

.day-header {
    background-color: white;
    padding: 0.5rem;
}

.time-label {
    background-color: white;
    padding: 0.2rem 0.5rem;
    align-self: center;
    font-size: 0.875rem;
}

.time-slot-unit {
    background-color: white;
    text-align: center;
    padding: 0.2rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.saturday {
    color: #3b82f6;
}

.sunday {
    color: #ef4444;
}
/* ===============================
   参加者回答表示用オーバーレイ
   =============================== */

/* 参加者ドット表示エリア */
.attendee-indicators {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    pointer-events: none;
    z-index: 10;
}

.attendee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* time-slot-unitに相対位置指定を追加 */
.time-slot-unit {
    position: relative;
}

/* 参加者一覧表示エリア */
#attendee-legend {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

#attendee-legend h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.attendee-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.attendee-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.attendee-legend-item span {
    font-size: 0.875rem;
    color: #4b5563;
}
