/* Task Tracker Plugin — task-tracker.css */
#task-tracker-app *, #task-tracker-app *::before, #task-tracker-app *::after { box-sizing: border-box; }
#task-tracker-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  color: #1a1a18;
}
.tt-setup-box { background: #FFF8E6; border: 1px solid #FAC775; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.5rem; font-size: 14px; line-height: 1.7; }
.tt-setup-box strong { font-weight: 500; }
.tt-setup-box code { background: rgba(0,0,0,0.07); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.tt-config-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.tt-config-row input { flex: 1; padding: 7px 10px; border: 0.5px solid rgba(0,0,0,0.18); border-radius: 8px; font-size: 13px; }
.tt-config-row button { padding: 7px 16px; background: #1a1a18; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; }
.tt-tabs { display: flex; gap: 8px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tt-tab { padding: 6px 16px; border: 0.5px solid rgba(0,0,0,0.18); border-radius: 8px; background: transparent; font-size: 14px; cursor: pointer; color: #6b6b66; }
.tt-tab.tt-active { background: #1a1a18; color: #fff; border-color: #1a1a18; }
.tt-card { background: #fff; border: 0.5px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.tt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-bottom: 1.25rem; }
.tt-stat { background: #f7f7f5; border-radius: 8px; padding: 10px 14px; }
.tt-stat-val { font-size: 22px; font-weight: 500; }
.tt-stat-lbl { font-size: 12px; color: #6b6b66; margin-top: 2px; }
.tt-filters { display: flex; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.tt-filters label { font-size: 13px; color: #6b6b66; }
.tt-filters select { font-size: 13px; padding: 5px 10px; min-width: 130px; border: 0.5px solid rgba(0,0,0,0.18); border-radius: 8px; background: #fff; }
.tt-clear-btn { font-size: 12px; padding: 5px 12px; border: 0.5px solid rgba(0,0,0,0.18); border-radius: 8px; background: transparent; cursor: pointer; color: #6b6b66; }
.tt-clear-btn:hover { background: #f7f7f5; }
.tt-date-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tt-date-nav button { padding: 5px 12px; border: 0.5px solid rgba(0,0,0,0.18); border-radius: 8px; background: transparent; cursor: pointer; font-size: 13px; }
.tt-date-nav span { font-size: 13px; color: #6b6b66; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.tt-legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b6b66; }
.tt-legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.tt-gantt-scroll { overflow-x: auto; }
table.tt-gantt { width: 100%; border-collapse: collapse; min-width: 580px; }
table.tt-gantt th { font-size: 12px; font-weight: 500; color: #6b6b66; padding: 4px 8px; border-bottom: 0.5px solid rgba(0,0,0,0.1); text-align: left; }
table.tt-gantt td { padding: 6px 8px; border-bottom: 0.5px solid rgba(0,0,0,0.1); vertical-align: middle; }
table.tt-gantt td:first-child { font-size: 13px; font-weight: 500; white-space: nowrap; min-width: 90px; }
table.tt-gantt td:nth-child(2) { font-size: 13px; white-space: nowrap; min-width: 130px; }
.tt-timeline-cell { position: relative; height: 30px; min-width: 200px; }
.tt-bar { position: absolute; top: 4px; height: 22px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-bar.tt-done { opacity: 0.45; }
table.tt-tlist { width: 100%; border-collapse: collapse; }
table.tt-tlist th { font-size: 12px; font-weight: 500; color: #6b6b66; padding: 6px 8px; border-bottom: 0.5px solid rgba(0,0,0,0.1); text-align: left; }
table.tt-tlist td { padding: 8px 8px; border-bottom: 0.5px solid rgba(0,0,0,0.1); font-size: 13px; vertical-align: middle; }
.tt-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tt-status-pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; cursor: pointer; border: none; background: none; }
.tt-del-btn { background: none; border: none; cursor: pointer; color: #9b9b95; font-size: 16px; padding: 2px 5px; border-radius: 4px; }
.tt-del-btn:hover { color: #E24B4A; }
.tt-edit-btn { background: none; border: none; cursor: pointer; color: #9b9b95; font-size: 16px; padding: 2px 5px; border-radius: 4px; }
.tt-edit-btn:hover { color: #378ADD; }
.tt-empty, .tt-loading { text-align: center; padding: 2rem; color: #6b6b66; font-size: 14px; }
.tt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tt-form-grid label { font-size: 13px; color: #6b6b66; display: block; margin-bottom: 4px; }
.tt-form-grid input, .tt-form-grid select { width: 100%; padding: 7px 10px; border: 0.5px solid rgba(0,0,0,0.18); border-radius: 8px; font-size: 14px; }
.tt-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 4px; }
#tt-add-btn { padding: 8px 22px; background: #1a1a18; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
#tt-add-btn:disabled { opacity: 0.5; cursor: not-allowed; }
#tt-form-msg { font-size: 13px; }
