/* style.css - Cloudflare 배포용 Sleek Interface 스타일 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background-color: #FDF7F5;
  color: #2d3748;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border-radius: 36px;
  box-shadow: 0 20px 50px -12px rgba(255, 87, 50, 0.12);
  border: 1px solid #f3f4f6;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.header {
  margin-bottom: 24px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.025em;
}

.stats-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background-color: #fff7ed;
  color: #FF5732;
}

.date-text {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.input-form {
  margin-bottom: 8px;
}

.input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

#todo-input-standalone {
  flex: 1;
  padding: 13px 18px;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background-color: #f9fafb;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}

#todo-input-standalone:focus {
  background-color: #ffffff;
  border-color: #FF5732;
  box-shadow: 0 0 0 3px rgba(255, 87, 50, 0.15);
}

.btn-add {
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background-color: #FF5732;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-add:hover {
  opacity: 0.92;
}

.btn-add:active {
  transform: scale(0.96);
}

.error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
  display: none;
  padding-left: 4px;
}

.error-message.show {
  display: block;
}

.list-section {
  flex: 1;
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.todo-list::-webkit-scrollbar {
  width: 5px;
}
.todo-list::-webkit-scrollbar-track {
  background: transparent;
}
.todo-list::-webkit-scrollbar-thumb {
  background: rgba(255, 87, 50, 0.15);
  border-radius: 9999px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: #f9fafb;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.todo-item:hover {
  border-color: rgba(255, 87, 50, 0.15);
}

.todo-item.completed {
  background-color: #f9fafb;
  opacity: 0.65;
}

.todo-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.todo-item.completed .todo-checkbox {
  background-color: #FF5732;
  border-color: #FF5732;
  color: #ffffff;
}

.todo-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  flex: 1;
  word-break: break-word;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: #9ca3af;
}

.todo-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.btn-action {
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-complete {
  background-color: transparent;
  color: #FF5732;
}

.btn-complete:hover {
  background-color: rgba(255, 87, 50, 0.08);
}

.todo-item.completed .btn-complete {
  color: #9ca3af;
  background-color: transparent;
}

.btn-delete {
  background-color: transparent;
  color: #9ca3af;
}

.btn-delete:hover {
  background-color: #fef2f2;
  color: #ef4444;
}

.empty-message {
  text-align: center;
  padding: 32px 16px;
  color: #9ca3af;
  font-size: 13px;
  border: 1px dashed #e5e7eb;
  border-radius: 16px;
  background-color: #f9fafb;
}

.bottom-status {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-text {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.accent-text {
  color: #FF5732;
  font-weight: 600;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #FF5732;
  box-shadow: 0 0 8px rgba(255, 87, 50, 0.5);
}
