/* ===================== E-FILE • GLOBAL THEME (public_html/style.css) ===================== */

:root{
  --nav:#2e4a67;
  --nav2:#28435d;

  --page:#eaf4ff;
  --panel:#d9ecff;
  --row:#d7ecff;

  --mini:#eef6ff;
  --miniBorder:rgba(15,23,42,.12);

  --text:#0b1f33;
  --muted:#6b7b8f;
  --line:rgba(15,23,42,.10);

  --primary:#2b73ff;
  --primary2:#1f5fe2;

  --card:#ffffff;
  --soft:#f3f8ff;
  --stroke:rgba(15,23,42,.14);
  --strokeStrong:rgba(43,115,255,.55);

  --shadow:0 18px 50px rgba(2,6,23,.16);
  --r:18px;

  --danger:#ef4444;
  --danger2:#b91c1c;

  --focus:rgba(43,115,255,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:#fff;
}
button, input, select{ font:inherit; }
button{ cursor:pointer; }
a{ color:inherit; text-decoration:none; }

:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
  border-radius:12px;
}

/* ===================== LOGIN SCREEN ===================== */
.loginScreen{
  position:fixed; inset:0; z-index:900;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(43,115,255,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(46,74,103,.10), transparent 55%),
    #ffffff;
}

/* TOP ACTIONS (TR + ADMIN) */
.topActions{
  position:fixed;
  top:calc(env(safe-area-inset-top) + 14px);
  right:14px;
  display:flex;
  gap:10px;
  z-index:999;
}

.langPill,
.adminPill{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius:999px;
  padding:8px 14px;
  font-weight:900;
  color:#111;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.langPill:hover,
.adminPill:hover{ border-color:rgba(0,0,0,.18); box-shadow:0 12px 34px rgba(0,0,0,.08); }
.langPill:active,
.adminPill:active{ transform:translateY(1px); }

/* Card container */
.loginCardWrap{
  width:min(440px, 100%);
  text-align:center;
  padding:0 6px;
}

/* Logo */
.loginLogo{
  width:126px; height:126px;
  margin:0 auto 16px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow:0 24px 60px rgba(37,99,235,.32);
  display:grid;
  place-items:center;
}
.loginLogoInner{
  width:112px; height:112px;
  border-radius:999px;
  border:4px solid rgba(255,255,255,.85);
  display:grid;
  place-items:center;
}
.loginLogoImg{
  width:78px;
  height:78px;
  object-fit:contain;
  border-radius:14px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}

/* Title / subtitle */
.loginTitle{
  margin:8px 0 8px;
  font-size:38px;
  font-weight:1000;
  letter-spacing:.2px;
  color:#0b1220;
}
.loginSub{
  color:rgba(11,18,32,.55);
  font-size:16px;
  margin-bottom:18px;
  font-weight:800;
}

/* Role Switch */
.roleSwitch{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:18px auto 14px;
  padding:10px;
  border-radius:20px;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.06);
}

