/* /www/wwwroot/burak.nextcrm.com.tr/app/static/app.css — v1.1 */
:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --navy: #0c1f35;
  --navy-light: #173653;
  --primary: #2f6fed;
  --primary-hover: #245bc5;
  --text: #18212f;
  --muted: #667085;
  --border: #e2e8f0;
  --favorite: #d6455d;
  --danger: #c9363e;
  --success: #198754;

  --primary-soft: #eaf1fe;
  --favorite-soft: #fdeef1;
  --favorite-text: #b3263d;
  --danger-soft: #fdeeee;
  --danger-text: #a8262e;
  --success-soft: #e8f5ee;
  --success-text: #146c43;
  --field-border: #7d889b;
  --nav-text: #c7d2e0;
  --nav-accent: #8fb3ff;
  --stage: #08172a;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(12, 31, 53, .05), 0 1px 3px rgba(12, 31, 53, .07);
  --shadow-md: 0 10px 24px -14px rgba(12, 31, 53, .35);
  --shadow-lg: 0 24px 56px -20px rgba(12, 31, 53, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --sidebar-w: 264px;
  --bottom-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 400 16px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
.sprite { display: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy); font-weight: 600; box-shadow: var(--shadow-md);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--surface-soft); border-color: #cbd5e1; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(47, 111, 237, .3); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #ad2c33; border-color: #ad2c33; }
.btn-danger-outline { color: var(--danger-text); border-color: #efc3c6; }
.btn-danger-outline:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: inherit;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: rgba(12, 31, 53, .06); }
.icon-btn-dark { color: #fff; }
.icon-btn-dark:hover { background: rgba(255, 255, 255, .1); }
.icon-btn-dark:focus-visible { outline-color: var(--nav-accent); }
.icon-danger { color: var(--danger-text); }
.icon-danger:hover { background: var(--danger-soft); }
.row { display: flex; gap: 8px; align-items: center; }
.row-end { justify-content: flex-end; }

.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--surface); color: var(--primary);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark-sm { width: 34px; height: 34px; border-radius: 10px; }
.brand-mark-sm svg { width: 20px; height: 20px; }
.brand-mark-solid { width: 52px; height: 52px; border-radius: 15px; background: var(--navy); color: #fff; }
.brand-mark-solid svg { width: 28px; height: 28px; }
.brand-mark-lg { width: 56px; height: 56px; border-radius: 16px; }
.brand-mark-lg svg { width: 32px; height: 32px; }

.page-login { background: var(--bg); }
.auth {
  min-height: 100dvh; display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.auth-brand { display: none; }
.auth-panel { width: 100%; display: grid; place-items: center; }
.login-card {
  width: 100%; max-width: 420px; padding: 32px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.login-card h1 { margin-top: 20px; font-size: 1.65rem; font-weight: 750; letter-spacing: -.02em; color: var(--navy); }
.login-lead { margin-top: 6px; color: var(--muted); }
.alert {
  display: block; margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--danger-soft); color: var(--danger-text); border: 1px solid #f1c4c7; font-size: .93rem; font-weight: 600;
}
.login-form { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .93rem; }
.field input {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 12px;
  background: var(--surface); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 111, 237, .2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 54px; }
.password-toggle {
  position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.password-toggle:hover { background: var(--surface-soft); color: var(--text); }
.login-form .btn { height: 50px; margin-top: 4px; font-size: 1rem; }
.login-foot {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; line-height: 1.45;
}
.login-foot svg { width: 18px; height: 18px; margin-top: 1px; }

.app { min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(86vw, 300px);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(-102%); visibility: hidden;
  transition: transform 220ms var(--ease), visibility 0s linear 220ms;
}
.menu-open { overflow: hidden; }
.menu-open .sidebar { transform: none; visibility: visible; transition: transform 220ms var(--ease), visibility 0s; }
.scrim {
  position: fixed; inset: 0; z-index: 45; background: rgba(8, 23, 42, .5);
  opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.menu-open .scrim { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease), visibility 0s; }
.sidebar :focus-visible { outline-color: var(--nav-accent); }
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 2px 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; text-decoration: none; border-radius: 12px; }
.brand-name { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .8rem; color: var(--nav-text); }
.side-list, .side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-list-trash { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-link, .side-cat {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--nav-text);
  font-size: .95rem; font-weight: 550; text-align: left; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-link:hover, .side-cat:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link[aria-current="page"], .side-cat[aria-current="true"] { background: var(--navy-light); color: #fff; font-weight: 650; }
.side-link[aria-current="page"]::before, .side-cat[aria-current="true"]::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--nav-accent);
}
.side-cat { font-size: .92rem; }
.side-cat svg { width: 18px; height: 18px; }
.side-cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-section { margin-top: 22px; }
.side-section-head { display: flex; align-items: center; justify-content: space-between; padding-left: 12px; margin-bottom: 2px; }
.side-title { font-size: .82rem; font-weight: 650; color: var(--nav-text); letter-spacing: .01em; }
.icon-btn-sm { width: 44px; height: 44px; border-radius: 10px; }
.icon-btn-sm svg { width: 18px; height: 18px; }
.side-empty { padding: 8px 12px; color: var(--nav-text); font-size: .9rem; }
.sidebar-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.secure-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); color: var(--nav-text); font-size: .82rem; line-height: 1.45;
}
.secure-note svg { width: 18px; height: 18px; margin-top: 1px; color: var(--nav-accent); }
.logout { margin: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }

