/* =============================================================================
   Overtime pay calculator (/elave-is-saati) — JobHub-styled.
   Inputs and the overtime-type picker on the left, the live payment and the
   calculation breakdown on the right. Colours derive from --hb-* so both themes
   follow the global toggle.

   NOTE: the hero chip / panel / block / row / explainer rules below now repeat
   for the third calculator (see mezuniyyet.css and ipoteka.css). Worth lifting
   into a shared calculator stylesheet next time one of these is touched.
   ============================================================================= */

/* hero formula chip */
.ov-hero-formula {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 24px; padding: 10px 20px; background: rgba(151, 119, 250, 0.10); border-radius: 999px;
}
.ov-hero-formula span { color: var(--hb-muted); font-weight: 600; font-size: 14px; }
.ov-hero-formula code { font-family: "Montserrat", monospace; color: var(--hb-brand); font-weight: 600; font-size: 15px; }

/* ── Input panel ── */
.ov-panel { padding: 30px; }
.ov-panel-title {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 20px;
  color: var(--hb-heading); margin-bottom: 24px;
}

.ov-field { margin-bottom: 22px; }
.ov-label {
  display: block; font-weight: 600; font-size: 14px;
  color: var(--hb-heading); margin-bottom: 8px;
}

.ov-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hb-border); border-radius: 10px;
  background: var(--hb-surface); color: var(--hb-heading);
  font-family: "Open Sans", sans-serif; font-size: 15px; height: auto;
}
.ov-input:focus { outline: none; border-color: var(--hb-brand); box-shadow: 0 0 0 3px rgba(151, 119, 250, 0.15); }
.ov-input::placeholder { color: var(--hb-muted); }

.ov-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* overtime type cards */
.ov-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ov-type-btn {
  padding: 16px 14px; border: 1px solid var(--hb-border); border-radius: 12px;
  background: var(--hb-surface); text-align: left; cursor: pointer; transition: all 0.18s ease;
}
.ov-type-btn:hover { border-color: var(--hb-brand); }
.ov-type-btn.is-active {
  border-color: var(--hb-brand); background: rgba(151, 119, 250, 0.10);
  box-shadow: 0 0 0 2px rgba(151, 119, 250, 0.22);
}
.ov-type-icon { display: block; font-size: 24px; line-height: 1; margin-bottom: 8px; }
.ov-type-name {
  display: block; font-family: "Montserrat", sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--hb-heading); margin-bottom: 4px;
}
.ov-type-desc { display: block; font-size: 11.5px; line-height: 1.45; color: var(--hb-muted); }

.ov-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Result column ── */
.ov-result {
  position: sticky; top: 96px;
  padding: 24px; border-radius: 16px;
  background: var(--hb-card); border: 1px solid var(--hb-border);
}
.ov-result-placeholder { text-align: center; padding: 30px 10px; color: var(--hb-muted); }
.ov-result-icon { font-size: 44px; margin-bottom: 12px; }
.ov-result-placeholder p { font-size: 14px; line-height: 1.6; margin: 0; }

.ov-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-card { padding: 18px 14px; border-radius: 14px; text-align: center; }
.ov-card-main { background: linear-gradient(135deg, #9777fa, #6d4bd3); color: #fff; }
.ov-card-total { background: rgba(18, 183, 106, 0.10); border: 1px solid rgba(18, 183, 106, 0.30); }
.ov-card-label { font-size: 12px; line-height: 1.4; margin: 0 0 6px; opacity: 0.9; }
.ov-card-total .ov-card-label { color: #0a8f51; opacity: 1; }
.ov-card-value {
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 26px; line-height: 1.1;
  margin: 0; word-break: break-word;
}
.ov-card-total .ov-card-value { color: #0a8f51; }
.ov-card-unit { font-size: 10.5px; line-height: 1.4; margin: 5px 0 0; opacity: 0.8; }
.ov-card-total .ov-card-unit { color: #0a8f51; opacity: 1; }
:root[data-theme="dark"] .ov-card-total .ov-card-label,
:root[data-theme="dark"] .ov-card-total .ov-card-value,
:root[data-theme="dark"] .ov-card-total .ov-card-unit { color: #38d98a; }

/* ── Detail rows ── */
.ov-block {
  margin-top: 16px; border: 1px solid var(--hb-border); border-radius: 14px; overflow: hidden;
  background: var(--hb-card);
}
.ov-block-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--hb-surface); border-bottom: 1px solid var(--hb-border);
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14.5px; color: var(--hb-heading);
}
.ov-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px; font-size: 13.5px; color: var(--hb-muted);
}
.ov-row + .ov-row { border-top: 1px solid var(--hb-border); }
.ov-row-value { flex-shrink: 0; font-weight: 600; color: var(--hb-heading); white-space: nowrap; }
.ov-row.is-total { background: rgba(151, 119, 250, 0.10); color: var(--hb-brand); font-weight: 700; }
.ov-row.is-total .ov-row-value { color: var(--hb-brand); font-weight: 700; }
.is-brand { color: var(--hb-brand) !important; }

/* ── Explainer ── */
.ov-explain-card {
  height: 100%; padding: 24px; border-radius: 16px;
  background: var(--hb-card); border: 1px solid var(--hb-border);
}
.ov-explain-formula {
  display: block; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px;
  background: rgba(151, 119, 250, 0.10); color: var(--hb-brand);
  font-family: "Montserrat", monospace; font-size: 13px; line-height: 1.6;
}
.ov-explain-lead { font-weight: 700; font-size: 14.5px; color: var(--hb-heading); margin-bottom: 12px; }
/* JobHub resets `ol, ul { list-style: none }` globally. */
.ov-explain-list, .ov-example-list { margin: 0; padding-left: 20px; list-style: disc outside; }
.ov-explain-list li, .ov-example-list li { font-size: 13.5px; line-height: 1.65; color: var(--hb-text); margin-bottom: 10px; }
.ov-explain-list li::marker, .ov-example-list li::marker { color: var(--hb-brand); }
.ov-example-list code {
  font-family: "Montserrat", monospace; font-size: 12.5px; color: var(--hb-heading);
  background: var(--hb-surface); border: 1px solid var(--hb-border);
  padding: 4px 9px; border-radius: 6px; display: inline-block;
}

.ov-disclaimer {
  max-width: 760px; margin: 26px auto 0; text-align: center;
  font-size: 12.5px; line-height: 1.7; color: var(--hb-muted);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .ov-result { position: static; }
}
@media (max-width: 767px) {
  .ov-panel { padding: 24px 18px; }
  .ov-grid-2, .ov-types, .ov-cards { grid-template-columns: 1fr; }
}
