/* Harmyo premium katmanı (14.11.2026). En son yüklenen görsel katmandır, yalnız mobile-shell.css ondan sonra gelir.
   Yerleşimi değiştirmez: renk, yüzey, gölge, yazı, ikon ve küçük hareketleri tek yerden verir.
   Geri alma: templates/index.html içindeki premium.css, premium.js ve premium-icons.js satırlarını çıkarmak yeterlidir. */
@font-face {
  font-family: Geist;
  src: url("/static/fonts/geist-latin.woff2?v=1") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  src: url("/static/fonts/geist-latin-ext.woff2?v=1") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --pm-shell: #eeebe2;
  --pm-paper: #f6f4ee;
  --pm-line: #e3dfd3;
  --pm-faint: #98a299;
  --pm-display: Geist, Manrope, sans-serif;
  --pm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pm-spring: cubic-bezier(0.3, 1.4, 0.4, 1);
  --pm-lift: 0 0 0 1px rgba(23, 60, 51, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(23, 60, 51, 0.05),
    0 10px 24px -14px rgba(23, 60, 51, 0.22);
  --pm-lift-hover: 0 0 0 1px rgba(23, 60, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(23, 60, 51, 0.06),
    0 18px 32px -16px rgba(23, 60, 51, 0.3);
  --pm-pop: 0 0 0 1px rgba(23, 60, 51, 0.1), 0 24px 48px -20px rgba(18, 48, 42, 0.45), 0 8px 16px -10px rgba(18, 48, 42, 0.25);
  /* mevcut tokenların sıcak kâğıt tonuna çekilmiş hâli */
  --bg: #f6f4ee;
  --surface-soft: #f5f3ec;
  --surface-sunken: #eeebe3;
  --surface-hover: #f8f6f0;
  --line: #e9e5da;
  --line-strong: #dbd7ca;
}

/* ---------- ikonlar: iki tonlu, dolgu ile çizilir ---------- */
svg.icon.ph,
svg.ui-icon.ph {
  fill: currentColor !important;
  stroke: none !important;
}

/* ---------- yazı: başlık ve sayılar ---------- */
h1,
h2,
.mono,
.metric-value,
.today-count {
  font-family: var(--pm-display);
  font-variant-numeric: tabular-nums lining-nums;
}
h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
}
.metric-value,
.today-count {
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ---------- yan menü: koyu yeşil zemin, açık etkin öğe (Ali, 14.11.2026: menü zemini koyu yeşil kalsın) ----------
   Zemin, yazı ve sayaç renkleri app.css / polish.css'te zaten koyu yeşildir; burada yalnız marka işareti, ikon tonu ve
   etkin öğenin kayan zemini eklenir. */
.sidebar {
  isolation: isolate;
}
.sidebar .wordmark {
  font-family: var(--pm-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  align-items: center;
  gap: 10px;
}
.sidebar .wordmark span,
.login-card .wordmark span {
  display: none;
}
.login-card .wordmark {
  font-family: var(--pm-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  align-items: center;
  gap: 10px;
}
.sidebar .wordmark::before,
.login-card .wordmark::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  background: url("/static/favicon.svg?v=harmyo") center / cover no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.sidebar .workspace-switch,
.sidebar .workspace-switch[aria-expanded="true"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.2s var(--pm-ease), border-color 0.2s;
}
.sidebar .workspace-switch:hover {
  background: #ffffff14;
}
.sidebar .nav a {
  transition: color 0.18s var(--pm-ease), background 0.18s var(--pm-ease);
}
.sidebar .nav a .icon {
  transition: transform 0.3s var(--pm-spring), color 0.18s;
}
.sidebar .nav a:hover .icon {
  transform: scale(1.1) rotate(-5deg);
}
.sidebar .nav a .icon.ph .d {
  opacity: 0.35;
}
.sidebar .nav a.active .icon.ph .d {
  opacity: 0.55;
}
/* etkin öğenin zemini: öğenin kendi kutusunda durur, premium.js yalnız eski yerinden kaydırır */
.sidebar .nav a.active {
  position: relative;
  z-index: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar .nav a.active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9px;
  background: #ffffff1c;
  box-shadow: inset 0 0 0 1px #ffffff14, inset 0 1px 0 #ffffff1f;
}
.sidebar .nav a.active.pm-slide::before {
  animation: pm-slide 0.42s var(--pm-spring) var(--pm-delay, 0s) both;
}
@keyframes pm-slide {
  from {
    transform: translateY(var(--pm-dy, 0));
  }
}
.sidebar .nav a .count,
.sidebar .nav a.active .count {
  border-radius: 99px;
}
.sidebar .profile .avatar,
.topbar .avatar.top-avatar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.topbar .avatar.top-avatar {
  background: var(--forest);
  color: var(--lime);
  border-color: transparent;
}
.sidebar.rail.peek {
  box-shadow: 14px 0 36px rgba(11, 31, 24, 0.28);
}
/* ---------- gövde: koyu menünün yanında içerik kâğıt renginde, sol köşeleri yuvarlak ---------- */
.topbar {
  background: rgba(246, 244, 238, 0.86);
}
@media (min-width: 961px) {
  body {
    background: var(--forest);
  }
  .main {
    background: var(--pm-paper);
    min-height: 100vh;
    border-radius: 18px 0 0 18px;
    box-shadow: -1px 0 0 rgba(23, 60, 51, 0.08), -14px 0 30px -24px rgba(23, 60, 51, 0.4);
  }
  .topbar {
    border-top-left-radius: 18px;
  }
  .search-trigger {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line-strong), inset 0 1px 0 #fff, 0 1px 2px rgba(23, 60, 51, 0.04);
    transition: box-shadow 0.2s var(--pm-ease);
  }
  .search-trigger:hover {
    box-shadow: 0 0 0 1px var(--green), 0 0 0 4px rgba(39, 118, 91, 0.12);
  }
}
.icon-btn {
  transition: background 0.18s, transform 0.2s var(--pm-spring);
}
.icon-btn:hover {
  background: var(--surface-sunken);
}
.icon-btn:active {
  transform: scale(0.94);
}
@keyframes pm-ring {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-12deg);
  }
  60% {
    transform: rotate(8deg);
  }
  80% {
    transform: rotate(-4deg);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .icon-btn[data-action="notifications"]:hover .icon {
    animation: pm-ring 0.7s var(--pm-ease);
    transform-origin: 50% 10%;
  }
}

/* ---------- butonlar: dokunsal ---------- */
.btn {
  transition: transform 0.2s var(--pm-spring), box-shadow 0.16s var(--pm-ease), background 0.16s, border-color 0.16s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}
.btn.primary {
  background: linear-gradient(180deg, #1f4a3f, #173c33);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.28), 0 1px 2px rgba(16, 32, 26, 0.35),
    0 8px 16px -8px rgba(23, 60, 51, 0.55);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #245548, #1a4338);
}
.btn.primary .icon .d {
  opacity: 0.55;
  fill: var(--lime);
}

/* ---------- yüzeyler ---------- */
.panel {
  box-shadow: var(--pm-lift);
}
.metric:not(.featured) {
  box-shadow: var(--pm-lift);
}
.metric.featured {
  background: radial-gradient(120% 90% at 100% 0%, rgba(213, 233, 173, 0.22), transparent 55%), linear-gradient(170deg, #1f4a3f, #12302a);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 14px 28px -16px rgba(18, 48, 42, 0.8);
}
.today-card {
  box-shadow: var(--pm-lift);
}
.today-card,
.metric {
  transition: transform 0.25s var(--pm-ease), box-shadow 0.25s var(--pm-ease);
}
@media (hover: hover) {
  .today-card:hover,
  .metric:not(.featured):hover {
    transform: translateY(-2px);
    box-shadow: var(--pm-lift-hover);
    background-image: radial-gradient(200px circle at var(--pm-mx, 50%) var(--pm-my, 50%), rgba(189, 222, 128, 0.2), transparent 70%);
  }
  .metric.featured:hover {
    transform: translateY(-2px);
  }
}

/* ---------- açılır katmanlar ---------- */
.modal,
.search-modal,
.drawer,
.clinic-menu {
  box-shadow: var(--pm-pop);
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .nav a.active.pm-slide::before {
    animation: none;
  }
  .btn,
  .icon-btn,
  .today-card,
  .metric,
  .sidebar .nav a .icon {
    transition: none;
  }
}
