@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  font-family:'DM Sans',sans-serif;
  color:#243a34;
  background:var(--shell-paper);
  font-synthesis:none;
  --green:#184d43;
  --muted:#7d8984;
  --border:#e5eae6;
  --sidebar:272px;
  --header:88px;
  /* Kabuk (topbar/sidebar) için yeni tasarım sistemi tokenları. İçerik sayfaları hâlâ yukarıdaki eski tokenları kullanır. */
  --shell-ink:#12241f;
  --shell-ink-foreground:#f3efe6;
  /* Faz 4: "mühür" vurgusu — MEB kırmızısından (kapak belgelerinde kullanılan #e00018) türetilmiş, ekran için koyulaştırılmış bordo.
     Yalnızca "şu an buradasın / seçili" anlamına gelen yerlerde ve imza çizgisinde kullanılır — genel hover/focus rengi değildir. */
  --shell-accent:#b23e52;
  --shell-paper:#f3f0e8;
  --shell-surface:#fff;
  --shell-border:#e4ded2;
  --shell-muted:rgba(243,239,230,.68);
  /* Odak (focus) kendi rengini taşır — vurgu rengine bağımlı değildir. Buton/link odak halkasıyla aynı ton. */
  --shell-focus:#6c9e8b;
  /* Faz 4: Fraunces kaldırıldı — sisteme yeterince katkı sağlamıyordu. Kimlik artık Manrope'un ağır kesimiyle (800) kuruluyor. */
  --font-display:'Manrope',sans-serif;
  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:20px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:64px;
  /* Faz 2: içerik yüzeyleri (beyaz kart/form zemini) için kabuk tonlarının açık-zemin karşılıkları. */
  --content-ink:#1c1f1d;
  --content-muted:#6e6a61;
  --radius-card:12px;
  --radius-control:8px;
  --shadow-card:0 1px 2px rgba(18,36,31,.05);
  --success:#166534;
  --success-bg:#eef6ee;
  --success-border:#cfe8cf;
  --warning:#8a4b0c;
  --warning-bg:#fdf3e3;
  --warning-border:#f1ddb3;
  --error:#b91c1c;
  --error-bg:#fdecec;
  --error-border:#f3c9c9;
  --info:#1d4e89;
  --info-bg:#eaf1f8;
  --info-border:#c9dcee
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,a {
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation
}
button {
  font:inherit
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
svg {
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.icon-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
button:focus-visible,a:focus-visible {
  outline:3px solid var(--shell-focus);
  outline-offset:5px
}
/* Faz 2 — ortak kart yüzeyi. .document-editor (ortak/a4/styles.css) ve içerik kartları bunu paylaşır. */
.card {
  padding:var(--space-4);
  border:1px solid var(--shell-border);
  border-radius:var(--radius-card);
  background:var(--shell-surface);
  box-shadow:var(--shadow-card)
}

/* Faz 2 — ortak buton sistemi: primary/secondary/ghost/icon. Var olan .btn-primary hover kuralı korunur. */
.btn-primary,.btn-secondary,.btn-ghost {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:var(--radius-control);
  padding:11px 18px;
  font:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  white-space:nowrap;
  transition:background .15s ease,border-color .15s ease,color .15s ease,filter .15s ease
}
.btn-primary {
  border:0;
  background:var(--shell-ink);
  color:var(--shell-ink-foreground)
}
.btn-primary:hover:not(:disabled) {
  filter:brightness(1.1)
}
.btn-primary:active:not(:disabled) {
  filter:brightness(.94)
}
.btn-secondary {
  border:1px solid var(--shell-border);
  background:#fff;
  color:var(--content-ink)
}
.btn-secondary:hover:not(:disabled) {
  border-color:#c9c0ad;
  background:#faf8f3
}
.btn-secondary:active:not(:disabled) {
  background:#f6f3ec
}
.btn-ghost {
  border:1px solid transparent;
  background:transparent;
  color:var(--content-ink)
}
.btn-ghost:hover:not(:disabled) {
  background:#f2efe8
}
.btn-ghost:active:not(:disabled) {
  background:#ebe6da
}
.btn-primary:disabled,.btn-secondary:disabled,.btn-ghost:disabled {
  opacity:.55;
  cursor:not-allowed
}
/* Yükleniyor: metin zaten durumu anlatır; ek olarak sade, tek renkli bir halka döner. Hareket azaltmada döngü durur, halka sabit kalır. */
.btn-primary[aria-busy=true],.btn-secondary[aria-busy=true],.btn-ghost[aria-busy=true] {
  cursor:wait
}
.btn-primary[aria-busy=true]::after,.btn-secondary[aria-busy=true]::after,.btn-ghost[aria-busy=true]::after {
  content:'';
  width:13px;
  height:13px;
  border-radius:50%;
  border:2px solid currentColor;
  border-top-color:transparent;
  opacity:.85;
  animation:btn-spin .7s linear infinite
}
@media (prefers-reduced-motion:reduce) {
  .btn-primary[aria-busy=true]::after,.btn-secondary[aria-busy=true]::after,.btn-ghost[aria-busy=true]::after {
    animation:none
  }
}
@keyframes btn-spin {
  to { transform:rotate(360deg) }
}
.btn-icon {
  background:none;
  border:0;
  border-radius:6px;
  color:var(--content-ink);
  min-width:44px;
  min-height:44px;
  padding:var(--space-2);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .2s
}
.btn-icon:hover:not(:disabled) {
  background:#f2efe8
}
.btn-icon:active:not(:disabled) {
  background:#ebe6da
}

/* Faz 3 — sitedeki tüm <select> öğeleri için tek ortak taban (belge editörü, önizleme araç çubuğu, pdf araç çubuğu vb. artık bunu paylaşır; sayfa dosyaları yalnızca farklı olduğu yerde ek kural tanımlar). */
select {
  padding:10px 12px;
  border:1px solid var(--shell-border);
  border-radius:var(--radius-control);
  background:#fff;
  color:var(--content-ink);
  font:inherit;
  font-size:13px;
  line-height:1.6;
  transition:border-color .15s ease,box-shadow .15s ease
}
select:hover:not(:disabled) {
  border-color:#c9c0ad
}
select:focus-visible {
  outline:none;
  border-color:var(--shell-focus);
  box-shadow:0 0 0 3px rgba(108,158,139,.35)
}
select:disabled {
  opacity:.55;
  cursor:not-allowed;
  background:#f2efe8
}

/* Faz 2 — success/warning/error/info geri bildirim dili. Erişilebilirlik: role/aria tüketen tarafından ayarlanır, burada yalnızca görünüm var. */
.status-message {
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:9px 12px;
  border:1px solid var(--shell-border);
  border-radius:8px;
  background:#faf9f6;
  color:var(--content-muted);
  font-size:11px;
  line-height:1.6;
  overflow-wrap:anywhere;
  transition:background .15s ease,border-color .15s ease,color .15s ease
}
.status-message svg {
  width:15px;
  height:15px;
  margin-top:1px;
  flex-shrink:0
}
.status-message--success {
  background:var(--success-bg);
  border-color:var(--success-border);
  color:var(--success)
}
.status-message--warning {
  background:var(--warning-bg);
  border-color:var(--warning-border);
  color:var(--warning)
}
.status-message--error {
  background:var(--error-bg);
  border-color:var(--error-border);
  color:var(--error)
}
.status-message--info {
  background:var(--info-bg);
  border-color:var(--info-border);
  color:var(--info)
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  z-index:40;
  padding:12px;
  background:var(--green);
  color:white
}
.skip-link:focus {
  top:12px
}
.topbar {
  height:var(--header);
  position:fixed;
  inset:0 0 auto;
  z-index:30;
  background:var(--shell-surface);
  border-bottom:1px solid var(--shell-border);
  box-shadow:0 1px 2px rgba(18,36,31,.05);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--space-6) 0 var(--space-5);
  gap:var(--space-4)
}
.brand {
  display:flex;
  align-items:center;
  gap:15px
}
.brand-logo {
  width:60px;
  height:60px;
  object-fit:contain;
  flex-shrink:0
}
.brand-name {
  font-family:var(--font-display);
  font-size:17px;
  font-weight:800;
  letter-spacing:-.2px
}
.brand-name>span {
  display:block;
  font-family:'DM Sans',sans-serif;
  font-size:11px;
  letter-spacing:.7px;
  font-weight:400;
  color:#87928c;
  margin-top:5px
}
.topbar-end {
  display:flex;
  align-items:center;
  gap:var(--space-3)
}
.header-label {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:#75827b
}
.topbar-logout {
  padding:9px 14px;
  font-size:12px
}
.topbar-logout svg {
  width:16px;
  height:16px
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#5f8c76
}
.sidebar {
  position:fixed;
  top:var(--header);
  bottom:0;
  left:0;
  width:var(--sidebar);
  background:var(--shell-ink);
  color:var(--shell-ink-foreground);
  padding:var(--space-6) var(--space-3) 0;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  z-index:25
}
.workspace-label {
  font-size:11px;
  font-weight:600;
  color:var(--shell-muted);
  margin:0 var(--space-3) var(--space-4)
}
.nav-group {
  border:0;
  background:rgba(255,255,255,.08);
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:var(--space-2);
  width:100%;
  padding:var(--space-2) var(--space-3);
  text-align:left;
  font-size:13px;
  font-weight:650;
  color:var(--shell-ink-foreground);
  transition:background .2s
}
.nav-group .chevron {
  margin-left:auto;
  width:16px;
  transition:transform .2s
}
.nav-group[aria-expanded=false] .chevron {
  transform:rotate(-90deg)
}
.submenu {
  position:relative;
  padding:9px 0 0 13px;
  margin-left:17px
}
.submenu:before {
  content:'';
  position:absolute;
  left:0;
  top:16px;
  bottom:22px;
  width:1px;
  background:rgba(255,255,255,.14)
}
.submenu[hidden] {
  display:none
}
.nav-link {
  display:flex;
  align-items:center;
  gap:10px;
  padding:var(--space-2) var(--space-3) var(--space-2) 9px;
  font-size:12px;
  color:var(--shell-muted);
  border-radius:6px;
  border-left:3px solid transparent;
  margin:3px 0;
  line-height:1.65;
  transition:background .2s,color .2s,border-color .2s
}
.nav-link svg {
  flex-shrink:0;
  width:17px;
  height:17px
}
.nav-link:hover {
  background:rgba(255,255,255,.08);
  color:var(--shell-ink-foreground)
}
.nav-link:active {
  background:rgba(255,255,255,.14)
}
.nav-link.active {
  background:rgba(178,62,82,.18);
  color:var(--shell-ink-foreground);
  border-left-color:var(--shell-accent);
  font-weight:600
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:var(--space-7)
}
.location {
  display:flex;
  align-items:center;
  gap:6px;
  border-top:1px solid rgba(255,255,255,.14);
  padding:var(--space-4) var(--space-1);
  font-size:10px;
  color:var(--shell-muted)
}
.location svg {
  width:14px;
  height:14px
}
.location>span {
  margin-left:auto;
  font-size:8px;
  letter-spacing:1px;
  color:var(--shell-muted)
}
/* Ortak uygulama kabuğu. Bölümlerin stilleri kendi klasörlerindedir. */
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}
main {
  margin-left:var(--sidebar);
  padding:calc(var(--header) + 32px) 42px 32px;
  min-height:100vh;
  min-height:100dvh;
  outline:none
}
#page-content {
  max-width:1440px;
  margin-inline:auto
}
.icon-button {
  background:none;
  border:0;
  color:var(--green);
  min-width:44px;
  min-height:44px;
  padding:var(--space-2);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  transition:background .2s
}
.icon-button:hover {
  background:#eaf1ec
}
.icon-button:active {
  background:#deebe2
}
.nav-group:hover {
  background:rgba(255,255,255,.14)
}
.nav-group:active {
  background:rgba(255,255,255,.18)
}
.mobile-menu,.sidebar-backdrop {
  display:none
}
noscript {
  display:block;
  margin:calc(var(--header) + 20px) 20px 20px calc(var(--sidebar) + 20px)
}
@media(max-width:1150px) {
:root {
  --sidebar:252px
}
main {
  padding-left:27px;
  padding-right:27px
}
.brand-name {
  font-size:15px
}
.header-label {
  font-size:10px
}
}
@media(max-width:900px) {
.header-label {
  display:none
}
.sidebar {
  padding-left:12px;
  padding-right:12px
}
}
@media(max-width:680px) {
:root {
  --header:76px
}
.topbar {
  padding:0 12px 0 10px;
  justify-content:flex-start;
  gap:7px
}
.mobile-menu {
  display:flex
}
.brand {
  gap:9px;
  min-width:0;
  overflow:hidden
}
.brand-name {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.topbar-logout span {
  display:none
}
.topbar-logout {
  min-width:44px;
  padding:9px;
  justify-content:center
}
.brand-logo {
  width:44px;
  height:44px
}
.brand-name {
  font-weight:700;
  font-size:clamp(10px,2.8vw,15px);
  letter-spacing:-.2px
}
.brand-name>span {
  font-size:9px;
  letter-spacing:.25px;
  margin-top:4px
}
.sidebar {
  width:272px;
  max-width:85vw;
  transform:translateX(-100%);
  transition:transform .2s
}
.sidebar.open {
  transform:translateX(0)
}
.sidebar-backdrop:not([hidden]) {
  display:block;
  position:fixed;
  inset:var(--header) 0 0;
  background:#163c3240;
  z-index:20;
  backdrop-filter:blur(2px)
}
body.menu-open {
  overflow:hidden
}
main {
  margin-left:0;
  padding:calc(var(--header) + 20px) 16px 20px
}
noscript {
  margin-left:16px
}
}
@media(prefers-reduced-motion:reduce) {
*,*::before,*::after {
  transition:none!important;
  scroll-behavior:auto!important
}
}
.empty-section {
  padding:var(--space-4);
  border:1px solid var(--shell-border);
  border-radius:var(--radius-card);
  background:var(--shell-surface);
  box-shadow:var(--shadow-card);
}
.empty-section h1 { margin:0 0 14px; font-family:var(--font-display); font-size:24px; font-weight:800; letter-spacing:-.01em; color:var(--content-ink); overflow-wrap:anywhere; text-wrap:balance; }
.empty-section p { margin:0; color:var(--content-muted); line-height:1.6; }

/* Faz 4 — imza detayı: gerçek sayfa/panel başlıklarının altında kısa bir mühür-rengi çizgi. Kapak belgelerindeki
   `__rule` motifinden (kırmızı şerit) esinlenir; ekranda tek, kontrollü ve tutarlı bir kimlik izi olarak kullanılır.
   Yalnızca üç gerçek "giriş" noktasında: özet ekranı başlığı, editör paneli başlığı, boş bölüm başlığı. */
.dashboard-header h1::after,
.editor-panel__title::after,
.empty-section h1::after {
  content:'';
  display:block;
  width:34px;
  height:3px;
  margin-top:12px;
  background:var(--shell-accent);
  border-radius:1px
}
