/* Takkie UI - refreshed styling based on the old React design */
:root {
  color-scheme: light;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol', 'Noto Color Emoji';
  --bg: #f6f1f4;
  --bg-soft: #f3f6ff;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #f2c4d3;
  --accent-strong: #e89db8;
  --accent-soft: #f8e6ee;
  --border: #eadfe0;
  --border-strong: #e0d3d6;
  --item: #fbf8f9;
  --item-border: #f2e7ea;
  --danger: #d24c5f;
  --danger-bg: #fde8ee;
  --shadow: 0 12px 28px rgba(28, 29, 38, 0.08);
  --radius: 18px;
  --radius-lg: 22px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.takkie-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  padding: 24px 16px 64px;
}

.takkie-shell {
  max-width: 420px;
  margin: 0 auto;
}

.takkie-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 28px;
}

.takkie-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.takkie-nav-link {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.takkie-nav-link.is-active {
  background: var(--accent);
  color: #442c36;
}

.takkie-logo {
    width: 6rem !important;
    height: auto !important;
}

.takkie-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.takkie-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.takkie-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.takkie-page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.takkie-page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.takkie-page-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.takkie-action-link {
  background: var(--accent);
  color: #442c36;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.takkie-action-link:hover {
  background: var(--accent-strong);
  color: #fff;
}

.takkie-action-alt {
  background: var(--accent-soft);
  color: var(--muted);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.takkie-toggle {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.takkie-toggle-button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.takkie-toggle-button.is-active {
  background: var(--accent);
  color: #442c36;
}

.takkie-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.takkie-search {
  margin-bottom: 16px;
}

.takkie-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.takkie-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.takkie-card-title {
  font-size: 18px;
  font-weight: 600;
}

.takkie-section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.takkie-badge {
  background: var(--accent-soft);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.takkie-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.takkie-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--item);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  border: 1px solid var(--item-border);
}

.takkie-check {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.takkie-check:hover {
  border-color: var(--accent-strong);
  transform: scale(1.05);
}

.takkie-check.is-done {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.takkie-text {
  flex: 1;
  font-size: 15px;
}

.takkie-text.is-done {
  text-decoration: line-through;
  color: var(--muted);
}

.takkie-muted {
  color: var(--muted);
}

.takkie-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.takkie-icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.takkie-icon {
  width: 16px;
  height: 16px;
}

.takkie-icon-lg {
  width: 20px;
  height: 20px;
}

.takkie-icon-button:hover {
  background: var(--accent-soft);
  border-color: var(--border);
}

.takkie-danger {
  color: var(--danger);
}

.takkie-danger:hover {
  background: var(--danger-bg);
  border-color: #f1cbd3;
}

.takkie-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.takkie-input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(232, 157, 184, 0.25);
}

.takkie-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  min-height: 120px;
  resize: vertical;
}

.takkie-textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(232, 157, 184, 0.25);
}

.takkie-action {
  background: var(--accent);
  border: none;
  color: #442c36;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.takkie-action:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

.takkie-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.takkie-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takkie-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.takkie-form-actions {
  display: flex;
  justify-content: flex-end;
}

.takkie-add-compact {
  margin-top: 12px;
}

.takkie-add button {
  min-width: 44px;
}

.takkie-recipe-search {
  padding: 12px;
}

.takkie-recipe-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takkie-recipe-pill {
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.takkie-recipe-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.takkie-instructions {
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

.takkie-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px 0;
}

.takkie-ghost {
  width: 100%;
  border: 2px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-lg);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.takkie-ghost-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.takkie-ghost:hover {
  border-color: var(--accent-strong);
  color: var(--text);
  background: var(--accent-soft);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.color-pink {
  background: #f3b6c9;
}

.color-mint {
  background: #bfe7d1;
}

.color-sky {
  background: #bcd7f8;
}

.color-lavender {
  background: #cbb8f5;
}

.color-peach {
  background: #f5c7a9;
}

.color-sun {
  background: #f5e6a7;
}
