/* ── Orfora Denník Pokroku – Styles ── */

.od-wrap, .od-wrap * { box-sizing: border-box; }
.od-wrap {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #1a2e22;
  width: 100%;
  padding: 0 0 60px;
}

/* HEADER */
.od-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid #e4ede7;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.od-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.od-eyebrow-line { width: 22px; height: 1px; background: #4a8c62; }
.od-eyebrow-txt { font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #4a8c62; }
.od-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  color: #1a2e22;
}
.od-title em { font-style: italic; color: #4a8c62; }
.od-add-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; background: #2d5a3d; color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .04em; transition: background .2s; white-space: nowrap;
}
.od-add-btn:hover { background: #1a2e22; color: #fff; }
.od-add-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* SUMMARY */
.od-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.od-stat {
  border-radius: 13px;
  padding: 18px 16px;
  background: #f7fbf8;
  border: 1px solid #ddeae2;
}
.od-stat-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #9ab8a4; margin-bottom: 8px; display: block; }
.od-stat-val { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.85rem; font-weight: 300; color: #1a2e22; line-height: 1; }
.od-stat-val em { font-style: italic; color: #4a8c62; font-size: 1rem; }
.od-stat-val.positive { color: #2d7a50; }
.od-stat-val.negative { color: #c05a3a; }
.od-stat-sub { font-size: 11px; color: #9ab8a4; margin-top: 4px; display: block; }

/* MILESTONES */
.od-milestones { display: flex; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
.od-milestone {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid #ddeae2; background: #f7fbf8;
  font-size: 12px; color: #b0c4b8; transition: all .3s;
}
.od-milestone.reached { background: #eaf4ee; border-color: #a8d4b8; color: #2d5a3d; }
.od-milestone span:first-child { font-size: 13px; }
.od-milestone span:last-child { font-weight: 500; }

/* CHART */
.od-chart-wrap { border-radius: 14px; border: 1px solid #ddeae2; background: #fff; padding: 18px 18px 14px; margin-bottom: 18px; }
.od-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.od-chart-title { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #9ab8a4; }
.od-chart-legend { display: flex; gap: 12px; }
.od-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #9ab8a4; }
.od-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.od-chart-canvas-wrap { position: relative; height: 180px; width: 100%; }
canvas#od-chart { width: 100% !important; height: 180px !important; display: block; }
.od-chart-empty { display: flex; align-items: center; justify-content: center; height: 180px; font-size: 13px; color: #b0c4b8; font-style: italic; }

/* LOG */
.od-log-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.od-log-title { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #9ab8a4; }
.od-log-wrap { border-radius: 12px; border: 1px solid #ddeae2; overflow: hidden; margin-bottom: 16px; }
.od-log-empty { padding: 28px; text-align: center; font-size: 13px; color: #b0c4b8; font-style: italic; }
.od-log-row {
  display: grid;
  grid-template-columns: 105px 80px 72px 88px 72px 1fr 40px;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid #eef4f0;
  transition: background .15s;
}
.od-log-row:last-child { border-bottom: none; }
.od-log-row:hover { background: #fafcfb; }
.od-log-head { background: #f4f9f6; }
.od-log-head:hover { background: #f4f9f6; }
.od-log-head .od-log-cell { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9ab8a4; }
.od-log-cell { font-size: 13px; color: #2a4a35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-log-cell.date { color: #9ab8a4; font-size: 12px; }
.od-log-cell.weight { font-weight: 500; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05rem; color: #1a2e22; }
.od-log-cell.diff { font-size: 12px; font-weight: 500; }
.od-log-cell.diff.pos { color: #2d7a50; }
.od-log-cell.diff.neg { color: #c05a3a; }
.od-log-cell.diff.neu { color: #9ab8a4; }
.od-dose-badge { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 10.5px; font-weight: 500; }
.od-dose-1 { background: #e2f2e7; color: #2d5a3d; border: 1px solid #b8ddc3; }
.od-dose-3 { background: #d4ecd8; color: #1a3328; border: 1px solid #88c4a0; }
.od-dose-6 { background: #c4e0cc; color: #0f2218; border: 1px solid #70b888; }
.od-log-note { font-size: 12px; color: #9ab8a4; font-style: italic; }
.od-del-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid #ddeae2;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0; padding: 0;
}
.od-del-btn:hover { background: #fff0f0; border-color: #f0b0b0; }
.od-del-btn svg { width: 13px; height: 13px; stroke: #c0b0b0; fill: none; stroke-width: 2; stroke-linecap: round; }
.od-del-btn:hover svg { stroke: #c03030; }

/* MODAL */
.od-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(10,20,14,.55);
  align-items: center; justify-content: center;
  padding: 16px;
}
.od-modal-overlay.open { display: flex; }
.od-modal {
  background: #fff; border-radius: 18px; padding: 26px 22px;
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  animation: od-modal-in .3s cubic-bezier(.22,1,.36,1);
}
@keyframes od-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.od-modal-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 300; color: #1a2e22; margin-bottom: 3px; }
.od-modal-title em { font-style: italic; color: #4a8c62; }
.od-modal-sub { font-size: 12.5px; color: #9ab8a4; margin-bottom: 20px; }
.od-modal-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.od-modal-msg.error { background: #fff0f0; border: 1px solid #f0c0c0; color: #c03030; }
.od-modal-msg.success { background: #eaf4ee; border: 1px solid #a8d4b8; color: #2d5a3d; }

.od-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.od-form-row-full { grid-template-columns: 1fr; }
.od-field label { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #4a7a5a; display: block; margin-bottom: 6px; }
.od-field input,
.od-field select,
.od-field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #c8e0d0; border-radius: 9px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a2e22;
  background: #fff; outline: none; transition: border-color .2s;
  -moz-appearance: textfield;
}
.od-field input::-webkit-outer-spin-button,
.od-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.od-field input:focus,
.od-field select:focus,
.od-field textarea:focus { border-color: #4a8c62; }
.od-field textarea { resize: vertical; min-height: 68px; font-size: 13px; }

.od-feel-pick { display: flex; gap: 6px; }
.od-feel-btn {
  flex: 1; padding: 7px 4px; border: 1px solid #ddeae2; border-radius: 9px;
  background: #f7fbf8; font-size: 17px; cursor: pointer; text-align: center;
  transition: all .2s; line-height: 1; font-family: inherit;
}
.od-feel-btn:hover { border-color: #a8d4b8; background: #eaf4ee; }
.od-feel-btn.on { border-color: #4a8c62; background: #eaf4ee; box-shadow: 0 0 0 2px rgba(74,140,98,.15); }
.od-feel-label { font-size: 9px; color: #9ab8a4; display: block; margin-top: 3px; font-family: 'DM Sans', sans-serif; }

.od-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.od-modal-cancel {
  flex: 1; padding: 12px; border: 1px solid #ddeae2; border-radius: 10px;
  background: none; font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 500; color: #9ab8a4; cursor: pointer; transition: all .2s;
}
.od-modal-cancel:hover { border-color: #a8d4b8; color: #4a8c62; }
.od-modal-save {
  flex: 2; padding: 12px; border: none; border-radius: 10px;
  background: #2d5a3d; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .04em; cursor: pointer; transition: background .2s;
}
.od-modal-save:hover { background: #1a2e22; }
.od-modal-save:disabled { background: #a8c4b0; cursor: not-allowed; }

/* DISC */
.od-disc {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px;
  border-radius: 10px; background: #f7fbf8; border: 1px solid #ddeae2;
}
.od-disc-icon { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; background: #e2f2e7; border: 1px solid #b8ddc3; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.od-disc-icon svg { width: 13px; height: 13px; stroke: #2d5a3d; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.od-disc-txt { font-size: 11.5px; line-height: 1.7; color: #8aaa94; }
.od-disc-txt strong { color: #4a7a5a; font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .od-summary { grid-template-columns: 1fr 1fr; }
  .od-log-row { grid-template-columns: 88px 70px 60px 80px 1fr 36px; }
  .od-log-row .od-log-cell:nth-child(5),
  .od-log-head .od-log-cell:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
  .od-form-row { grid-template-columns: 1fr; }
  .od-header { flex-direction: column; align-items: flex-start; }
  .od-log-row { grid-template-columns: 80px 65px 58px 72px 1fr 32px; gap: 4px; padding: 10px 10px; }
}
