/* Scaled-down demo version for iframe embedding */
:root {
  /* Soft lavender palette - same as original */
  --bg-base: #f0eef5;
  --bg-card: #ffffff;
  --bg-card-hover: #faf9fc;
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;

  /* Text colors */
  --text-primary: #2d2a3e;
  --text-secondary: #6b6485;
  --text-muted: #9994ad;

  /* Accent colors */
  --accent: #7c6aad;
  --accent-bright: #9580c4;
  --accent-soft: #c4b8e0;
  --coral: #d4847c;
  --coral-soft: #e0a098;
  --success: #6ba87a;

  /* Shadows */
  --shadow: rgba(100, 80, 140, 0.08);
  --shadow-hover: rgba(100, 80, 140, 0.15);
  --glow: rgba(124, 106, 173, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 13px; /* Scaled down from 16px */
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100%;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(124, 106, 173, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(212, 132, 124, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 30%, rgba(180, 160, 210, 0.08) 0%, transparent 60%);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem;
  position: relative;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.greeting {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}

.greeting span {
  color: var(--coral);
}

.date-time {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.quote {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.8rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Focus Section */
.focus-section {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 18px var(--shadow);
  border: 1px solid rgba(124, 106, 173, 0.1);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.focus-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.focus-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-icon svg {
  width: 11px;
  height: 11px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.focus-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-input);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(124, 106, 173, 0.12);
}

.focus-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.focus-item:hover::before {
  opacity: 1;
}

.focus-item:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 3px 12px var(--shadow-hover);
  border-color: rgba(124, 106, 173, 0.2);
}

.focus-item.has-text::before {
  opacity: 1;
}

.focus-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  min-width: 1.25rem;
}

.focus-input {
  flex: 1;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.focus-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.focus-item.has-text .focus-input {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.focus-item.completed .focus-input {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
}

.focus-check {
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.focus-check:hover {
  border-color: var(--accent);
}

.focus-check svg {
  width: 10px;
  height: 10px;
  stroke: white;
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.focus-item.completed .focus-check {
  background: var(--success);
  border-color: var(--success);
}

.focus-item.completed .focus-check svg {
  opacity: 1;
}

/* Two Column Layout */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .columns {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 3px 18px var(--shadow);
  border: 1px solid rgba(124, 106, 173, 0.1);
}

.panel:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.panel:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.panel-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.panel-title svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-secondary);
  stroke-width: 2;
  fill: none;
}

.panel-actions {
  display: flex;
  gap: 0.4rem;
}

/* Todo List */
.todo-input-container {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.todo-input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(124, 106, 173, 0.15);
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.todo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 106, 173, 0.1);
}

.todo-input::placeholder {
  color: var(--text-muted);
}

.todo-add-btn {
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.todo-add-btn:hover {
  background: var(--accent-bright);
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 140px;
  overflow-y: auto;
}

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

.todo-list::-webkit-scrollbar-track {
  background: var(--bg-base);
  border-radius: 2px;
}

.todo-list::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 2px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-base);
  border-radius: 5px;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease-out;
  border: 1px solid transparent;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.todo-item:hover {
  background: white;
  border-color: rgba(124, 106, 173, 0.15);
}

.todo-checkbox {
  width: 13px;
  height: 13px;
  border: 2px solid var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.todo-checkbox:hover {
  border-color: var(--accent);
}

.todo-checkbox svg {
  width: 9px;
  height: 9px;
  stroke: white;
  stroke-width: 3;
  opacity: 0;
}

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

.todo-item.completed .todo-checkbox svg {
  opacity: 1;
}

.todo-text {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-primary);
}

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

.todo-delete {
  opacity: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  transition: opacity 0.2s ease;
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-delete svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

.todo-delete:hover svg {
  stroke: var(--coral);
}

.todo-empty {
  text-align: center;
  padding: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.75rem;
}

/* Notepad */
.notepad-container {
  position: relative;
}

.notepad {
  width: 100%;
  min-height: 120px;
  padding: 0.5rem;
  border: 1px solid rgba(124, 106, 173, 0.12);
  background: var(--bg-base);
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: all 0.3s ease;
}

.notepad:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 106, 173, 0.1);
}

.notepad::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Action buttons */
.action-btn {
  background: none;
  border: none;
  font-size: 0.6rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

.action-btn:hover {
  color: var(--accent);
  background: var(--bg-base);
}

.action-btn.danger:hover {
  color: var(--coral);
}
