/* =====================================================================
   Etik ve Disiplin Platformu — ortak stiller
   IE11 uyumlu: CSS değişkeni, flex "gap" ve CSS grid KULLANILMAZ.
   Önce fonts.css, sonra bu dosya yüklenmeli.

   Renk paleti (değiştirirken tüm dosyada ara-değiştir yapın):
     Lacivert (panel)       #12204A
     Lacivert (menü)        #0F1B3D
     Altın (vurgu)          #D4AF5F
     Mavi (birincil düğme)  #2453C8   hover #1A3F9E
     Metin                  #0F172A   ikincil #4B5566   soluk #5B6475
     Kenarlık               #CBD2DE   açık #E2E6EE
     Zemin (içerik)         #F4F6FA
   ===================================================================== */

html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  color: #0F172A;
  background: #ffffff;
}
*, *:before, *:after { box-sizing: border-box; }
a { color: #2453C8; }
a:hover { color: #1A3F9E; }
button { font-family: inherit; }
button:focus, a:focus, input:focus { outline: none; }
a:focus, button:focus { box-shadow: 0 0 0 3px rgba(36, 83, 200, .35); border-radius: 4px; }
.ed-mono { font-family: 'IBM Plex Mono', Consolas, monospace; }
.ed-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.ed-icon { display: inline-block; width: 18px; height: 18px; vertical-align: middle; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   MARKA KİLİDİ: logo + altın çizgi + uygulama adı (seçenek 1)
   --------------------------------------------------------------------- */
.ed-brand-logo { display: block; height: 40px; width: auto; }
.ed-brand-rule { width: 44px; height: 2px; background: #D4AF5F; margin: 22px 0; }
.ed-brand-name {
  font-size: 24px; line-height: 1.2; font-weight: 700;
  letter-spacing: .06em; color: #ffffff; white-space: nowrap; margin: 0;
  text-transform: uppercase;
}
.ed-brand-tagline { margin-top: 8px; font-size: 15px; line-height: 1.4; color: #B7C1DA; }
/* menü içindeki küçük hali */
.ed-brand--sm .ed-brand-logo { height: 34px; }
.ed-brand--sm .ed-brand-rule { width: 32px; margin: 12px 0; }
.ed-brand--sm .ed-brand-name { font-size: 13px; letter-spacing: .04em; }

/* ---------------------------------------------------------------------
   GİRİŞ / DOĞRULAMA SAYFA DÜZENİ
   --------------------------------------------------------------------- */
.ed-auth { display: flex; min-height: 100vh; height: 100%; }
.ed-auth-panel {
  width: 600px; flex-shrink: 0; padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #E6EAF4;
  background-color: #12204A;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.ed-auth-title {
  margin: 0 0 20px; max-width: 440px;
  font-size: 34px; line-height: 1.18; font-weight: 700; color: #ffffff; letter-spacing: -.01em;
}
.ed-auth-lead { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: #B7C1DA; }

.ed-features { list-style: none; margin: 40px 0 0; padding: 0; }
.ed-feature { display: flex; align-items: flex-start; margin-bottom: 18px; }
.ed-feature:last-child { margin-bottom: 0; }
.ed-feature-icon {
  width: 36px; height: 36px; flex-shrink: 0; margin-right: 14px; border-radius: 8px;
  background: rgba(212,175,95,.14); color: #D4AF5F;
  display: flex; align-items: center; justify-content: center;
}
.ed-feature-title { display: block; font-size: 15px; font-weight: 600; color: #ffffff; margin-bottom: 2px; }
.ed-feature-text { display: block; font-size: 14px; color: #A9B4CF; }

.ed-auth-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8E9AB8; }
.ed-auth-foot a { color: #B7C1DA; }

.ed-auth-main { flex: 1 1 auto; padding: 40px 56px; display: flex; flex-direction: column; }
.ed-auth-top { min-height: 44px; }
.ed-auth-center { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.ed-auth-legal { text-align: center; font-size: 12px; color: #5B6475; }

.ed-back { display: inline-flex; align-items: center; height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.ed-back .ed-icon { margin-right: 6px; width: 16px; height: 16px; }

/* ---------------------------------------------------------------------
   FORM
   --------------------------------------------------------------------- */
.ed-form { width: 400px; max-width: 100%; }
.ed-form > * { margin-bottom: 28px; }
.ed-form > *:last-child { margin-bottom: 0; }

.ed-steps { display: flex; margin-bottom: 12px; }
.ed-step { height: 4px; flex: 1 1 0%; border-radius: 2px; background: #E2E6EE; }
.ed-step + .ed-step { margin-left: 6px; }
.ed-step.is-done { background: #2453C8; }
.ed-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: #5B6475; }

.ed-h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.2; font-weight: 700; color: #0F172A; }
.ed-desc { margin: 0; font-size: 15px; line-height: 1.55; color: #4B5566; }

.ed-field { margin-bottom: 18px; }
.ed-field:last-child { margin-bottom: 0; }
.ed-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #1F2937; }
.ed-hint { margin-top: 8px; font-size: 13px; color: #5B6475; }
.ed-error { margin-top: 8px; font-size: 13px; color: #B42318; }
.ed-input-wrap { position: relative; }
.ed-input-icon { position: absolute; left: 14px; top: 15px; color: #6B7485; }
.ed-input {
  width: 100%; height: 48px; padding: 0 14px 0 42px;
  border: 1px solid #CBD2DE; border-radius: 8px; background: #ffffff;
  font-family: inherit; font-size: 15px; color: #0F172A;
}
.ed-input:focus { border-color: #2453C8; box-shadow: 0 0 0 3px rgba(36,83,200,.18); }
.ed-input.has-toggle { padding-right: 52px; }
.ed-input.input-validation-error { border-color: #B42318; }
.ed-input::-ms-reveal, .ed-input::-ms-clear { display: none; } /* IE/Edge'in kendi göz ikonunu gizle */
.ed-pw-toggle {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px;
  border: 0; background: transparent; color: #4B5566; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
}

.ed-btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: 52px; border: 0; border-radius: 8px; cursor: pointer;
  background: #2453C8; color: #ffffff; font-size: 16px; font-weight: 600;
}
.ed-btn:hover { background: #1A3F9E; }
.ed-btn .ed-icon { margin-left: 10px; }
.ed-btn[disabled] { background: #8FA6DE; cursor: not-allowed; }

.ed-notice {
  display: flex; padding: 14px 16px; border-radius: 8px;
  background: #F4F6FA; border: 1px solid #E2E6EE;
  font-size: 13px; line-height: 1.5; color: #4B5566;
}
.ed-notice .ed-icon { width: 16px; height: 16px; margin: 2px 12px 0 0; color: #5B6475; }

/* Doğrulama: gönderilen kanallar */
.ed-channel {
  display: flex; align-items: center; padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid #E2E6EE; border-radius: 8px; background: #F8F9FC;
}
.ed-channel:last-child { margin-bottom: 0; }
.ed-channel-icon {
  width: 32px; height: 32px; flex-shrink: 0; margin-right: 12px; border-radius: 8px;
  background: #E7EDFB; color: #2453C8; display: flex; align-items: center; justify-content: center;
}
.ed-channel-icon .ed-icon { width: 16px; height: 16px; }
.ed-channel-kind { display: block; font-size: 12px; color: #5B6475; }
.ed-channel-value { display: block; font-size: 14px; font-weight: 600; color: #1F2937; }

/* Doğrulama: 6 haneli kod kutuları */
.ed-otp { border: 0; margin: 0; padding: 0; min-width: 0; }
.ed-otp legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #1F2937; }
.ed-otp-boxes { display: flex; justify-content: space-between; margin-bottom: 10px; }
.ed-otp-box {
  width: 58px; height: 64px; text-align: center;
  border: 1px solid #CBD2DE; border-radius: 8px; background: #ffffff;
  font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 26px; font-weight: 600; color: #0F172A;
}
.ed-otp-box:focus { border-color: #2453C8; box-shadow: 0 0 0 3px rgba(36,83,200,.18); }

.ed-timer-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: #4B5566; }
.ed-timer-value { font-weight: 600; color: #2453C8; }
.ed-timer-bar { height: 4px; border-radius: 2px; background: #E2E6EE; overflow: hidden; }
.ed-timer-fill { height: 4px; border-radius: 2px; background: #2453C8; width: 100%; }
.ed-timer.is-warning .ed-timer-value { color: #B42318; }
.ed-timer.is-warning .ed-timer-fill { background: #B42318; }

.ed-resend { text-align: center; font-size: 14px; color: #4B5566; }
.ed-link-btn {
  border: 0; background: transparent; padding: 0 6px; min-height: 44px;
  font-size: 14px; font-weight: 600; color: #2453C8; cursor: pointer;
}
.ed-link-btn[disabled] { color: #5B6475; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   UYGULAMA KABUĞU + SOL MENÜ (_Layout)
   --------------------------------------------------------------------- */
.ed-app { display: flex; height: 100vh; background: #F4F6FA; }
.ed-nav {
  width: 280px; flex-shrink: 0; display: flex; flex-direction: column;
  background: #0F1B3D; color: #C9D1E6; overflow-y: auto;
}
.ed-nav-brand { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
a.ed-nav-brand { display: block; text-decoration: none; color: inherit; }
a.ed-nav-brand:hover { background: rgba(255,255,255,.04); }
a.ed-nav-brand:focus { outline: 0; -webkit-box-shadow: inset 0 0 0 3px rgba(212,175,95,.6); box-shadow: inset 0 0 0 3px rgba(212,175,95,.6); }
.ed-nav-cta { padding: 20px 16px 8px; }
.ed-btn-gold {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 44px;
  border: 0; border-radius: 8px; background: #D4AF5F; color: #0F1B3D;
  font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.ed-btn-gold:hover { background: #E0BE73; color: #0F1B3D; }
.ed-btn-gold .ed-icon { margin-right: 8px; }

.ed-nav-body { flex: 1 1 auto; padding: 8px 12px; }
.ed-nav-group { margin-bottom: 20px; }
.ed-nav-heading { padding: 8px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #8894B3; }
.ed-nav-list { list-style: none; margin: 0; padding: 0; }
.ed-nav-link {
  display: flex; align-items: center; height: 44px; padding: 0 12px; margin-bottom: 2px;
  border-radius: 8px; color: #C9D1E6; text-decoration: none; font-size: 14px; font-weight: 500;
}
.ed-nav-link:hover { background: rgba(255,255,255,.06); color: #ffffff; }
.ed-nav-link .ed-icon { margin-right: 12px; color: #8F9BBA; }
.ed-nav-link.is-active { background: rgba(255,255,255,.10); color: #ffffff; font-weight: 600; }
.ed-nav-link.is-active .ed-icon { color: #D4AF5F; }
.ed-nav-text { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #D4AF5F; color: #0F1B3D; font-size: 12px; font-weight: 700;
}
.ed-badge--muted { background: rgba(255,255,255,.14); color: #ffffff; }

.ed-nav-foot { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.ed-nav-help { display: flex; align-items: center; height: 36px; padding: 0 4px; margin-bottom: 12px; color: #C9D1E6; text-decoration: none; font-size: 13px; }
.ed-nav-help .ed-icon { width: 16px; height: 16px; margin-right: 10px; }
.ed-version { margin-top: 12px; padding: 0 4px; font-size: 11px; color: #8894B3; }

.ed-shell { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ed-topbar {
  height: 72px; flex-shrink: 0; padding: 0 32px; display: flex; align-items: center;
  background: #ffffff; border-bottom: 1px solid #E2E6EE;
}
.ed-topbar-title { flex: 1 1 auto; }
.ed-crumb { display: block; font-size: 12px; color: #5B6475; }
.ed-page-title { display: block; margin: 2px 0 0; font-size: 20px; font-weight: 700; color: #0F172A; }
.ed-topbar-divider { width: 1px; height: 32px; background: #E2E6EE; margin: 0 16px; -ms-flex-negative: 0; flex-shrink: 0; }
.ed-topbar-user { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; margin-right: 4px; }
.ed-topbar-avatar {
  width: 36px; height: 36px; -ms-flex-negative: 0; flex-shrink: 0; margin-right: 12px;
  border-radius: 18px; background: #12204A; color: #ffffff; font-size: 13px; font-weight: 700;
  display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center;
}
.ed-topbar-name { display: block; font-size: 14px; font-weight: 600; color: #0F172A; }
.ed-topbar-role { display: block; margin-top: 1px; font-size: 12px; color: #5B6475; }
.ed-logout-form { margin: 0 0 0 20px; }
.ed-logout-btn {
  height: 40px; padding: 0 14px; border: 1px solid #E2E6EE; border-radius: 8px;
  background: #ffffff; color: #1F2937; font-size: 14px; font-weight: 600; cursor: pointer;
  display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center;
}
.ed-logout-btn .ed-icon { width: 16px; height: 16px; margin-right: 8px; }
.ed-logout-btn:hover { color: #B42318; border-color: #F2C4BF; }
.ed-bell {
  position: relative; width: 44px; height: 44px; border: 1px solid #E2E6EE; border-radius: 8px;
  background: #ffffff; color: #1F2937; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ed-bell-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 4px; background: #D4AF5F; border: 2px solid #ffffff; }
.ed-content { flex: 1 1 auto; padding: 32px; overflow-y: auto; }

/* Hamburger: masaüstünde gizli; mobilde platform.css media sorgusu gösterir */
.ed-menu-toggle { display: none; }
/* Arka plan örtüsü: varsayılan gizli; .ed-app.nav-open ile görünür */
.ed-nav-backdrop { display: none; }

/* ---------------------------------------------------------------------
   MOBİL UYUM — Uygulama kabuğu (≤ 767px)
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Hamburger düğmesi */
  .ed-menu-toggle {
    display: -ms-flexbox; display: flex;
    -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center;
    width: 44px; height: 44px; -ms-flex-negative: 0; flex-shrink: 0; margin-right: 10px;
    border: 1px solid #E2E6EE; border-radius: 8px; background: #ffffff; color: #1F2937; cursor: pointer;
  }

  /* Sol menü: sayfanın dışında bekler, açılınca süzülür */
  .ed-nav {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 300; width: 260px;
    -webkit-transform: translateX(-100%); -ms-transform: translateX(-100%); transform: translateX(-100%);
    -webkit-transition: -webkit-transform .25s ease; transition: transform .25s ease;
    overflow-y: auto;
  }
  .ed-app.nav-open .ed-nav {
    -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0);
  }

  /* Arka plan örtüsü */
  .ed-nav-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 299; background: rgba(0,0,0,.4);
  }
  .ed-app.nav-open .ed-nav-backdrop { display: block; }

  /* Kabuk tam genişlik */
  .ed-shell { width: 100%; }

  /* Topbar: daha sıkışık */
  .ed-topbar { height: 60px; padding: 0 16px; }
  .ed-topbar-divider { display: none; }
  .ed-crumb { display: none; }
  .ed-page-title { font-size: 16px; }

  /* Kullanıcı bilgisi: sadece avatar, ad/rol metni gizlenir */
  .ed-topbar-user > div:last-child { display: none; }
  .ed-topbar-avatar { margin-right: 0; }

  /* Çıkış: sadece ikon */
  .ed-logout-label { display: none; }
  .ed-logout-btn .ed-icon { margin-right: 0; }
  .ed-logout-form { margin-left: 8px; }

  /* İçerik: daha az iç boşluk */
  .ed-content { padding: 20px 16px; }
}

/* ---------------------------------------------------------------------
   MOBİL UYUM — Auth ekranları (≤ 767px)
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Sol panel tamamen gizlenir; sağ form ekranı tüm genişliği kaplar */
  .ed-auth { display: block; min-height: 100vh; }
  .ed-auth-panel { display: none; }
  .ed-auth-main { padding: 24px 20px; min-height: 100vh; }

  /* Form başlığı biraz küçülür */
  .ed-h2 { font-size: 24px; }

  /* OTP kutuları ekrana sığsın */
  .ed-otp-box { width: 42px; height: 52px; font-size: 20px; }

  /* Üst "Farklı hesapla giriş yap" bağlantısı */
  .ed-auth-top { min-height: 36px; }
}

/* Çok küçük telefon (< 360px) */
@media (max-width: 359px) {
  .ed-auth-main { padding: 20px 14px; }
  .ed-otp-box { width: 36px; height: 46px; font-size: 18px; }
}

/* -----------------------------------------------------------------------
   ISLAK İMZA UYARI BLOĞU  (ed-sign-callout*)
   IE11 uyumlu: gap yok, CSS değişkeni yok, grid yok.
   ----------------------------------------------------------------------- */
.ed-sign-callout {
    background: #FFF7E6;
    border: 2px solid #F5B54A;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
}
.ed-sign-callout__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #B54708;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-right: 16px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -ms-flex-item-align: start;
    align-self: flex-start;
}
.ed-sign-callout__body {
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
}
.ed-sign-callout__title {
    font-size: 17px;
    font-weight: 700;
    color: #7A2E0E;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.ed-sign-callout__text {
    font-size: 14px;
    color: #5C3A0A;
    margin: 0 0 4px 0;
    line-height: 1.5;
}
.ed-sign-callout__count {
    font-size: 14px;
    font-weight: 700;
    color: #7A2E0E;
    margin: 0 0 14px 0;
}
.ed-sign-callout__steps {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 18px;
    margin-top: 12px;
}
.ed-sign-callout__step {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 8px;
}
.ed-sign-callout__step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #FBD99A;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #7A2E0E;
    margin-right: 8px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ed-sign-callout__step-label {
    font-size: 14px;
    font-weight: 700;
    color: #7A2E0E;
}
.ed-sign-callout__actions {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}
.ed-sign-callout__btn-primary {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    background: #B54708;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 8px;
    font-family: inherit;
    white-space: nowrap;
}
.ed-sign-callout__btn-primary:hover { background: #8F3806; color: #fff; }
.ed-sign-callout__btn-secondary {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    background: #fff;
    color: #7A2E0E;
    border: 1px solid #E8B765;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
    font-family: inherit;
    white-space: nowrap;
}
.ed-sign-callout__btn-secondary:hover { background: #FFF7E6; }
.ed-sign-callout__btn-icon {
    margin-right: 8px;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.ed-sign-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #B54708;
    background: #FFF1D6;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}