.workspace { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(6px + env(safe-area-inset-left));
  background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
.topbar :focus-visible { outline-color: var(--nav-accent); }
.topbar-brand {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 44px;
  color: #fff; text-decoration: none; border-radius: 10px;
}
.topbar-title { font-weight: 650; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-btn { flex: none; }
.upload-btn .label-long { display: none; }
.upload-btn[aria-busy="true"] svg { animation: pulse 1.2s var(--ease) infinite; }
.toolbar { padding: 12px calc(14px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left)); }
.search {
  position: relative; display: flex; align-items: center; min-width: 0; height: 52px; padding: 4px;
  border: 1px solid var(--field-border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 111, 237, .18); }
.search-icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 44px; border: 0; background: transparent;
  font-size: 1rem; outline: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-submit {
  flex: none; min-width: 64px; height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-hover); font-weight: 650;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.search-submit:hover { background: var(--primary); color: #fff; }

.content {
  flex: 1; width: 100%; max-width: 1680px; margin: 0 auto;
  padding: 18px calc(14px + env(safe-area-inset-right)) calc(var(--bottom-h) + 32px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
}
.content:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-title h1 { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; color: var(--navy); }
.count {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .84rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 4px 4px 4px 12px;
  border: 1px solid #d3e1fc; border-radius: 999px; background: var(--primary-soft); color: var(--navy); font-size: .88rem;
}
.chip > svg { width: 16px; height: 16px; color: var(--primary-hover); }
.chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--navy);
  transition: background-color var(--dur) var(--ease);
}
.chip a:hover { background: var(--surface); }
.chip a svg { width: 16px; height: 16px; }
.note {
  display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .92rem;
}
.note svg { width: 18px; height: 18px; color: var(--primary-hover); }

.month { margin-top: 26px; }
.month-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.month-head h2 { font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.month-count { color: var(--muted); font-size: .84rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.month-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden;
  border: 1px solid rgba(12, 31, 53, .07); border-radius: var(--radius);
  background: linear-gradient(135deg, #e7ecf3, #f4f7fb); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms var(--ease); }
.tile img.is-loading { opacity: 0; }
.tile:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.tile:active { transform: scale(.985); }
.tile-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.tile-placeholder > svg { width: 36%; height: 36%; }
.tile-shade {
  position: absolute; inset: auto 0 0 0; padding: 32px 12px 10px; text-align: left; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 23, 42, .82), rgba(8, 23, 42, 0));
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tile:focus-visible .tile-shade { opacity: 1; }
.tile-name { display: block; color: #fff; font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-video {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px;
  border-radius: 999px; background: rgba(8, 23, 42, .74); color: #fff; font-size: .74rem; font-weight: 650; line-height: 1;
}
.badge-video svg { width: 13px; height: 13px; }
.badge-fav {
  position: absolute; right: 8px; top: 8px; display: none; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--favorite); box-shadow: var(--shadow-sm);
}
.tile.is-fav .badge-fav { display: grid; }
.badge-fav svg { width: 16px; height: 16px; }

.empty {
  display: grid; justify-items: center; gap: 10px; max-width: 480px; margin: 40px auto 0; padding: 40px 24px;
  text-align: center; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-hover); margin-bottom: 6px; }
.empty-icon svg { width: 30px; height: 30px; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.empty-text { color: var(--muted); max-width: 36ch; margin-bottom: 8px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 28px; }
.pager .btn:last-child { justify-self: end; }
.pager-info { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -18px rgba(12, 31, 53, .45);
}
.bottom-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
  border-radius: 12px; color: var(--muted); font-size: .74rem; font-weight: 600; text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.bottom-link svg { width: 52px; height: 28px; padding: 3px 15px; border-radius: 999px; transition: background-color var(--dur) var(--ease); }
.bottom-link[aria-current="page"] { color: var(--primary-hover); font-weight: 700; }
.bottom-link[aria-current="page"] svg { background: var(--primary-soft); }

.upload-panel {
  position: fixed; z-index: 40; left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right));
  bottom: calc(var(--bottom-h) + 12px + env(safe-area-inset-bottom));
  padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: rise 200ms var(--ease);
}
.upload-head { display: flex; align-items: center; gap: 12px; }
.upload-badge {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-hover); transition: background-color var(--dur), color var(--dur);
}
.upload-panel[data-state="active"] .upload-badge svg { animation: pulse 1.2s var(--ease) infinite; }
.upload-info { flex: 1; min-width: 0; }
.upload-title { font-size: .98rem; font-weight: 700; color: var(--navy); }
.upload-text { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-meter { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.upload-meter progress {
  flex: 1; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--border);
  -webkit-appearance: none; appearance: none; accent-color: var(--primary);
}
.upload-meter progress::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.upload-meter progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; transition: width 200ms var(--ease); }
.upload-meter progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.upload-percent { min-width: 44px; text-align: right; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }
.upload-panel[data-state="success"] .upload-badge { background: var(--success-soft); color: var(--success-text); }
.upload-panel[data-state="success"] progress::-webkit-progress-value { background: var(--success); }
.upload-panel[data-state="success"] progress::-moz-progress-bar { background: var(--success); }
.upload-panel[data-state="error"] .upload-badge, .upload-panel[data-state="partial"] .upload-badge { background: var(--danger-soft); color: var(--danger-text); }
.upload-panel[data-state="error"] progress::-webkit-progress-value { background: var(--danger); }
.upload-panel[data-state="error"] progress::-moz-progress-bar { background: var(--danger); }
.upload-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 168px; overflow-y: auto; display: grid; gap: 4px; }
.upload-list:empty { display: none; }
.upload-item {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: start;
  padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); font-size: .85rem;
}
.upload-item svg { width: 18px; height: 18px; margin-top: 1px; color: var(--muted); }
.upload-item-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-status { grid-column: 2; color: var(--muted); font-size: .8rem; }
.upload-item[data-state="active"] { background: var(--primary-soft); }
.upload-item[data-state="active"] svg { color: var(--primary-hover); }
.upload-item[data-state="active"] .upload-item-status { color: var(--navy); }
.upload-item[data-state="done"] svg, .upload-item[data-state="done"] .upload-item-status { color: var(--success-text); }
.upload-item[data-state="error"] { background: var(--danger-soft); }
.upload-item[data-state="error"] svg, .upload-item[data-state="error"] .upload-item-status { color: var(--danger-text); }

