/* ===================================
   폰트 설정 (Pretendard + Inter)
   =================================== */

/* Pretendard - 한글 최적화 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* Inter - 영문/숫자 최적화 폰트 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===================================
   Colorful & Dynamic Design System
   Monday.com + ClickUp Style
   =================================== */

:root {
  /* Primary Colors */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  
  /* Status Colors */
  --color-todo: #94a3b8;
  --color-todo-light: #f1f5f9;
  --color-in-progress: #3b82f6;
  --color-in-progress-light: #dbeafe;
  --color-review: #f59e0b;
  --color-review-light: #fef3c7;
  --color-done: #10b981;
  --color-done-light: #d1fae5;
  --color-blocked: #ef4444;
  --color-blocked-light: #fee2e2;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}

/* 전역 폰트 설정 */
* {
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, 
               'Segoe UI', 'Apple SD Gothic Neo', 'Roboto', 'Helvetica Neue', 
               Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 숫자/영문 전용 (작업ID, 진행율, 날짜 등) */
.task-id,
.progress-text,
.task-number,
input[type="number"],
.font-mono {
  font-family: 'Inter', 'Pretendard', 'Courier New', monospace;
  font-feature-settings: 'tnum' 1; /* 숫자 고정폭 */
}

/* 제목 폰트 */
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

h4 {
  font-weight: 600;
}

/* ===================================
   폰트 크기 & 굵기 최적화
   =================================== */

/* 기본 본문 크기 */
body {
  font-size: 0.8125rem; /* 13px */
  font-weight: 400;
  line-height: 1.5;
}

/* 헤더 텍스트 */
.header-text {
  font-size: 0.8125rem; /* 13px */
  font-weight: 500; /* Medium */
}

/* 테이블 셀 기본 */
.table-cell-text {
  font-size: 0.8125rem; /* 13px */
  font-weight: 400; /* Regular */
}

/* 작업 제목 */
.task-title {
  font-size: 0.8125rem; /* 13px */
  font-weight: 500; /* Medium */
}

/* 작업 ID (숫자 강조) */
.task-id-text {
  font-size: 0.75rem; /* 12px */
  font-weight: 600; /* Semi-bold */
}

/* 상태 뱃지 */
.badge-text {
  font-size: 0.6875rem; /* 11px */
  font-weight: 600; /* Semi-bold */
}

/* 진행율 텍스트 */
.percentage-text {
  font-size: 0.75rem; /* 12px */
  font-weight: 600; /* Semi-bold */
}

/* 버튼 텍스트 */
button {
  font-weight: 500; /* Medium */
  font-family: 'Pretendard', 'Inter', sans-serif;
}

/* ===================================
   모달 & 폼 요소 폰트
   =================================== */

/* 모달 제목 */
.modal-title,
h3.text-xl,
h4.text-sm {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-weight: 600;
}

/* 모달 레이블 */
label {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* 입력 필드 */
input,
textarea,
select {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-size: 0.8125rem;
  font-weight: 400;
}

/* placeholder 텍스트 */
input::placeholder,
textarea::placeholder {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-weight: 400;
}

/* 버튼 내부 아이콘 + 텍스트 */
button i {
  font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
}

/* 옵션 텍스트 */
option {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-size: 0.8125rem;
}

/* Tailwind CSS 클래스 오버라이드 */
.text-xl {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
}

.text-2xl {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
}

.text-lg {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
}

.text-sm {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-size: 0.8125rem !important; /* 13px */
}

.text-xs {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-size: 0.75rem !important; /* 12px */
}

/* 폰트 굵기 조정 */
.font-bold {
  font-weight: 600 !important; /* Bold → Semi-bold */
}

.font-semibold {
  font-weight: 600 !important;
}

.font-medium {
  font-weight: 500 !important;
}

/* 모든 텍스트 요소 */
p, span, div, a {
  font-family: 'Pretendard', 'Inter', sans-serif;
}

/* ===================================
   간트 차트 스타일 (frappe-gantt v0.10.0)
   =================================== */

/* 전체 컨테이너 */
#gantt-chart {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  min-height: 400px;
}

/* 간트 차트 배경 */
.gantt-container {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
}

/* 작업 바 스타일 */
.gantt .bar-todo {
  fill: #cbd5e1 !important; /* 회색 - 할일 */
}

.gantt .bar-progress {
  fill: #3b82f6 !important; /* 파랑 - 진행중 */
}

.gantt .bar-done {
  fill: #10b981 !important; /* 초록 - 완료 */
}

/* 프로젝트 타임라인 바 (범위 표시용) */
.gantt .bar-project-timeline {
  fill: #f59e0b !important; /* 주황 - 프로젝트 전체 기간 */
  opacity: 0.3 !important;
  stroke: #f59e0b !important;
  stroke-width: 2 !important;
  stroke-dasharray: 5, 5 !important; /* 점선 */
}

.gantt .bar-project-timeline .bar-label {
  font-weight: 700 !important;
  fill: #d97706 !important;
  font-size: 13px !important;
}

/* 진행율 표시 */
.gantt .bar-progress-wrapper {
  fill: rgba(59, 130, 246, 0.2) !important;
}

/* 호버 효과 */
.gantt .bar-wrapper:hover .bar {
  opacity: 0.85;
  filter: brightness(0.95);
}

/* 작업명 텍스트 */
.gantt .bar-label {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  fill: #333 !important;
}

/* 날짜 헤더 */
.gantt .upper-text,
.gantt .lower-text {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  font-size: 12px !important;
  fill: #666 !important;
}

/* 그리드 라인 */
.gantt .grid-row {
  fill: #fafafa;
}

.gantt .grid-row:nth-child(even) {
  fill: #f5f5f5;
}

/* 오늘 날짜 하이라이트 */
.gantt .today-highlight {
  fill: rgba(59, 130, 246, 0.1) !important;
}

/* 팝업 스타일 */
.gantt-popup {
  font-family: 'Pretendard', 'Inter', sans-serif !important;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}

/* ========================================
   Cards - Monday.com Style
   ======================================== */
.task-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: all 0.3s;
}

.task-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-500);
}

