/* ==========================================
   4. パレット・タイムライン・モーダル
   ========================================== */
/* タスクパレット */
.palette-desc { font-size: 0.75rem; color: #a0aec0; margin-bottom: 8px; }

.task-palette {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.task-item {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.task-item:hover { background: #edf2f7; }
.drag-handle { color: #cbd5e0; margin-right: 6px; }

/* タイムスケジュール（グリッド表示） */
.timeline-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.timeline-grid {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.hour-row {
  display: flex;
  border-bottom: 1px solid #edf2f7;
  min-height: 48px;
}

.hour-label {
  width: 50px;
  background: #f7fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #718096;
}

.time-slot {
  flex: 1;
  border-right: 1px dashed #edf2f7;
  padding: 4px;
  position: relative;
  background: #ffffff;
  transition: background-color 0.2s;
}

.time-slot-header {
  font-size: 0.65rem;
  color: #cbd5e0;
}

.time-slot.drag-over {
  background-color: #ebf8ff;
  border: 2px dashed #3182ce;
}

/* スケジュール配置済みカード */
.scheduled-card {
  background: #ebf8ff;
  border-left: 4px solid #3182ce;
  padding: 4px 6px;
  border-radius: 2px;
  font-size: 0.75rem;
  margin-top: 2px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scheduled-card.small-task {
  background: #f0fff4;
  border-left-color: #38a169;
}

.card-actions { display: none; }
.scheduled-card.is-expanded .card-actions { display: block; }

/* モーダルダイアログ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 8px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: #1a202c;
}

.modal-form-group {
  margin: 12px 0;
}

.modal-form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
  color: #4a5568;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.modal-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.note-text {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 8px;
  line-height: 1.4;
}