/* ALFRED Portal - カスタムスタイル */

/* === ベース === */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* === ナビゲーション === */
.nav-item {
  color: #6b7280;
  transition: all 0.1s ease;
}
.nav-item:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}
.nav-item.active {
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 500;
}

/* === フィルタセレクト === */
.filter-select {
  height: 28px;
  padding: 0 24px 0 8px;
  font-size: 12px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}
.filter-select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* === タスク行 === */
.task-row {
  display: grid;
  grid-template-columns: 32px 1fr 80px 100px 120px 120px;
  align-items: center;
  padding: 0 20px;
  height: 44px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.1s ease;
}
.task-row:hover {
  background: #fafafa;
}
.task-row.selected {
  background: #eef2ff;
}
.task-row.overdue {
  background: #fef2f2;
}
.task-row.overdue:hover {
  background: #fee2e2;
}
.task-row.today {
  background: #fffbeb;
}
.task-row.completed .task-title {
  text-decoration: line-through;
  color: #9ca3af;
}

/* === チェックボックス === */
.task-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.task-checkbox:hover {
  border-color: #4f46e5;
  background: #eef2ff;
}
.task-checkbox.checked {
  background: #4f46e5;
  border-color: #4f46e5;
}
.task-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* === 優先度ドット === */
.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.priority-dot.high { background: #dc2626; }
.priority-dot.medium { background: #f59e0b; }
.priority-dot.low { background: #d1d5db; }

/* === サイドパネル === */
.detail-field {
  margin-bottom: 20px;
}
.detail-label {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.detail-value {
  font-size: 14px;
  color: #1a1a1a;
}
.detail-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: white;
}
.detail-select:focus {
  outline: none;
  border-color: #4f46e5;
}
.detail-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
}
.detail-input:focus {
  outline: none;
  border-color: #4f46e5;
}

/* === リンクボタン === */
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #4f46e5;
  text-decoration: none;
  padding: 4px 0;
}
.link-button:hover {
  text-decoration: underline;
}

/* === ローディングスピナー === */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* === スクロールバー === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