.task-card:hover::before {
  background: linear-gradient(180deg, var(--color-primary-500), var(--color-primary-600));
}

.task-card:active {
  cursor: grabbing;
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--shadow-lg);
}

/* 드래그 중인 카드 */
.task-card.opacity-50 {
  opacity: 0.5;
}

/* 드롭 존 하이라이트 */
[data-status].bg-blue-50 {
  background-color: #eff6ff !important;
  transition: background-color 0.2s ease;
}

/* 프로젝트 아이템 */
.project-item {
  transition: background-color 0.2s ease;
}

/* 모달 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fixed.bg-black {
  animation: fadeIn 0.2s ease;
}

.bg-white.rounded-lg.shadow-xl {
  animation: slideUp 0.3s ease;
}

/* ===================================
   Phase 1: ClickUp 스타일 헤더 + 행
   =================================== */

/* 테이블 헤더 스타일 - 제거 (이제 인라인으로 처리) */

/* 작업 행 스타일 */
.task-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* 얇은 테두리로 행 구별 */
  transition: background-color 0.15s ease;
  font-size: 0.8125rem; /* 13px */
  font-weight: 400;
  min-height: 32px; /* 최소 행 높이 - Compact Mode */
  height: 32px; /* 고정 높이 */
}

/* 🦓 Zebra Stripe: 짝수 행을 약간 어둡게 */
.task-hierarchical:nth-child(even) .task-row {
  filter: brightness(0.98);
}

/* 🎨 행 배경색이 보이도록 모든 하위 요소를 투명하게 */
.task-row > div,
.task-row > div > div,
.task-row .resizable-column,
.task-row .editable-field {
  background-color: transparent !important;
}

/* hover 효과만 유지 (약한 강조) */
.task-row .editable-field:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
  outline: 1px solid rgba(0, 0, 0, 0.05);
}

/* 선택된 행 강조 - outline + 그림자 조합 */
.task-row-selected {
  outline: 2px solid #1976d2 !important;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2) inset !important;
  position: relative;
  z-index: 1;
}

/* 라디오 버튼 커스텀 */
.task-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #228be6;
}

.task-radio:hover {
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

/* 체크박스 커스텀 (향후 사용) */
.task-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #228be6;
  border-radius: 4px;
}

/* 셀 패딩 */
.task-cell {
  padding: 4px 10px; /* Compact Mode - 상하 패딩 축소 */
  font-size: 0.8125rem; /* 13px */
  font-family: 'Pretendard', 'Inter', sans-serif;
  color: #212529;
  vertical-align: middle;
  letter-spacing: -0.01em; /* 한글 자간 조정 */
}

/* 계층 들여쓰기 */
.task-indent {
  display: inline-block;
}

