@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Kumbh+Sans:wght@400;500;600;700&display=swap');

.dt-root { max-width: 700px; margin: 0 auto; padding: 0; font-family: 'Kumbh Sans','Roboto',sans-serif; }
.dt-root * { box-sizing: border-box; margin: 0; padding: 0; }

.dt-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(19,30,59,.10); border: 1px solid #dde3f0; overflow: hidden; }

/* Header */
.dt-header { background: #131e3b; padding: 20px 24px 16px; }
.dt-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dt-header-eyebrow { font-size: .63rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; margin-bottom: 3px; }
.dt-header h2 { font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.2; }
.dt-date-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 5px 12px; font-size: .75rem; color: rgba(255,255,255,.75); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* Progress */
.dt-header-progress { padding-top: 4px; }
.dt-progress-label { font-size: .72rem; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 6px; }
.dt-bar-track { height: 6px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.dt-bar-fill { height: 100%; border-radius: 99px; background: #22c55e; transition: width .5s cubic-bezier(.4,0,.2,1); }

/* Task list */
.dt-list { list-style: none; padding: 4px 0 0; margin: 0; max-height: 380px; overflow-y: auto; }
.dt-item {     position: relative; display: flex; align-items: center; gap: 12px;  padding: 11px 100px 11px 20px; border-bottom: 1px solid #f0f2f7; cursor: pointer; transition: background .15s; user-select: none; }
.dt-item:last-child { border-bottom: none; }
.dt-item:hover { background: #f8f9ff; }
.dt-item.dt-done { background: #fafbff; }

.dt-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d1d5db; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.dt-item.dt-done .dt-check { border-color: #16a34a; background: #16a34a; }
.dt-check-tick { font-size: .68rem; color: #fff; font-weight: 900; line-height: 1; }
.dt-text-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
   
}

.dt-text { font-size: .88rem; font-weight: 500; color: #111827; line-height: 1.4; transition: color .2s; }
.dt-item.dt-done .dt-text { color: #9ca3af; text-decoration: line-through; text-decoration-color: #d1d5db; }

/* Recurring toggle */
.dt-recurring-btn { background: #f0f4fb; border: 1px solid #dde3f0; border-radius: 20px; cursor: pointer; font-size: .68rem; font-weight: 600; padding: 3px 10px; color: #9ca3af; flex-shrink: 0; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; line-height: 1.5; }
.dt-recurring-btn:hover { background: #e8edf5; color: #131e3b; border-color: #131e3b; }
.dt-recurring-btn.dt-recurring-on { background: #f7f7f7; border-color: #131e3b; color: #131e3b; }
.dt-recurring-btn.dt-recurring-on:hover { background: #dc2626; border-color: #dc2626; }

/* Delete */
.dt-delete { opacity: .3; background: none; border: none; cursor: pointer; padding: 5px; border-radius: 5px; display: flex; align-items: center; color: #6b7280; flex-shrink: 0; transition: opacity .15s, background .15s, color .15s; }
.dt-item:hover .dt-delete { opacity: .7; }
.dt-delete:hover { opacity: 1 !important; background: #fef2f2; color: #dc2626; }

/* Add row */
.dt-add-row { display: flex; gap: 8px; padding: 10px 20px; border-top: 1px solid #f0f2f7; background: #fafbff; }
input.dt-add-input { flex: 1; border: 1px solid #d1d5db; padding: 9px 14px; font-family: 'Kumbh Sans','Roboto',sans-serif; font-size: .85rem; border-radius: 8px; outline: none; color: #111827; transition: border-color .2s; background: #fff; }
input.dt-add-input:focus { border-color: #131e3b; box-shadow: 0 0 0 3px rgba(19,30,59,.1); }
input.dt-add-input::placeholder { color: #c0c8d8; }
.dt-add-btn { background: #131e3b; color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-family: 'Kumbh Sans','Roboto',sans-serif; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; transition: background .2s; }
.dt-add-btn:hover { background: #1c2d57; }

/* Repeat row */
.dt-repeat-row { padding: 4px 20px 12px; background: #fafbff; }
.dt-repeat-label { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: #6b7280; font-weight: 500; cursor: pointer; user-select: none; }
.dt-repeat-check { width: 15px; height: 15px; cursor: pointer; accent-color: #131e3b; }

/* Empty */
.dt-empty { padding: 20px; text-align: center; color: #9ca3af; font-size: .82rem; }
.dt-empty strong { display: block; color: #131e3b; margin-bottom: 4px; }
.dt-login-msg { padding: 20px; text-align: center; color: #6b7280; }
