/* todo-lists.de tools styles */

.lead { font-size: 1.05rem; color: #555; margin-bottom: 1.5rem; max-width: 70ch; }
.section-title { margin-top: 2rem; }

/* Homepage todo widget */
.todo-widget {
  background: linear-gradient(135deg, #fff8e8, #fff);
  border: 2px solid #f4d35e;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.todo-widget h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.widget-sub { color: #555; font-size: .9rem; margin-bottom: 1rem; }
#todo-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
#todo-input { flex: 1; padding: .6rem .9rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }
#todo-input:focus { outline: none; border-color: #e67e00; }
#todo-form button {
  padding: .6rem 1.2rem;
  background: #e67e00; color: #fff;
  border: none; border-radius: 6px; cursor: pointer; font-weight: 600;
}
#todo-form button:hover { background: #c96e00; }
#todo-list { list-style: none; padding: 0; margin: 0; }
#todo-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0; border-bottom: 1px solid #f0e0c0;
}
#todo-list label { display: flex; align-items: center; gap: .6rem; flex: 1; cursor: pointer; }
#todo-list input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
#todo-list li.done span { text-decoration: line-through; color: #999; }
#todo-list .del {
  background: none; border: none; color: #999; cursor: pointer; font-size: 1.2rem;
  padding: 0 .5rem;
}
#todo-list .del:hover { color: #c00; }
.widget-actions { display: flex; justify-content: space-between; margin-top: 1rem; align-items: center; }
.widget-actions button { background: #eee; border: none; padding: .4rem .8rem; border-radius: 4px; cursor: pointer; }
.widget-link { color: #e67e00; font-weight: 600; text-decoration: none; }
.widget-link:hover { text-decoration: underline; }

/* Tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.tool-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.2rem; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s;
  display: block;
}
.tool-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: var(--accent); text-decoration: none; }
.tool-card .tool-icon { font-size: 2rem; margin-bottom: .5rem; }
.tool-card h3 { margin: 0 0 .25rem; color: var(--accent); font-size: 1.1rem; }
.tool-card p { color: #555; font-size: .9rem; margin: 0; }

/* Eisenhower matrix */
#ei-form { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
#ei-form input { flex: 1; padding: .6rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; }
#ei-form button { padding: .6rem 1.2rem; background: var(--accent); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }

.ei-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.ei-quad {
  background: #fff; border: 2px solid var(--border); border-radius: 8px;
  padding: 1rem; min-height: 180px;
}
.ei-quad.q1 { border-color: #d4504e; background: #fff5f4; }
.ei-quad.q2 { border-color: #2e9e4d; background: #f3faf4; }
.ei-quad.q3 { border-color: #d4a04e; background: #fff8ee; }
.ei-quad.q4 { border-color: #999; background: #f7f7f7; }
.ei-head { font-weight: 700; margin-bottom: .8rem; line-height: 1.3; }
.ei-head span { display: block; font-weight: 400; font-size: .8rem; color: #666; }
.ei-quad ul { list-style: none; padding: 0; margin: 0; }
.ei-quad li, .ei-inbox li {
  background: rgba(255,255,255,.7); border: 1px solid var(--border); border-radius: 6px;
  padding: .4rem .6rem; margin-bottom: .35rem;
  display: flex; align-items: center; justify-content: space-between;
}
.ei-quad li span, .ei-inbox li span { cursor: pointer; flex: 1; }
.ei-inbox { background: #f8fafc; border: 1px dashed var(--border); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.ei-inbox h3 { margin: 0 0 .75rem; }
.ei-inbox .hint { color: #888; font-size: .85rem; margin-top: .75rem; }
.del { background: none; border: none; color: #999; cursor: pointer; padding: 0 .3rem; }

/* Pomodoro */
.pomo-wrap {
  background: linear-gradient(135deg, #ffe7d6, #fff);
  border: 2px solid #e67e00; border-radius: 16px;
  padding: 2.5rem 1.5rem; text-align: center; margin: 1.5rem 0;
}
.pomo-mode { font-size: 1.4rem; font-weight: 700; color: #c96e00; margin-bottom: .5rem; }
.pomo-mode.break { color: #2e9e4d; }
.pomo-clock { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--text); letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
.pomo-controls { display: flex; justify-content: center; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.pomo-controls button {
  padding: .6rem 1.4rem; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; font-weight: 600;
  background: #e67e00; color: #fff;
}
.pomo-controls button:hover { background: #c96e00; }
.pomo-controls button:nth-child(2), .pomo-controls button:nth-child(3) { background: #eee; color: #333; }
.pomo-controls button:nth-child(2):hover, .pomo-controls button:nth-child(3):hover { background: #ddd; }
.pomo-info { color: #555; font-size: .9rem; margin-top: .5rem; }

/* Share */
.share-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
@media (max-width: 700px) { .share-wrap { grid-template-columns: 1fr; } }
.share-edit, .share-link {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1rem;
}
.share-edit h3, .share-link h3 { margin: 0 0 .75rem; font-size: 1rem; }
.share-edit textarea, .share-link textarea {
  width: 100%; padding: .6rem; border: 1px solid var(--border); border-radius: 6px;
  font-family: inherit; font-size: .95rem; resize: vertical;
}
.title-label { display: block; margin-top: .75rem; font-size: .9rem; color: #555; }
.title-label input { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: 6px; margin-top: .3rem; }
.share-link textarea { font-family: monospace; font-size: .8rem; background: #f5f7fa; }
.share-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.share-actions button { background: var(--accent); color: #fff; border: none; padding: .5rem 1rem; border-radius: 4px; cursor: pointer; font-weight: 600; }
.share-actions button:hover { background: var(--accent-h); }
.copy-msg { color: #2e9e4d; font-size: .85rem; margin-top: .5rem; height: 1.2em; }
#view-pane #view-list { list-style: none; padding: 0; }
#view-pane #view-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
#view-pane #view-list label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
#view-pane #view-list li.done { text-decoration: line-through; color: #999; }

.copy-note {
  background: #fff8e8; border-left: 3px solid #f4d35e;
  padding: .75rem 1rem; border-radius: 4px;
  font-size: .9rem; color: #555; margin-bottom: 1rem;
}
#send-back {
  background: #f0f7ff; border: 1px solid #c0d8ef; border-radius: 8px;
  padding: 1rem; margin-top: 1.5rem;
}
#send-back h3 { margin: 0 0 .5rem; color: #0073aa; font-size: 1rem; }
#send-back textarea { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: 4px; font-family: monospace; font-size: .8rem; background: #fff; }

/* Printable */
.printable-controls {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem; margin-bottom: 1.5rem;
}
.printable-controls label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: #555; }
.printable-controls select, .printable-controls input { padding: .5rem; border: 1px solid var(--border); border-radius: 4px; font-size: .95rem; }
.printable-controls button { padding: .55rem 1.2rem; background: var(--accent); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.printable-controls button:hover { background: var(--accent-h); }

.tpl {
  background: #fff; border: 1px solid #ccc;
  padding: 1.5rem; margin: 1rem 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  page-break-after: always;
}
.tpl-h { font-size: 1.8rem; margin: 0 0 1.5rem; padding-bottom: .5rem; border-bottom: 2px solid #333; }
.tpl h3 { margin: 1.5rem 0 .75rem; font-size: 1.1rem; }
.tpl ol, .tpl ul { padding-left: 1.5rem; }
.tpl .big-list li { padding: .8rem 0; border-bottom: 1px dotted #999; }
.tpl .small-list li { padding: .4rem 0; border-bottom: 1px dotted #ccc; list-style: none; position: relative; padding-left: 1.5rem; }
.tpl .small-list li::before { content: "☐"; position: absolute; left: 0; }
.tpl table { width: 100%; border-collapse: collapse; margin: .5rem 0; }
.tpl table td, .tpl table th { border: 1px solid #999; padding: .5rem; vertical-align: top; }
.tpl table th { background: #f0f0f0; font-weight: 600; }
.tpl .boxes { height: 100px; }
.tpl .hours-table th { width: 70px; text-align: right; }
.tpl .hours-table td { height: 32px; }
.tpl .notes-box { border: 1px solid #999; min-height: 150px; padding: .5rem; }
.tpl .week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.tpl .week-grid.small li { font-size: .85rem; }
.tpl .day-col h3 { background: #333; color: #fff; padding: .3rem; margin: 0; font-size: .9rem; text-align: center; }
.tpl .day-col ul { list-style: none; padding: 0; margin: 0; border: 1px solid #999; border-top: none; min-height: 200px; }
.tpl .day-col li { padding: .3rem; border-bottom: 1px dotted #ccc; min-height: 24px; }
.tpl .habit-table td { height: 32px; text-align: center; }
.tpl .habit-name { text-align: left !important; padding-left: .5rem; }
.tpl .month-table td { height: 80px; }
