/* ═══════════════════════════════════════════════════════════
   Ekip Form Sistemi — app.css
   ═══════════════════════════════════════════════════════════ */

/* ── Tema değişkenleri ─────────────────────────────────────── */
:root {
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
  --bg:         #080c12;
  --bg-card:    #0f1520;
  --bg-hover:   #1a2230;
  --border:     rgba(255,255,255,.09);
  --border-2:   rgba(255,255,255,.05);
  --text:       #e6edf3;
  --text-2:     #8b949e;
  --text-3:     #495670;
  --accent:     #f0883e;
  --accent-2:   #e07730;
  --accent-bg:  rgba(240,136,62,.1);
  --accent-bdr: rgba(240,136,62,.25);
  --red:        #f85149;
  --sidebar-w:  240px;
}

[data-theme="light"] {
  --bg:         #f4f5f7;
  --bg-card:    #ffffff;
  --bg-hover:   #f0f2f5;
  --border:     rgba(0,0,0,.09);
  --border-2:   rgba(0,0,0,.05);
  --text:       #1c2333;
  --text-2:     #4a5568;
  --text-3:     #8a94a6;
  --accent:     #e07730;
  --accent-2:   #c96920;
  --accent-bg:  rgba(224,119,48,.1);
  --accent-bdr: rgba(224,119,48,.3);
  --red:        #e53e3e;
  --sidebar-w:  240px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-inner {
  padding: 2rem 2rem 4rem;
  max-width: 1200px;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sb-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.2rem 1rem .9rem;
  border-bottom: 1px solid var(--border);
}
.sb-logo {
  font-size: 1.5rem;
  color: var(--accent);
}
.sb-name {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.sb-ver {
  font-size: .62rem;
  color: var(--text-3);
}

.sb-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
}
.sb-date-label { color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.sb-date-val   { color: var(--accent); font-weight: 700; }

.sb-nav { padding: .6rem 0; flex: 1; }
.sb-section {
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-3);
  padding: .8rem 1rem .3rem;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background .15s, color .15s;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}
.sb-item:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.sb-item.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  border-right: 2px solid var(--accent);
}
.sb-icon { font-size: .9rem; width: 18px; text-align: center; flex-shrink: 0; }

/* Sidebar notification */
.sb-notif {
  margin: .5rem .7rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-bdr);
  border-radius: 10px;
  padding: .7rem .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
}
.sb-notif-ico { font-size: 1rem; flex-shrink: 0; }
.sb-notif-title { font-weight: 700; color: var(--accent); font-size: .75rem; }
.sb-notif-sub   { color: var(--text-3); font-size: .67rem; }
.sb-notif-btn {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* Sidebar announcement */
.sb-ann {
  margin: .35rem .7rem;
  border: 1px solid;
  border-radius: 9px;
  padding: .55rem .75rem;
  font-size: .74rem;
}
.sb-ann-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .2rem; }
.sb-ann-ico { font-size: .85rem; }
.sb-ann-title { font-weight: 700; font-size: .73rem; }
.sb-ann-body  { color: var(--text-2); font-size: .7rem; line-height: 1.4; }

/* Sidebar user */
.sb-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.sb-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1.5px solid var(--accent-bdr);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800; font-size: .75rem;
  flex-shrink: 0;
}
.sb-uinfo { flex: 1; min-width: 0; }
.sb-uname {
  font-size: .78rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-urole { font-size: .63rem; color: var(--text-3); }
.sb-logout {
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  font-size: .85rem; padding: .2rem;
  border-radius: 5px;
  transition: color .15s, background .15s;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.sb-logout:hover { color: var(--red); background: rgba(248,81,73,.1); }

/* ── Mobile topbar ─────────────────────────────────────────── */
.mob-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.mob-topbar-title {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 800;
  flex: 1;
  text-align: center;
}
.mob-hbg {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; padding: .3rem;
}
.mob-hbg span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 1px;
}
.mob-topbar-logout {
  color: var(--text-3);
  text-decoration: none;
  padding: .3rem;
}

@media (max-width: 900px) {
  .mob-topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    top: 0;
  }
  .sidebar.mob-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-inner { padding: 1.25rem 1rem 3rem; }
}

