/* ============================================================
   KRONOS v3 — Vistas: Timer, Dashboard, Reportes, Usuarios
   ============================================================ */

/* ── TIMER VIEW ──────────────────────────────────────────── */
#timer-bar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}

#task-input {
  flex: 1; background: transparent;
  border: none; outline: none;
  font-size: 15px; color: var(--text); min-width: 0;
}
#task-input::placeholder { color: var(--text3); }

.timer-sep {
  width: 1px; height: 24px;
  background: var(--border2); flex-shrink: 0;
}

#project-select-timer {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
  color: var(--text2); font-size: 13px;
  outline: none; cursor: pointer; max-width: 160px;
}
#project-select-timer:focus { border-color: var(--accent); color: var(--text); }

#timer-display {
  font-family: var(--mono); font-size: 20px; font-weight: 500;
  letter-spacing: .05em; min-width: 80px;
  text-align: right; flex-shrink: 0;
}

#play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: white;
  transition: all .2s; flex-shrink: 0;
}
#play-btn:hover { background: var(--accent2); transform: scale(1.06); }
#play-btn.running { background: var(--red); }
#play-btn.running:hover { background: #dc2626; }

/* Entries list */
.entries-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; margin-top: 24px;
}
.entries-date  { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.entries-total { font-size: 12px; color: var(--text2); font-family: var(--mono); }

.entry-row {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px; transition: border-color .15s;
}
.entry-row:hover { border-color: var(--border2); }

.entry-color-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.entry-task { flex: 1; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-project { font-size: 11px; padding: 2px 7px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.entry-user-chip { font-size: 11px; color: var(--text3); background: var(--bg3); padding: 2px 7px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
.entry-time-range { font-size: 11px; color: var(--text3); font-family: var(--mono); white-space: nowrap; flex-shrink: 0; }
.entry-duration { font-family: var(--mono); font-size: 13px; font-weight: 500; min-width: 64px; text-align: right; flex-shrink: 0; }
.entry-actions { display: flex; gap: 3px; opacity: 0; transition: opacity .15s; flex-shrink: 0; }
.entry-row:hover .entry-actions { opacity: 1; }

/* ── DASHBOARD ───────────────────────────────────────────── */
.week-bars {
  display: flex; align-items: flex-end;
  gap: 6px; height: 80px; margin-top: 12px;
}

.week-bar-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 4px; height: 100%;
}

.week-bar-inner {
  width: 100%; display: flex; align-items: flex-end; flex: 1;
}

.week-bar {
  width: 100%; border-radius: 4px 4px 0 0;
  min-height: 2px; background: var(--accent); opacity: .6;
  transition: height .4s ease;
}
.week-bar.today { opacity: 1; }
.week-label { font-size: 10px; color: var(--text3); font-family: var(--mono); }

.report-bar   { height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; margin-top: 6px; }
.report-fill  { height: 100%; border-radius: 4px; transition: width .5s ease; }

/* ── REPORTS VIEW ────────────────────────────────────────── */
.report-filters {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  margin-bottom: 24px; display: flex; flex-direction: column; gap: 14px;
}

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.report-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.summary-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.summary-val  { font-size: 22px; font-weight: 600; font-family: var(--mono); margin-top: 4px; }

.report-results { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.report-results-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

.report-entry-row {
  padding: 11px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  transition: background .1s;
}
.report-entry-row:last-child { border-bottom: none; }
.report-entry-row:hover { background: var(--bg3); }

/* ── USERS TABLE ─────────────────────────────────────────── */
.users-table-wrap { overflow-x: auto; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