.roleBtn{
  width:86px;
  height:86px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  display:grid;
  place-items:center;
  font-weight:1000;
  color:#111827;
  letter-spacing:.4px;
  box-shadow:0 10px 20px rgba(0,0,0,.06);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.roleBtn:hover{
  border-color:rgba(43,115,255,.35);
  box-shadow:0 16px 30px rgba(2,6,23,.10);
  transform:translateY(-1px);
}
.roleBtn.active{
  border-color:rgba(43,115,255,.55);
  box-shadow:0 18px 40px rgba(43,115,255,.18);
  background:linear-gradient(180deg, #ffffff, rgba(43,115,255,.06));
}
.roleBtn:active{ transform:translateY(0px); }

/* Fields */
.loginFields{ margin:14px 0 10px; }

.loginField{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  padding:14px 14px;
  background:#fff;
  box-shadow:0 10px 26px rgba(2,6,23,.06);
  transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.loginField:focus-within{
  border-color:rgba(43,115,255,.55);
  box-shadow:0 16px 34px rgba(43,115,255,.18);
}
.loginFieldIcon{
  font-size:18px;
  opacity:.75;
  user-select:none;
}
.loginField input{
  border:0;
  outline:0;
  width:100%;
  font-size:16px;
  padding:6px 0;
  background:transparent;
  color:#0b1220;
}
.loginField input::placeholder{
  color:rgba(11,18,32,.40);
  font-weight:800;
}

.eyeBtn{
  border:0;
  background:transparent;
  font-size:18px;
  opacity:.75;
  padding:6px 8px;
  border-radius:10px;
  transition:background .12s ease, opacity .12s ease, transform .12s ease;
}
.eyeBtn:hover{ background:rgba(15,23,42,.05); opacity:.95; }
.eyeBtn:active{ transform:translateY(1px); }

/* remember */
.rememberRow{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-start;
  margin:12px 4px 16px;
  color:rgba(11,18,32,.55);
  font-weight:900;
}
.rememberRow input{ width:16px; height:16px; }

/* error (user login) */
#loginError{
  margin:10px 6px 0;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.35);
  background:rgba(239,68,68,.06);
  color:var(--danger2);
  font-weight:1000;
  text-align:left;
}

/* Buttons */
.loginBtn{
  width:100%;
  border:0;
  border-radius:18px;
  padding:16px 14px;
  background:linear-gradient(180deg, #3b82f6, #2563eb);
  color:#fff;
  font-weight:1000;
  font-size:18px;
  box-shadow:0 16px 34px rgba(59,130,246,.30);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.loginBtn:hover{
  filter:brightness(1.02);
  box-shadow:0 20px 44px rgba(59,130,246,.34);
  transform:translateY(-1px);
}
.loginBtn:active{ transform:translateY(1px); }

.ghostLoginBtn{
  width:100%;
  margin-top:10px;
  border:1px solid rgba(59,130,246,.30);
  border-radius:18px;
  padding:16px 14px;
  background:#fff;
  color:#1d4ed8;
  font-weight:1000;
  font-size:18px;
  box-shadow:0 10px 26px rgba(2,6,23,.06);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ghostLoginBtn:hover{
  border-color:rgba(59,130,246,.45);
  box-shadow:0 16px 34px rgba(2,6,23,.10);
  transform:translateY(-1px);
}
.ghostLoginBtn:active{ transform:translateY(1px); }

/* footer */
.loginVersion{
  margin-top:18px;
  color:rgba(11,18,32,.35);
  font-weight:1000;
}

/* Admin Modal */
.modalOverlay{
  position:fixed; inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(2,6,23,.55);
  z-index:1000;
}
.modalOverlay.open{ display:flex; }

.modalCard{
  width:min(420px, 100%);
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.15);
}
.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.modalTitle{
  font-weight:1000;
  font-size:20px;
  color:#0b1220;
}
.modalX{
  border:0;
  background:transparent;
  font-size:18px;
  font-weight:1000;
  opacity:.75;
  padding:6px 10px;
  border-radius:12px;
  transition:background .12s ease, opacity .12s ease;
}
.modalX:hover{ background:rgba(15,23,42,.06); opacity:1; }

.modalActions{
  margin-top:12px;
  display:grid;
  gap:10px;
}

.modalError{
  margin:10px 6px 0;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.35);
  background:rgba(239,68,68,.06);
  color:var(--danger2);
  font-weight:1000;
  text-align:left;
}

/* ===================== ADMIN PANEL THEME ===================== */
/* (Admin panel sayfası body stillerini bozmasın diye özel class'lar) */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(234,244,255,.92), rgba(234,244,255,.75));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(15,23,42,.10);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:200px;
}
.brandLogo{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:contain;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 10px 22px rgba(2,6,23,.08);
  padding:6px;
}
.brandTitle{
  font-weight:1000;
  letter-spacing:.3px;
  font-size:18px;
}
.brandSub{
  color:rgba(11,18,32,.55);
  font-weight:900;
  font-size:12px;
  margin-top:2px;
}

.pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  font-weight:900;
  color:#0b1220;
  box-shadow:0 10px 26px rgba(2,6,23,.06);
}

.layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:16px;
  padding:16px;
  max-width:1200px;
  margin:0 auto;
}

.sidebar{
  position:sticky;
  top:78px;
  align-self:start;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(2,6,23,.10);
  padding:12px;
}

