/* ============================================================================
   OFİS 4.1 — FAZ 1: yerleşim, hizalama, tam-sayfa modal, breadcrumb,
   bildirim dropdown, durum renkleri, dosya ikonları
   ========================================================================== */

/* ———————————————————————— 1. İÇERİK MERKEZLEME ———————————————————————— */
.main-content {
  margin-left: 248px;
  margin-right: 0;
  padding-left: max(var(--shell-pad), calc((100vw - 248px - 1240px) / 2));
  padding-right: max(var(--shell-pad), calc((100vw - 248px - 1240px) / 2));
  max-width: none;
}
@media (max-width: 1060px) {
  .main-content { margin-left: 0; padding-left: var(--shell-pad); padding-right: var(--shell-pad); }
}

/* ———————————————————————— 2. PANO HİZALAMA ———————————————————————— */
.dashboard-focus-grid { align-items: stretch; }
.dashboard-focus-grid > .panel { display: flex; flex-direction: column; }
.dashboard-focus-grid > .panel > *:last-child { flex: 1; }
.panel-header {
  min-height: 58px;
  align-items: center;
  box-sizing: border-box;
}
.panel-header > div { display: grid; gap: 1px; }
.panel-header .eyebrow { margin: 0; }

/* ———————————————————————— 3. MODAL → TAM SAYFA DENEYİMİ ———————————————————————— */
.modal {
  width: min(1160px, calc(100vw - 40px));
  max-height: 92vh;
}
.modal-frame {
  height: min(92vh, 940px);
  max-height: 92vh;
}
.modal-content { flex: 1; }
@media (max-width: 760px) {
  .modal { width: 100vw; max-height: 100vh; height: 100vh; margin: 0; }
  .modal-frame { height: 100vh; border-radius: 0; border: none; }
}

/* ———————————————————————— 4. BREADCRUMB ÇUBUĞU ———————————————————————— */
.ofs-crumbs {
  position: sticky;
  top: var(--topbar-h);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  padding: 7px 2px;
  font-size: .8rem;
  color: var(--faint);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
}
.ofs-crumbs a, .ofs-crumbs button {
  color: var(--muted);
  font-weight: 550;
  padding: 2px 5px;
  border-radius: 5px;
}
.ofs-crumbs a:hover, .ofs-crumbs button:hover { color: var(--accent); background: var(--accent-soft); }
.ofs-crumbs .ofs-sep { color: var(--control-line); font-size: .72rem; }
.ofs-crumbs .ofs-here { color: var(--ink); font-weight: 650; }

/* ———————————————————————— 5. BİLDİRİM DROPDOWN ———————————————————————— */
.ofs-notif-wrap { position: relative; }
.ofs-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(400px, calc(100vw - 24px));
  max-height: min(560px, 70vh);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  z-index: 210;
  animation: ofs-drop .16s var(--ease);
}
@keyframes ofs-drop { from { opacity: 0; transform: translateY(-6px); } }
.ofs-notif-head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  z-index: 2;
}
.ofs-notif-head h3 { margin: 0; font-size: .95rem; }
.ofs-notif-head button { color: var(--muted); font-size: .76rem; font-weight: 600; }
.ofs-notif-head button:hover { color: var(--accent); }
.ofs-notif-item {
  display: grid; gap: 3px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  width: 100%;
}
.ofs-notif-item:hover { background: var(--surface-soft); }
.ofs-notif-item:last-child { border-bottom: none; }
.ofs-notif-item .t { font-size: .86rem; font-weight: 600; color: var(--ink); }
.ofs-notif-item .s { font-size: .78rem; color: var(--muted); }
.ofs-notif-item time { font-size: .72rem; color: var(--faint); }
.ofs-notif-item.unread { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.ofs-notif-item.unread .t::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}
.ofs-notif-empty { padding: 30px 15px; text-align: center; color: var(--faint); font-size: .84rem; }
.ofs-notif-foot { padding: 9px 15px; border-top: 1px solid var(--line-soft); text-align: center; }
.ofs-notif-foot button { color: var(--accent); font-size: .8rem; font-weight: 600; }

/* ———————————————————————— 6. GÖREV DURUM RENKLERİ ———————————————————————— */
.task-card [data-status], .badge[data-status], select[data-status] { }
[data-status="todo"] .status-dot, .status-todo { --st: #78818f; }
[data-status="in_progress"] .status-dot, .status-in_progress { --st: var(--accent); }
[data-status="waiting"] .status-dot, .status-waiting { --st: var(--gold); }
[data-status="done"] .status-dot, .status-done { --st: var(--green); }
[data-status="cancelled"] .status-dot, .status-cancelled { --st: var(--red); }
.task-column-header::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--st, var(--control-line));
  margin-right: 7px;
  align-self: center;
}
.task-column-header { display: flex; align-items: center; }
.task-column[data-status="todo"] .task-column-header { --st: #78818f; }
.task-column[data-status="in_progress"] .task-column-header { --st: var(--accent); }
.task-column[data-status="waiting"] .task-column-header { --st: var(--gold); }
.task-column[data-status="done"] .task-column-header { --st: var(--green); }
.task-column[data-status="cancelled"] .task-column-header { --st: var(--red); }

/* ———————————————————————— 7. DOSYA İKONLARI ———————————————————————— */
.file-icon svg, .file-type-icon svg, .explorer-nav-icon svg, .file-thumb svg { display: block; }
.file-icon:has(svg), .file-type-icon:has(svg) { background: transparent; min-width: 34px; }
.file-type-icon.type-pdf svg { color: #d63030; }
.file-type-icon.type-img svg, .file-type-icon.type-image svg { color: #7c5cd6; }
.file-type-icon.type-video svg { color: #d64d8a; }
.file-type-icon.type-audio svg, .file-type-icon.type-music svg { color: #1e9e8a; }
.file-type-icon.type-txt svg, .file-type-icon.type-doc svg { color: #4d94f0; }
.file-type-icon.type-default svg { color: var(--faint); }
html[data-theme="gece"] .file-type-icon.type-pdf svg { color: #f07d7d; }
.folder-icon { color: #e8a33d; }
html[data-theme="gece"] .folder-icon { color: #f0bb60; }

/* ———————————————————————— 8. KÜÇük RÖTUŞLAR ———————————————————————— */
.wordmark-sign {
  background: linear-gradient(150deg, var(--accent), var(--accent-hover));
}
.task-board { grid-auto-rows: min-content; }
.task-card { padding: 9px 10px; }

/* hizalama düzeltmesi: grid kardeşlerinde üst boşluk olmamalı */
.dashboard-focus-grid > * + * { margin-top: 0 !important; }
