html, body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
}

/* Blazor Server yeniden bağlanma katmanı */
#components-reconnect-modal {
  z-index: 2000;
}

/* Sabit üst bar altında ana içerik doğru boşlukla başlasın — içerik barın
   arkasında gizlenmesin. İç boşluk (nefes payı) layout'taki MudContainer'dan gelir;
   bu kural yalnızca bar yüksekliği güvencesidir. */
.mud-layout .mud-main-content {
  padding-top: var(--mud-appbar-height, 64px) !important;
}

/* ---- Tam ekran editör yerleşimi (EditorLayout) ---- */
.editor-yerlesim {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mud-palette-background, #f5f6f8);
}

.editor-ustbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #26292e;
  color: #fff;
}

.editor-ustbar .dosya-adi {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-govde {
  flex: 1 1 auto;
  min-height: 0; /* flex çocuğunun taşmadan küçülebilmesi için şart */
}

.editor-govde > div,
.editor-govde iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Giriş sayfaları (statik SSR — MudBlazor'suz sade stil) ---- */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 15% -10%, #3a0a24 0%, transparent 55%),
              linear-gradient(150deg, #1a1c20 0%, #26292e 45%, #5a0a30 100%);
  font-family: "Open Sans", "Segoe UI", Roboto, sans-serif;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 388px;
  background: #ffffff;
  border-radius: 16px;
  padding: 34px 30px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border-top: 4px solid #c1272d;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 26px;
}

.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #c1272d;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(193, 39, 45, .35);
}

.auth-name {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-top: 6px;
}

.auth-sub {
  font-size: 13px;
  color: #6c757d;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 13px;
  color: #4a4f55;
  font-weight: 600;
}

.auth-field input {
  border: 1px solid #ccd1d7;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.auth-field input:focus {
  border-color: #79003d;
  box-shadow: 0 0 0 3px rgba(121, 0, 61, .14);
}

.auth-field .validation-message {
  color: #c62828;
  font-size: 12px;
}

.auth-error {
  background: #fdecea;
  color: #b71c1c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  border-left: 3px solid #d32f2f;
}

.auth-submit {
  width: 100%;
  background: #79003d;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s;
}

.auth-submit:hover {
  background: #5f0030;
}

.auth-foot {
  text-align: center;
  font-size: 12px;
  color: #93999f;
  margin-top: 24px;
  line-height: 1.6;
}

.auth-foot a {
  color: #79003d;
  text-decoration: none;
  font-weight: 600;
}
