/* AI 學習任務助手 - 樣式表 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 375px;
  margin: 0 auto;
  padding: 16px;
  background-color: #fff;
}

header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #2c3e50;
}

.status, .revision {
  font-size: 0.875rem;
  color: #7f8c8d;
}

.task-input {
  margin-bottom: 24px;
}

.task-input h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: #2c3e50;
}

#goal-input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
}

#ai-decompose-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#ai-decompose-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.task-list h2 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  color: #2c3e50;
}

#tasks-container {
  list-style: none;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #3498db;
}

.task-item.done {
  border-left-color: #27ae60;
  opacity: 0.7;
}

.task-checkbox {
  margin-right: 12px;
  width: 20px;
  height: 20px;
}

.task-title {
  flex: 1;
  font-size: 0.95rem;
}

.task-estimation {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-left: 8px;
}

.empty-hint {
  font-size: 0.875rem;
  color: #95a5a6;
  text-align: center;
  margin-top: 16px;
}

footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #95a5a6;
  text-align: center;
}

/* 錯誤提示 */
.error-message {
  background-color: #fdf2f2;
  color: #c0392b;
  padding: 10px;
  border-radius: 4px;
  margin-top: 12px;
  font-size: 0.875rem;
}

/* 載入中狀態 */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 手機適配（已由 viewport 保障，此處補強） */
@media (max-width: 375px) {
  .container {
    padding: 12px;
  }
}
