/* summary.css — Shared session tile / card styles.
   Loaded by both index.html (main app) and history.html (history page).
   ─────────────────────────────────────────────────────────────────────── */

/* ── Session card tile ── */
.session-card {
    background: #1a1a1a; border-radius: 14px; overflow: hidden; border: 1px solid #222;
}
.session-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; cursor: pointer; user-select: none;
}
.session-card-header:active { background: #222; }
.session-header-left { display: flex; flex-direction: column; gap: 3px; }
.session-date { font-size: 15px; color: #eee; font-weight: 600; }

/* ── Chips ── */
.session-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip {
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
    font-weight: 600; letter-spacing: 0.03em;
}
.chip-duration   { background: #1e1e2e; color: #888; border: 1px solid #333; }
.chip-active     { background: #0d2b14; color: #28a745; border: 1px solid #1a4726; }
.chip-resets     { background: #2b1010; color: #dc3545; border: 1px solid #4a1515; }
.chip-activity   { background: #0e1e30; color: #4af; border: 1px solid #1a3a55; }
.chip-hrv        { background: #1a0e2e; color: #a78bfa; border: 1px solid #3d1f7a; }
.chip-hrv-index  { background: #1a0e2e; color: #7c3aed; border: 1px solid #3d1f7a; font-weight: 700; }

/* ── Chevron toggle ── */
.session-chevron { color: #555; font-size: 18px; transition: transform 0.2s; flex-shrink: 0; }
.session-card.open .session-chevron { transform: rotate(90deg); }

/* ── Collapsible detail panel ── */
.session-detail { display: none; padding: 0 16px 16px; }
.session-card.open .session-detail { display: block; }

/* ── Notes ── */
.notes-row {
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 12px;
}
.notes-text {
    flex: 1;
    font-size: 13px; color: #888; font-style: italic;
    line-height: 1.5; padding: 8px 10px;
    background: #111; border-radius: 8px;
    border-left: 2px solid #2a2a2a;
    min-height: 36px;
}
.notes-text.empty { color: #3a3a3a; }
.notes-edit-btn {
    flex-shrink: 0;
    width: 32px; height: 32px; margin-top: 2px;
    background: #1c1c1c; border: 1px solid #2a2a2a;
    border-radius: 7px; color: #555; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.notes-edit-btn:hover { color: #4af; border-color: #4af; background: #0e1e30; }
.notes-editor { margin-bottom: 12px; }
.notes-edit-area {
    width: 100%; background: #111; border: 1px solid #4af;
    border-radius: 8px; color: #ccc; font-size: 13px;
    padding: 8px 10px; resize: none; font-family: sans-serif;
    line-height: 1.5; box-sizing: border-box; margin-bottom: 8px;
}
.notes-edit-area:focus { outline: none; }
.notes-save-row { display: flex; gap: 8px; }
.notes-save-btn {
    padding: 6px 14px; background: #1a3a20; color: #28a745;
    border: 1px solid #1a4726; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.notes-cancel-btn {
    padding: 6px 12px; background: #222; color: #666;
    border: 1px solid #333; border-radius: 6px; font-size: 13px; cursor: pointer;
}

/* ── Stat groups ── */
.stat-group { margin-bottom: 14px; }
.stat-group-label {
    font-size: 11px; color: #555; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #222;
}
.active-label   { color: #28a745; }
.recovery-label { color: #fd7e14; }
.lag-label      { color: #17a2b8; }
.session-label  { color: #777; }
.settings-label { color: #888; }
.rfb-label      { color: #1a7fff; }
.hrv-label      { color: #7c3aed; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-item span { font-family: monospace; font-size: 15px; color: #ccc; }
.stat-item label {
    font-size: 10px; color: #555; text-transform: uppercase;
    letter-spacing: 0.04em; margin-top: 1px;
}

.settings-summary { font-size: 12px; color: #555; line-height: 1.8; margin-top: 6px; font-family: monospace; }

.hrv-card-short-note {
    font-size: 11px; color: #a78bfa; margin-top: 10px;
    padding-top: 8px; border-top: 1px solid #2a2a2a;
    text-align: center; line-height: 1.5;
}

/* ── Action buttons inside card ── */
.session-graph-btn {
    display: block; width: 100%; margin-top: 8px;
    padding: 10px; background: #0d1e2e; border: 1px solid #1a3a50;
    border-radius: 8px; color: #4af; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: center;
}
.session-graph-btn:active { background: #122b40; }

.session-delete-btn {
    display: block; width: 100%; margin-top: 12px;
    padding: 10px; background: #1e0808; border: 1px solid #3a1010;
    border-radius: 8px; color: #dc3545; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: center;
}
.session-delete-btn:active { background: #2b0f0f; }