.navItem{
  width:100%;
  text-align:left;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(234,244,255,.55);
  border-radius:14px;
  padding:12px 12px;
  font-weight:900;
  color:#0b1220;
  margin-bottom:10px;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.navItem:hover{
  border-color:rgba(43,115,255,.35);
  box-shadow:0 16px 30px rgba(2,6,23,.10);
  transform:translateY(-1px);
}
.navItem.active{
  background:linear-gradient(180deg, #ffffff, rgba(43,115,255,.08));
  border-color:rgba(43,115,255,.55);
  box-shadow:0 18px 40px rgba(43,115,255,.16);
}

.sidebarNote{
  margin-top:12px;
  color:rgba(11,18,32,.45);
  font-weight:900;
  font-size:12px;
  padding:10px 10px 2px;
}

.main{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.panel{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(2,6,23,.10);
  overflow:hidden;
}

.panelHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  background:rgba(234,244,255,.55);
  border-bottom:1px solid rgba(15,23,42,.10);
}
.panelHead h1{
  margin:0;
  font-size:18px;
  font-weight:1000;
}
.panelHead p{
  margin:6px 0 0;
  color:rgba(11,18,32,.55);
  font-weight:900;
  font-size:13px;
}

.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
}

.input, .select{
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  padding:12px 12px;
  background:#fff;
  box-shadow:0 10px 26px rgba(2,6,23,.05);
  font-weight:900;
  color:#0b1220;
}
.input{
  min-width:220px;
  flex:1;
}
.select{
  min-width:160px;
}

.tableWrap{ padding:0; }
.table{
  width:100%;
  border-collapse:collapse;
}
.table thead th{
  text-align:left;
  padding:12px 16px;
  font-size:12px;
  letter-spacing:.3px;
  color:rgba(11,18,32,.60);
  font-weight:1000;
  border-bottom:1px solid rgba(15,23,42,.10);
  background:#fff;
}
.table tbody td{
  padding:12px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
  font-weight:900;
  color:#0b1220;
}
.table tbody tr:hover{
  background:rgba(234,244,255,.55);
}

.rowActions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.btn{
  border:1px solid rgba(15,23,42,.12);
  background:linear-gradient(180deg, #3b82f6, #2563eb);
  color:#fff;
  font-weight:1000;
  padding:10px 12px;
  border-radius:14px;
  box-shadow:0 12px 26px rgba(59,130,246,.22);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover{ filter:brightness(1.02); transform:translateY(-1px); box-shadow:0 16px 34px rgba(59,130,246,.26); }
.btn:active{ transform:translateY(1px); }

.btn.ghost{
  background:#fff;
  color:#0b1220;
  border-color:rgba(15,23,42,.12);
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
.btn.ghost:hover{
  border-color:rgba(43,115,255,.35);
  box-shadow:0 14px 30px rgba(2,6,23,.10);
}

.btn.danger{
  background:linear-gradient(180deg, #ef4444, #dc2626);
  border-color:rgba(239,68,68,.35);
  box-shadow:0 12px 26px rgba(239,68,68,.20);
}
.btn.danger:hover{ box-shadow:0 16px 34px rgba(239,68,68,.24); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(234,244,255,.55);
  font-size:12px;
  font-weight:1000;
  color:#0b1220;
}
.dot{
  width:10px; height:10px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.15);
}
.dot.passive{
  background:#f59e0b;
  box-shadow:0 0 0 3px rgba(245,158,11,.16);
}

.hidden{ display:none !important; }

/* Admin modal (reuse) */
.modalOverlay.open{
  display:flex;
}
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:6px;
}
.field span{
  display:block;
  font-weight:1000;
  color:rgba(11,18,32,.60);
  font-size:12px;
  margin:0 0 6px 2px;
}

/* Empty states */
.empty{
  padding:26px 16px 30px;
  text-align:center;
}
.emptyIcon{
  font-size:34px;
  margin-bottom:8px;
}
.emptyTitle{
  font-weight:1000;
  font-size:16px;
}
.emptySub{
  margin-top:6px;
  color:rgba(11,18,32,.55);
  font-weight:900;
  font-size:13px;
}

/* Responsive */
@media (max-width: 920px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position:relative; top:auto; }
  .rowActions{ justify-content:flex-start; }
}
@media (max-width: 520px){
  .loginTitle{ font-size:32px; }
  .roleBtn{ width:78px; height:78px; }
  .grid{ grid-template-columns: 1fr; }
  .topbar{ flex-direction:column; align-items:flex-start; }
  .topActions{ width:100%; justify-content:flex-end; }
}
