/* カスタムスタイル */

/* 人別色分け用のバッジクラス */
.badge-person-1 { background-color: #007bff !important; color: #ffffff !important; } /* 青 */
.badge-person-2 { background-color: #28a745 !important; color: #ffffff !important; } /* 緑 */
.badge-person-3 { background-color: #dc3545 !important; color: #ffffff !important; } /* 赤 */
.badge-person-4 { background-color: #ffc107 !important; color: #212529 !important; } /* 黄 */
.badge-person-5 { background-color: #6f42c1 !important; color: #ffffff !important; } /* 紫 */
.badge-person-6 { background-color: #fd7e14 !important; color: #ffffff !important; } /* オレンジ */
.badge-person-7 { background-color: #20c997 !important; color: #ffffff !important; } /* ティール */
.badge-person-8 { background-color: #e83e8c !important; color: #ffffff !important; } /* ピンク */
.badge-person-9 { background-color: #6c757d !important; color: #ffffff !important; } /* グレー */
.badge-person-10 { background-color: #17a2b8 !important; color: #ffffff !important; } /* インフォ */

.calendar {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.calendar-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    padding: 0.5rem 0;
}

.calendar-day-header {
    padding: 0.5rem;
    border-right: 1px solid #dee2e6;
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-week {
    border-bottom: 1px solid #dee2e6;
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-day {
    border-right: 1px solid #dee2e6;
    min-height: 90px;
    padding: 0;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day-content {
    padding: 0.2rem;
    height: 100%;
}

.day-number {
    font-weight: bold;
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
}

.schedule-item {
    margin-bottom: 0.1rem;
}

.schedule-title {
    font-size: 0.65rem;
    line-height: 1.1;
    color: #495057;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.schedule-title .badge {
    font-size: 0.6rem;
    padding: 2px 4px;
}

/* 本日ハイライト */
.today-highlight {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 0.5rem;
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.badge-today {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* フォームスタイル */
.form-control {
    border-radius: 0.375rem;
}

/* カード間のスペース */
.card + .card {
    margin-top: 1rem;
}

/* ナビゲーションバーの調整 */
.navbar-brand {
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 70px;
    }
    
    .schedule-title {
        font-size: 0.55rem;
    }
    
    .schedule-title .badge {
        font-size: 0.5rem;
        padding: 1px 3px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
}

/* アラートメッセージ */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* ボタンのスタイル改善 */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

/* テーブルのホバー効果 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

/* バッジのスタイル */
.badge {
    font-size: 0.75em;
}

/* 空の状態のアイコン */
.display-1, .display-4 {
    opacity: 0.3;
}

/* カレンダーのレスポンシブ対応 */
@media (max-width: 576px) {
    .calendar-day-header,
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 60px;
    }
}