/* Box sizing and transition reset */
* {
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
  --font: 'Segoe UI', sans-serif;
  --primary: #89c2d9;
  --accent: #f4a261;
  --task-bg: #ffffffcc;

  --bg: #fefefe;
  --text: #333;
}

body.dark {
  --bg: #2a1f19;
  --text: #f5f5f5;
}

body {
  font-family: var(--font);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header styling */
header {
  padding: 1.5rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  width: 100%;
  max-width: 700px;
  border-radius: 0 0 12px 12px;
}

/* Language + Theme toggle */
.lang-toggle button,
#theme-toggle {
  margin: 0 6px;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.lang-toggle button:hover,
#theme-toggle:hover {
  transform: scale(1.1);
}

/* Main layout */
main {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 700px;
}

/* Section styling */
section {
  background: var(--task-bg);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px #0001;
  display: flex;
  flex-direction: column;
}

/* Inputs and journal area */
input[type="text"],
textarea {
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--text);
  resize: vertical;
}

textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Task List */
ul#taskList {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
}
ul#taskList li {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem;
  margin: 0.3rem 0;
  border-radius: 4px;
  cursor: pointer;
}
ul#taskList li:hover {
  opacity: 0.85;
}

/* Prompt box */
.prompt-box {
  margin-bottom: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

/* Daily quote */
#quote {
  font-style: italic;
  text-align: center;
  margin: 2rem 0 1rem;
  opacity: 0.8;
  max-width: 700px;
  padding: 0 1rem;
}

/* Footer credit */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
body.dark .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
body.dark section {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 500px) {
  header {
    border-radius: 0;
  }
  main {
    padding: 1rem;
  }
}
