/* ============================================
   일정관리 캘린더 스타일
   ============================================ */

/* 캘린더 컨테이너 */
.calendar-container {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 캘린더 헤더 */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: var(--font-bold);
}

.calendar-year {
  font-size: var(--text-sm);
}

.calendar-month {
  font-size: var(--text-md);
}

.calendar-nav-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 요일 헤더 */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  flex-shrink: 0;
}

.calendar-weekday {
  padding: 4px 2px;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: #495057;
}

.calendar-weekday.sunday {
  color: #e74c3c;
}

.calendar-weekday.saturday {
  color: #3498db;
}

/* 날짜 그리드 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 1px;
  background: #dee2e6;
  padding: 1px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.calendar-day {
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 60px;
  padding: 6px 8px;
}

.calendar-day:hover:not(.other-month) {
  background: #f0f8ff;
  transform: scale(1.05);
}

.calendar-day.other-month {
  background: #f8f9fa;
  cursor: default;
}

.calendar-day.other-month .day-number {
  color: #ced4da;
}

.day-number {
  font-size: 14px;
  font-weight: var(--font-semibold);
  color: #2c3e50;
  line-height: 1;
}

.calendar-day.sunday .day-number {
  color: #e74c3c;
}

.calendar-day.saturday .day-number {
  color: #3498db;
}

.calendar-day.today {
  background: linear-gradient(135deg, #ebf5fb 0%, #d6eaf8 100%);
}

.calendar-day.today .day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  font-weight: var(--font-bold);
}

.calendar-day.selected {
  background: #e8f4f8;
  border: 2px solid #3498db;
}

/* 이벤트 인디케이터 */
.calendar-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #3498db;
  border-radius: 50%;
}

.event-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  font-weight: var(--font-bold);
  border-radius: 9px;
  padding: 0 5px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.event-indicator:hover {
  background: #c0392b;
  transform: scale(1.1);
}

/* ============================================
   일정 상세 보기 스타일
   ============================================ */

/* 상세 보기 컨테이너 */
.schedule-detail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}

/* 상세 보기 헤더 */
.schedule-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.btn-back-calendar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back-calendar:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-back-calendar i {
  font-size: 10px;
}

.schedule-detail-title {
  flex: 1;
  text-align: center;
}

.detail-date {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: white;
}

/* 상세 보기 바디 */
.schedule-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fa;
}

/* 일정 카드 목록 */
.schedule-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 일정 카드 */
.schedule-card {
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.schedule-card:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}

/* 카드 헤더 */
.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.schedule-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: #2c3e50;
}

.schedule-time i {
  font-size: 11px;
  color: #3498db;
}

.schedule-type {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-align: center;
  min-width: 50px;
}

/* 카드 바디 */
.schedule-card-body {
  padding: 12px;
}

.schedule-title {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.schedule-memo {
  font-size: var(--text-xs);
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* 일정 없음 메시지 */
.no-schedule {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.no-schedule i {
  font-size: 48px;
  color: #dee2e6;
  margin-bottom: 16px;
}

.no-schedule p {
  font-size: var(--text-sm);
  color: #adb5bd;
  margin: 0;
}

/* 일정 범위 배지 */
.schedule-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scope-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: var(--font-bold);
  text-align: center;
}

.scope-badge.scope-public {
  background: #e8f5e9;
  color: #27ae60;
  border: 1px solid #27ae60;
}

.scope-badge.scope-private {
  background: #e3f2fd;
  color: #3498db;
  border: 1px solid #3498db;
}

/* 일정 카드 액션 버튼 */
.schedule-card-actions {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  justify-content: flex-end;
}

.btn-schedule-edit,
.btn-schedule-delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 11px;
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.btn-schedule-edit {
  color: #3498db;
  border-color: #3498db;
}

.btn-schedule-edit:hover {
  background: #3498db;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.btn-schedule-edit i {
  font-size: 10px;
}

.btn-schedule-delete {
  color: #e74c3c;
  border-color: #e74c3c;
}

.btn-schedule-delete:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.btn-schedule-delete i {
  font-size: 10px;
}

/* ============================================
   일정 목록 보기 스타일
   ============================================ */

/* 일정 목록 컨테이너 */
.schedule-list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}

/* 일정 목록 헤더 */
.schedule-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.schedule-list-title {
  flex: 1;
  text-align: center;
}

.schedule-list-title span {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: white;
}

/* 일정 목록 바디 */
.schedule-list-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f8f9fa;
}

/* 일정 목록 아이템 */
.schedule-list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 일정 목록 카드 */
.schedule-list-card {
  display: flex;
  gap: 12px;
  background: white;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.schedule-list-card:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
  transform: translateY(-2px);
}

/* 날짜 라벨 */
.schedule-date-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 12px 8px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border-right: 2px solid #2980b9;
}

.date-day {
  font-size: 24px;
  font-weight: var(--font-bold);
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.date-weekday {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: rgba(255, 255, 255, 0.9);
}

/* 일정 목록 콘텐츠 */
.schedule-list-content {
  flex: 1;
  padding: 10px 12px;
}

.schedule-list-content .schedule-card-header {
  margin-bottom: 8px;
}

.schedule-list-content .schedule-card-body {
  padding: 0;
}

/* 스크롤바 스타일링 */
.calendar-grid::-webkit-scrollbar,
.schedule-detail-body::-webkit-scrollbar,
.schedule-list-body::-webkit-scrollbar {
  width: 5px;
}

.calendar-grid::-webkit-scrollbar-track,
.schedule-detail-body::-webkit-scrollbar-track,
.schedule-list-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.calendar-grid::-webkit-scrollbar-thumb,
.schedule-detail-body::-webkit-scrollbar-thumb,
.schedule-list-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.calendar-grid::-webkit-scrollbar-thumb:hover,
.schedule-detail-body::-webkit-scrollbar-thumb:hover,
.schedule-list-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 일정관리 패널 콘텐츠 커스텀 */
.schedule-area .panel-content {
  padding: 3px 3px 3px 3px;
  background: #f8f9fa;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