/* ── Typography ────────────────────────────────────────────── */
.page-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.page-sub  { font-size: .8rem; color: var(--text-3); margin-top: .2rem; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.muted { color: var(--text-3); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }

.btn-danger {
  background: rgba(248,81,73,.1);
  color: var(--red);
  border-color: rgba(248,81,73,.2);
}
.btn-danger:hover { background: rgba(248,81,73,.2); }

.btn-sm { padding: .35rem .7rem; font-size: .78rem; border-radius: 7px; }

/* ── Forms ─────────────────────────────────────────────────── */
.fc {
  width: 100%;
  padding: .6rem .85rem;
  background: var(--bg-hover);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: .88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.fc:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.fc::placeholder { color: var(--text-3); }
select.fc { appearance: none; cursor: pointer; }
textarea.fc { resize: vertical; min-height: 80px; line-height: 1.55; }

.fg { margin-bottom: .9rem; }
.fg label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: .35rem;
}
.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media(max-width:500px) { .form-row2 { grid-template-columns: 1fr; } }

.req { color: var(--red); }
.opt { color: var(--text-3); font-weight: 400; text-transform: none; font-size: .75rem; letter-spacing: 0; }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

/* ── Table ─────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.tbl thead th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
  white-space: nowrap;
}
.tbl tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-2);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--bg-hover); }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.badge-sm { font-size: .6rem; padding: .1rem .4rem; }
.badge-green  { background: rgba(16,185,129,.1);  color: #10b981; border-color: rgba(16,185,129,.2); }
.badge-red    { background: rgba(248,81,73,.1);   color: #f85149; border-color: rgba(248,81,73,.2); }
.badge-blue   { background: rgba(88,166,255,.1);  color: #58a6ff; border-color: rgba(88,166,255,.2); }
.badge-gray   { background: var(--bg-hover);       color: var(--text-3); border-color: var(--border); }
.badge-orange { background: rgba(240,136,62,.1);  color: #f0883e; border-color: rgba(240,136,62,.2); }
.badge-purple { background: rgba(139,92,246,.1);  color: #8b5cf6; border-color: rgba(139,92,246,.2); }
.badge-pink   { background: rgba(236,72,153,.1);  color: #ec4899; border-color: rgba(236,72,153,.2); }

/* ── Avatar ────────────────────────────────────────────────── */
.rec-avatar {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1.5px solid var(--accent-bdr);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800; font-size: .8rem;
  flex-shrink: 0;
}

/* ── Pills ─────────────────────────────────────────────────── */
.qty-pill {
  display: inline-block;
  background: rgba(16,185,129,.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.2);
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  border-radius: 10px;
  padding: .8rem 1.1rem;
  margin-bottom: 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid;
}
.alert-success { background: rgba(16,185,129,.1);  color: #10b981; border-color: rgba(16,185,129,.2); }
.alert-danger  { background: rgba(248,81,73,.08);  color: #f85149; border-color: rgba(248,81,73,.2); }
.alert-warning { background: rgba(227,179,65,.1);  color: #e3b341; border-color: rgba(227,179,65,.2); }
.alert-info    { background: rgba(88,166,255,.08); color: #58a6ff; border-color: rgba(88,166,255,.2); }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-3);
}
.es-icon { font-size: 2.5rem; opacity: .2; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text-2); margin-bottom: .4rem; }
.empty-state p  { font-size: .85rem; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  animation: modalIn .25s cubic-bezier(.34,1.4,.64,1);
}
@keyframes modalIn {
  from { opacity:0; transform:scale(.92) translateY(16px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem .9rem;
  border-bottom: 1px solid var(--border);
}
.modal-hd h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.modal-hd button {
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  font-size: 1.3rem; line-height: 1;
  padding: .1rem .3rem;
  border-radius: 5px;
  transition: color .15s, background .15s;
}
.modal-hd button:hover { color: var(--red); background: rgba(248,81,73,.1); }
.modal-body { padding: 1.25rem 1.4rem; }
.modal-ft {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  padding: .9rem 1.4rem 1.2rem;
  border-top: 1px solid var(--border);
}

/* ── Toast ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .75rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: toastIn .3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 220px;
  max-width: 340px;
}
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.toast.success { border-color: rgba(16,185,129,.3);  color: #10b981; }
.toast.danger  { border-color: rgba(248,81,73,.3);   color: #f85149; }
.toast.warning { border-color: rgba(227,179,65,.3);  color: #e3b341; }
.toast.info    { border-color: rgba(88,166,255,.3);  color: #58a6ff; }
.toast-icon    { font-size: 1rem; flex-shrink: 0; }
.toast-msg     { flex: 1; color: var(--text); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.pg-btn {
  padding: .4rem .75rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.pg-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Thumb (photo) ─────────────────────────────────────────── */
.thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  cursor: zoom-in;
  border: 1.5px solid var(--border);
  transition: transform .15s;
}
.thumb:hover { transform: scale(1.1); }

/* ── btn-del ───────────────────────────────────────────────── */
.btn-del {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1.1rem;
  width: 28px; height: 28px;
  border-radius: 6px;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-del:hover { color: var(--red); background: rgba(248,81,73,.1); }

/* ── Filter bar ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: .65rem;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* ── Login page ────────────────────────────────────────────── */
.login-body { background: #080c12; min-height: 100vh; }
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media(max-width:860px) { .login-wrap { grid-template-columns: 1fr; } .login-left { display:none; } }

.login-left {
  background: linear-gradient(160deg,#0d1520,#080c12);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 4rem;
  position: relative; overflow: hidden;
}
.login-left::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 80% 60% at 20% 30%,rgba(240,136,62,.12),transparent 60%);
  pointer-events:none;
}
.login-left-content { position: relative; z-index:1; }
.login-brand { font-size: 3rem; color: #f0883e; margin-bottom: 1rem; }
.login-brand-name { font-family: 'Outfit',sans-serif; font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -.04em; margin-bottom: .5rem; }
.login-brand-sub { font-size: .9rem; color: rgba(255,255,255,.4); margin-bottom: 2.5rem; }
.login-features { display: flex; flex-direction: column; gap: .75rem; }
.lf-item { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.lf-icon { color: #f0883e; font-size: .9rem; }

.login-right {
  background: #080c12;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.login-form-card {
  background: #0f1520;
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  width: 100%; max-width: 400px;
}
.login-form-header { margin-bottom: 1.75rem; }
.login-form-header h2 { font-family: 'Outfit',sans-serif; font-size: 1.6rem; font-weight: 900; color: #fff; letter-spacing: -.04em; }
.login-form-header p  { font-size: .82rem; color: rgba(255,255,255,.35); margin-top: .3rem; }
.login-error {
  background: rgba(248,81,73,.08); border: 1px solid rgba(248,81,73,.2);
  color: #f85149; border-radius: 10px; padding: .75rem 1rem;
  font-size: .83rem; margin-bottom: 1.2rem;
}
.login-form .lf-group { margin-bottom: 1rem; }
.login-form .lf-group label {
  display: block; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.35); margin-bottom: .35rem;
}
.login-form input {
  width: 100%; padding: .7rem .9rem;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 10px; color: #fff;
  font-size: .9rem; font-family: 'Plus Jakarta Sans',sans-serif;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus { border-color: #f0883e; box-shadow: 0 0 0 3px rgba(240,136,62,.1); }
.lf-pw-wrap { position: relative; display: flex; }
.lf-pw-wrap input { padding-right: 3rem; }
.lf-pw-wrap button {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.3); cursor: pointer; font-size: .9rem;
}
.login-submit {
  width: 100%; margin-top: 1.25rem;
  padding: .85rem; background: #f0883e; color: #fff;
  border: none; border-radius: 12px;
  font-family: 'Outfit',sans-serif; font-size: 1rem; font-weight: 800;
  cursor: pointer; letter-spacing: -.01em;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 20px rgba(240,136,62,.35);
}
.login-submit:hover { background: #e07730; transform: translateY(-1px); }
.login-hint {
  text-align: center; margin-top: 1rem;
  font-size: .75rem; color: rgba(255,255,255,.25);
}