/* 접기/펼치기 아이콘 */
.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: #5c7cfa; /* 더 밝고 예쁜 블루 */
  transition: all 0.2s ease;
  border-radius: 4px;
  background-color: rgba(92, 124, 250, 0.08); /* 연한 블루 배경 */
}

.toggle-icon:hover {
  background-color: rgba(92, 124, 250, 0.15); /* 호버 시 더 진한 블루 */
  color: #4263eb; /* 더 진한 블루 텍스트 */
  transform: scale(1.1); /* 살짝 확대 효과 */
}

.toggle-icon.expanded i::before {
  content: "\f068"; /* fa-minus */
}

.toggle-icon:not(.expanded) i::before {
  content: "\f067"; /* fa-plus */
}

/* 작업 ID/이름 링크 스타일 */
.task-link {
  color: #1976d2; /* 더 진한 파랑 */
  text-decoration: none;
  font-weight: 500;
  font-family: 'Pretendard', 'Inter', sans-serif;
  font-size: 0.8125rem; /* 13px */
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  /* 말줄임표 처리 */
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.task-link:hover {
  color: #1565c0; /* 호버 시 더 어두운 파랑 */
  text-decoration: none;
}

/* 편집 가능 필드 호버 */
.editable-field {
  cursor: pointer;
  padding: 6px 8px; /* 패딩 증가 */
  border-radius: 4px;
  transition: background-color 0.15s ease, outline 0.15s ease;
  /* 말줄임표 처리 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editable-field:hover {
  background-color: #f8f9fa;
  outline: 1px solid #e9ecef;
}

/* ===================================
   Phase 2: 상태/진행율 시각화
   =================================== */

/* 상태 뱃지 스타일 (ClickUp 스타일) */
/* ========================================
   Status Badges - Colorful
   ======================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  font-family: 'Pretendard', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.status-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 상태별 그라데이션 */
.status-not-started, .status-todo {
  background: linear-gradient(135deg, var(--color-todo-light), #e2e8f0);
  color: var(--color-todo);
  border: 1px solid var(--color-todo);
}

.status-in-progress {
  background: linear-gradient(135deg, var(--color-in-progress-light), #bfdbfe);
  color: var(--color-in-progress);
  border: 1px solid var(--color-in-progress);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
  }
}

.status-completed, .status-done {
  background: linear-gradient(135deg, var(--color-done-light), #a7f3d0);
  color: var(--color-done);
  border: 1px solid var(--color-done);
}

.status-on-hold {
  background: linear-gradient(135deg, var(--color-review-light), #fde68a);
  color: var(--color-review);
  border: 1px solid var(--color-review);
}

.status-blocked {
  background: linear-gradient(135deg, var(--color-blocked-light), #fecaca);
  color: var(--color-blocked);
  border: 1px solid var(--color-blocked);
}

/* ========================================
   Progress Bar - ClickUp Style
   ======================================== */
.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px 0;
}

.progress-bar-wrapper {
  flex: 1;
  height: 12px;
  background: linear-gradient(to right, #f3f4f6, #e5e7eb);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
}

.progress-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 반짝임 효과 */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 진행률별 그라데이션 색상 */
.progress-low {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-medium {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-high {
  background: linear-gradient(90deg, #10b981, #059669);
}

.progress-complete {
  background: linear-gradient(90deg, #10b981, #059669);
}

.progress-medium {
  background-color: #ffa726; /* 따뜻한 주황 */
}

.progress-high {
  background-color: #66bb6a; /* 신선한 초록 */
}

.progress-complete {
  background-color: #43a047; /* 진한 초록 */
}

.progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', 'Pretendard', sans-serif;
  min-width: 36px;
  text-align: right;
  font-feature-settings: 'tnum' 1; /* 숫자 고정폭 */
}

/* ===================================
   칼럼 설정 - 드래그앤드롭 개선
   =================================== */

/* 컬럼 아이템 기본 스타일 */
.column-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

/* 드래그 핸들 강조 */
.column-item .drag-handle {
  cursor: grab;
  transition: all 0.2s ease;
}

.column-item .drag-handle:hover {
  color: #2563eb !important;
  transform: scale(1.1);
}

.column-item .drag-handle:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* 드래그 중 스타일 */
.column-item.dragging {
  opacity: 0.5 !important;
  transform: scale(0.95);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* 드롭 타겟 스타일 */
.column-item.drag-over {
  border-color: #3b82f6 !important;
  background-color: #dbeafe !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.column-item.drag-over::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

/* ===================================
   프로젝트 리스트 드래그앤드롭
   =================================== */

/* 프로젝트 아이템 기본 스타일 */
.project-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

/* 드래그 핸들 스타일 */
.project-item .drag-handle {
  cursor: grab;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.project-item:hover .drag-handle {
  opacity: 1;
}

.project-item .drag-handle:hover {
  color: #2563eb !important;
  transform: scale(1.15);
}

.project-item .drag-handle:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* 드래그 중 스타일 */
.project-item.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #3b82f6 !important;
}

/* 드롭 타겟 스타일 */
.project-item.drag-over {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  background-color: rgba(59, 130, 246, 0.05) !important;
}

.project-item.drag-over::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  animation: slideIn 0.2s ease;
  border-radius: 2px;
}

/* 다크 모드 프로젝트 드래그앤드롭 */
.dark .project-item.drag-over {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* 포/백워드 아이콘 */
.base-date-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #495057;
}

.base-date-icon i {
  color: #868e96;
}

/* 담당자/생성자 아바타 스타일 (향후 구현) */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #228be6;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===================================
   아이콘 스타일
   =================================== */

/* 필드 내부 아이콘 */
.fa-user,
.fa-user-circle,
.fa-clock,
.fa-calendar-day,
.fa-calendar-check,
.fa-exclamation-circle {
  font-size: 0.625rem; /* 10px */
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

/* 호버 시 아이콘 강조 */
.editable-field:hover .fa-user,
.editable-field:hover .fa-clock,
.editable-field:hover .fa-calendar-day,
.editable-field:hover .fa-calendar-check {
  opacity: 1;
}

/* 경고 아이콘 (마감일 지남) */
.fa-exclamation-circle {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ===================================
   Phase 3: 계층 표시 개선
   =================================== */

/* 🎨 계층별 배경색 제거 (실적 칼라링 우선) */
/* 실적 상태에 따른 배경색이 JavaScript에서 inline style로 적용됨 */

/* 드래그 핸들 개선 */
.drag-handle {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.task-row:hover .drag-handle {
  opacity: 1;
}

/* 오른쪽 고정 선택 칼럼 hover 배경 */
.task-row:hover .select-column-sticky {
  background-color: #f9fafb !important;
}

/* 작업 ID 스타일 개선 */
.task-id {
  font-family: 'Inter', 'Pretendard', monospace;
  font-weight: 600;
  color: #495057;
  font-size: 0.75rem;
  font-feature-settings: 'tnum' 1; /* 숫자 고정폭 */
  letter-spacing: 0.01em;
}

/* ===================================
   Resizable Columns (Excel-like)
   =================================== */

.resizable-column {
  position: relative;
  box-sizing: border-box;
  /* 말줄임표 처리 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  z-index: 10;
  user-select: none;
}

.column-resizer:hover {
  background: rgba(59, 130, 246, 0.3);
}

.column-resizer:active,
.column-resizer.resizing {
  background: rgba(59, 130, 246, 0.6);
}

/* ===================================
   칼럼 설정 드래그 앤 드롭
   =================================== */

.column-item {
  transition: all 0.2s ease;
}

.column-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.column-item.opacity-50 {
  opacity: 0.5;
  transform: scale(0.95);
}

.column-item.border-blue-500 {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

.drag-handle {
  cursor: grab;
  user-select: none;
}

.drag-handle:active {
  cursor: grabbing;
}

/* ===================================
   버튼 통일 스타일
   =================================== */

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-warning {
  background: linear-gradient(135deg, var(--color-review), #d97706);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-warning:disabled {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-blocked), #dc2626);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:disabled {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-secondary:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
}

.btn-light {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-light:hover {
  background-color: #e5e7eb;
}

.btn-light:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-success {
  background-color: #16a34a;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-success:hover {
  background-color: #15803d;
}

.btn-success:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
}

/* 특수 버튼 스타일 */
.btn-indigo {
  background-color: #4f46e5;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-indigo:hover {
  background-color: #4338ca;
}

.btn-purple {
  background-color: #9333ea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-purple:hover {
  background-color: #7e22ce;
}

/* ===================================
   모달 통일 스타일
   =================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border-radius: 1rem;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  width: 100%;
  max-width: 48rem;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content-large {
  max-width: 56rem;
}

.modal-content-small {
  max-width: 28rem;
}

.modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.modal-body {
  max-height: calc(90vh - 150px);
  overflow-y: auto;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}