/* 오늘의 할 일 스타일시트 (style.css) - Vibrant Palette 테마 */
:root {
  --primary-color: #FF5732;
  --primary-hover: #E84825;
  --bg-color: #FFF5F2;
  --card-bg: #FFFFFF;
  --text-main: #212529;
  --text-muted: #ADB5BD;
  --text-completed: #ADB5BD;
  --border-color: #F1F3F5;
  --card-border: #FFE0D8;
  --radius-xl: 36px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 420px;
  background-color: var(--card-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(255, 87, 50, 0.15);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
}

/* Header Banner */
header {
  padding: 40px 28px 24px 28px;
  background-color: var(--primary-color);
  color: #FFF;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.date-badge {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 4px;
  backdrop-filter: blur(4px);
}

.header-bar {
  width: 48px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  margin-top: 10px;
}

/* Card Body */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Input Form */
.input-form {
  display: flex;
  gap: 8px;
}

.input-wrapper {
  flex: 1;
}

input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  font-size: 14px;
  color: var(--text-main);
  background-color: #F8F9FA;
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus {
  background-color: #FFF;
  border-color: var(--primary-color);
}

.btn-add {
  height: 48px;
  padding: 0 18px;
  background-color: var(--primary-color);
  color: #FFF;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(255, 87, 50, 0.3);
  transition: all 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-add:hover {
  background-color: var(--primary-hover);
}

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

/* Error Message */
.error-message {
  color: #EF4444;
  font-size: 12px;
  margin-top: -12px;
  display: none;
  font-weight: 600;
  padding-left: 4px;
}

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

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.stats-title {
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-remaining {
  color: var(--primary-color);
}

.all-done-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  background-color: rgba(255, 87, 50, 0.12);
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Todo List */
.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #E9ECEF transparent;
}

.todo-list::-webkit-scrollbar {
  width: 4px;
}

.todo-list::-webkit-scrollbar-thumb {
  background-color: #E9ECEF;
  border-radius: 4px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: #FFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.todo-item:hover {
  border-color: rgba(255, 87, 50, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.todo-item.completed {
  background-color: #F8F9FA;
  border-color: transparent;
  opacity: 0.75;
}

.todo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
  margin-right: 10px;
  user-select: none;
}

/* Circular Checkbox */
.checkbox-custom {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #CED4DA;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  background-color: #FFF;
}

.todo-item:hover .checkbox-custom {
  border-color: var(--primary-color);
}

.todo-item.completed .checkbox-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-custom svg {
  display: none;
  stroke: #FFFFFF;
}

.todo-item.completed .checkbox-custom svg {
  display: block;
}

.todo-text {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
  word-break: break-all;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: var(--text-completed);
}

/* Action Buttons */
.todo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-toggle {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background-color: rgba(255, 87, 50, 0.1);
  color: var(--primary-color);
  transition: all 0.15s ease;
}

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

.todo-item.completed .btn-toggle {
  background-color: #E9ECEF;
  color: #ADB5BD;
}

.btn-delete {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: #ADB5BD;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 3px;
}

.btn-delete:hover {
  background-color: rgba(255, 87, 50, 0.1);
  color: var(--primary-color);
}

/* Empty State */
.empty-message {
  text-align: center;
  padding: 36px 16px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  background-color: #F8F9FA;
}

.empty-title {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 12px;
  color: #ADB5BD;
}

/* Footer */
.encouragement-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