.toast {
  position: fixed; z-index: 70; inset: auto; margin: 0; border: 0; overflow: visible;
  left: 50%; top: calc(72px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; font-size: .93rem; font-weight: 550;
  box-shadow: var(--shadow-lg); pointer-events: none; opacity: 0; transform: translate(-50%, -8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #6fd3a0; }
.toast[data-kind="error"] svg { color: #ff9aa8; }
.toast[data-kind="info"] svg { color: var(--nav-accent); }

dialog {
  padding: 0; border: 0; border-radius: var(--radius-lg); color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px);
}
dialog::backdrop { background: rgba(8, 23, 42, .55); }
dialog[open] { animation: dialog-in 200ms var(--ease); }
.sheet { width: 440px; padding: 20px; }
.sheet-sm { width: 380px; }
.sheet h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px 4px 0; }
.sheet-text { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.dialog-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
.dialog-icon svg { width: 22px; height: 22px; }
.dialog-icon-danger { background: var(--danger-soft); color: var(--danger-text); }
.confirm-text { margin-bottom: 20px; font-size: 1rem; font-weight: 550; overflow-wrap: anywhere; }
.notice-list { margin: 10px 0 20px; padding-left: 18px; max-height: 40dvh; overflow-y: auto; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.notice-list li + li { margin-top: 6px; }
.cat-list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 44dvh; overflow-y: auto; border-top: 1px solid var(--border); }
.cat-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); }
.cat-list a {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 48px; color: var(--text);
  text-decoration: none; font-weight: 600; border-radius: 8px;
}
.cat-list a svg { width: 18px; height: 18px; color: var(--muted); }
.cat-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list a:hover, .cat-list a[aria-current="true"] { color: var(--primary-hover); }
.cat-empty { padding: 12px 0; }
.cat-form label { display: block; margin-bottom: 6px; font-weight: 650; font-size: .93rem; }
.cat-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 12px; font-size: 1rem;
}
.cat-form input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 111, 237, .2); }

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0;
  background: var(--stage); color: #fff; box-shadow: none;
}
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: fade-in 200ms var(--ease); }
.viewer::backdrop { background: var(--stage); }
.viewer-main { position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer-main :focus-visible { outline-color: #fff; }
.viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
  padding: calc(4px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 4px calc(16px + env(safe-area-inset-left));
}
.viewer-counter { color: #d5deea; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.viewer-close-stage { color: #fff; background: rgba(255, 255, 255, .1); border-radius: 50%; }
.viewer-close-stage:hover { background: rgba(255, 255, 255, .2); }
.viewer-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 0 8px 10px; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.viewer-stage img { animation: fade-in 220ms var(--ease); }
.viewer-stage video { background: #000; }
.viewer-nav {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(8, 23, 42, .62); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); transition: background-color var(--dur) var(--ease);
}
.viewer-nav:hover { background: rgba(8, 23, 42, .88); }
.viewer-nav svg { width: 22px; height: 22px; }
.viewer-prev { left: calc(8px + env(safe-area-inset-left)); }
.viewer-next { right: calc(8px + env(safe-area-inset-right)); }
.viewer-panel {
  position: relative; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px calc(16px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text);
  box-shadow: 0 -16px 32px -20px rgba(0, 0, 0, .6);
}
.sheet-handle { width: 40px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: #cbd5e1; }
.viewer-close-panel { display: none; }
.viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.viewer-title { font-size: 1.06rem; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.viewer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--muted); font-size: .88rem; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 16px; height: 16px; }
.viewer-trash-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--danger-soft); color: var(--danger-text); font-size: .87rem; font-weight: 550;
}
.viewer-trash-note svg { width: 18px; height: 18px; margin-top: 1px; }
.viewer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.viewer-actions .btn { width: 100%; }
.btn-fav .fav-on { display: none; color: var(--favorite); }
.btn-fav[aria-pressed="true"] { background: var(--favorite-soft); border-color: #f3c0c9; color: var(--favorite-text); }
.btn-fav[aria-pressed="true"] .fav-on { display: block; }
.btn-fav[aria-pressed="true"] .fav-off { display: none; }
.viewer-cats {
  display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 18px 0 0; padding: 16px 0 0;
  border: 0; border-top: 1px solid var(--border);
}
.viewer-cats legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.viewer-cats .muted { margin: 0; font-size: .9rem; }
.viewer-cats .btn { flex-basis: 100%; margin-top: 4px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .92rem; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check:hover { border-color: #cbd5e1; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--navy); font-weight: 600; }
.check:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.check input:focus-visible { outline: none; }
.viewer-manage { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.panel-label { margin-bottom: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.manage-actions .btn { flex: 1 1 140px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .45; } }

@media (max-width: 1023px) {
  .page-title h1 {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .toolbar { padding: 16px 24px 0; }
  .content { padding: 22px 24px calc(var(--bottom-h) + 40px + env(safe-area-inset-bottom)); }
  .grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .upload-btn .label-long { display: inline; }
  .upload-btn .label-short { display: none; }
  .upload-panel { left: auto; width: 380px; right: 24px; }
  .login-card { padding: 40px 36px 28px; }
}

@media (min-width: 900px) {
  .viewer[open] { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) 380px; }
  .viewer-stage { padding: 4px 76px 28px; }
  .viewer-nav { width: 48px; height: 48px; }
  .viewer-prev { left: 18px; }
  .viewer-next { right: 18px; }
  .viewer-panel {
    display: flex; flex-direction: column; max-height: none; padding: 22px 24px 24px;
    border-radius: 0; box-shadow: none;
  }
  .sheet-handle, .viewer-close-stage { display: none; }
  .viewer-bar { justify-content: flex-start; padding-left: 24px; }
  .viewer-close-panel { display: inline-grid; margin: -8px -10px 0 0; }
  .viewer-manage { margin-top: auto; }
  .viewer-cats { margin-bottom: 18px; }
}

@media (min-width: 960px) {
  .auth {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "brand panel";
    padding: 0; place-items: stretch;
  }
  .auth-panel { grid-area: panel; padding: 48px; }
  .login-card { box-shadow: var(--shadow-lg); }
  .auth-brand {
    grid-area: brand; position: relative; display: flex; flex-direction: column; justify-content: center;
    overflow: hidden; padding: 64px clamp(40px, 5vw, 88px); background: var(--navy); color: #fff;
  }
  .auth-brand::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 80% at 100% 100%, rgba(47, 111, 237, .18), transparent 60%);
  }
  .auth-brand-inner { position: relative; z-index: 1; max-width: 470px; }
  .auth-brand-title { margin-top: 36px; font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 1.15; font-weight: 750; letter-spacing: -.025em; }
  .auth-brand-text { margin-top: 16px; max-width: 44ch; color: var(--nav-text); font-size: 1.04rem; }
  .trust-list { list-style: none; display: grid; gap: 14px; margin: 34px 0 0; padding: 0; }
  .trust-list li { display: flex; align-items: center; gap: 12px; color: #e6ecf4; font-size: .97rem; }
  .trust-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--navy-light); color: var(--nav-accent); }
  .trust-icon svg { width: 19px; height: 19px; }
  .auth-art { position: absolute; right: -70px; bottom: -50px; width: 400px; height: 330px; opacity: .9; }
  .art-frame {
    position: absolute; width: 230px; height: 176px; border-radius: 18px;
    background: var(--navy-light); border: 10px solid #1f4266; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  }
  .art-frame-back { left: 120px; top: 0; transform: rotate(9deg); opacity: .5; }
  .art-frame-mid { left: 60px; top: 50px; transform: rotate(-5deg); opacity: .75; }
  .art-frame-front { left: 0; top: 110px; overflow: hidden; transform: rotate(2deg); background: #1b3d60; }
  .art-sun { position: absolute; right: 38px; top: 30px; width: 26px; height: 26px; border-radius: 50%; background: var(--favorite); }
  .art-hill {
    position: absolute; left: -10px; right: -10px; bottom: -10px; height: 90px; background: rgba(255, 255, 255, .14);
    clip-path: polygon(0 100%, 0 70%, 32% 18%, 55% 58%, 72% 34%, 100% 78%, 100% 100%);
  }
}

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .sidebar {
    position: sticky; top: 0; width: auto; height: 100dvh; padding: 22px 16px 20px;
    transform: none; visibility: visible; box-shadow: none; transition: none;
  }
  .sidebar-close, .scrim, .menu-btn, .topbar-brand, .bottom-nav { display: none; }
  .menu-open { overflow: auto; }
  .workspace {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr;
    grid-template-areas: "toolbar topbar" "content content"; align-content: start;
  }
  .toolbar { grid-area: toolbar; position: sticky; top: 0; z-index: 30; padding: 18px 12px 14px 32px; background: var(--bg); }
  .topbar {
    grid-area: topbar; position: sticky; top: 0; padding: 18px 32px 14px 0;
    background: var(--bg); color: var(--text); box-shadow: none;
  }
  .topbar :focus-visible { outline-color: var(--primary); }
  .search { max-width: 760px; }
  .upload-btn { height: 52px; padding: 0 22px; border-radius: 14px; font-size: 1rem; }
  .content { grid-area: content; padding: 8px 32px 56px; }
  .page-title h1 { font-size: 1.75rem; }
  .grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .upload-panel { bottom: 24px; right: 32px; }
  .toast { left: calc(50% + var(--sidebar-w) / 2); top: 24px; }
}

@media (hover: hover) {
  .tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .tile:hover .tile-shade { opacity: 1; }
  .tile:active { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
/* /www/wwwroot/burak.nextcrm.com.tr/app/static/app.css — v1.1 */