/* MBCNET AI Smart Scheduler Styles */

/* 스크롤바 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 드래그 고스트 */
.sortable-ghost {
  opacity: 0.4;
  background: #e0ebff !important;
}
.sortable-drag {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 앵커 블록 표시 */
.anchor-row {
  border-left: 4px solid #1a6de0;
  background: #f0f5ff;
}

/* 타임라인 바 */
.timeline-bar {
  transition: width 0.5s ease;
}

/* 무결성 상태 */
.integrity-valid { color: #16a34a; }
.integrity-invalid { color: #dc2626; }

/* 모달 */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}
.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 토스트 */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 100;
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
}
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: #1a6de0; }

@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* 펄스 애니메이션 */
.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 장르별 태그 색상 */
.genre-news { background: #dbeafe; color: #1e40af; }
.genre-drama { background: #fce7f3; color: #9d174d; }
.genre-entertainment { background: #fef3c7; color: #92400e; }
.genre-movie { background: #ede9fe; color: #5b21b6; }
.genre-documentary { background: #d1fae5; color: #065f46; }
.genre-music { background: #fee2e2; color: #991b1b; }
.genre-ad { background: #f3f4f6; color: #6b7280; }
.genre-info { background: #e0f2fe; color: #075985; }
.genre-etc { background: #f5f5f5; color: #737373; }

/* 로딩 스피너 */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1a6de0;
  border-radius: 50%;
  width: 24px; height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 탭 활성 상태 */
.tab-active {
  border-bottom: 3px solid #1a6de0;
  color: #1a6de0;
  font-weight: 600;
}

/* 시간대 구분선 */
.time-divider {
  position: relative;
}
.time-divider::before {
  content: attr(data-period);
  position: absolute;
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}
