/* カレンダー予約システム用スタイル */

/* カレンダーコンテナ */
#calendar-container {
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header h4 {
    font-size: 1.2rem;
    margin: 0;
}

/* カレンダーグリッド */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.calendar-day {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.calendar-day.header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    min-height: auto;
}

.calendar-day .day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.calendar-day .available-slots {
    font-size: 0.8rem;
    color: var(--text-light);
}

.calendar-day.available {
    background-color: rgba(124, 201, 126, 0.1);
    cursor: pointer;
}

.calendar-day.available:hover {
    background-color: rgba(124, 201, 126, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calendar-day.unavailable {
    background-color: rgba(200, 200, 200, 0.2);
    color: #999;
}

.calendar-day.past {
    opacity: 0.5;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.selected {
    background-color: var(--accent-color);
    color: white;
}

/* 時間選択 */
#time-selection {
    display: none;
    margin: 20px 0;
}

#time-selection h4 {
    margin-bottom: 15px;
    text-align: center;
}

.time-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.time-slot:hover {
    background-color: rgba(124, 201, 126, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot .time {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.time-slot .instructor {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.time-slot .availability {
    font-size: 0.8rem;
    color: var(--text-light);
}

.time-slot.selected .availability {
    color: rgba(255, 255, 255, 0.8);
}

/* 予約フォーム */
#booking-form {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#booking-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#confirm-booking {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

#confirm-booking:hover {
    background-color: var(--secondary-color);
}

/* 戻るボタン */
.back-button {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 0.9rem;
}

.back-button:hover {
    background-color: #5a6268;
}
