/* Ayvos Envanter - arayüz stilleri (Bootstrap 5 üzerine) */

:root {
  --brand-dark: #0d1b2a;
  --brand-mid: #1b3a57;
  --brand-accent: #f0a202;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f4f6f9;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Üst menü ---------- */
.app-nav {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-mid));
  box-shadow: 0 2px 10px rgba(13, 27, 42, .18);
}
.app-nav .navbar-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 1rem;
}
.app-nav .navbar-brand i { color: var(--brand-accent); font-size: 1.25rem; }
.app-nav .nav-link {
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  padding: .45rem .8rem;
  border-radius: 6px;
}
.app-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.app-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .16); font-weight: 600; }
.app-nav .navbar-toggler { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------- Kartlar ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1rem;
}
.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0;
}
.page-sub { color: var(--muted); font-size: .88rem; margin: .15rem 0 0; }

/* ---------- Sayaç kartları ---------- */
.stat {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 24, 40, .1); color: inherit; }
.stat .value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat.ok { border-left-color: #1a7f37; } .stat.ok .value { color: #1a7f37; }
.stat.demo { border-left-color: #bf8700; } .stat.demo .value { color: #bf8700; }
.stat.sold { border-left-color: #0969da; } .stat.sold .value { color: #0969da; }
.stat.maint { border-left-color: #8250df; } .stat.maint .value { color: #8250df; }
.stat.bad { border-left-color: #cf222e; } .stat.bad .value { color: #cf222e; }

/* ---------- Durum rozetleri ---------- */
.badge-status {
  display: inline-block;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}
.badge-IN_STOCK { background: #1a7f37; }
.badge-ON_DEMO  { background: #bf8700; }
.badge-SOLD     { background: #0969da; }
.badge-FAULTY   { background: #cf222e; }
.badge-MAINTENANCE { background: #8250df; }

/* ---------- Tablolar ---------- */
.table { font-size: .9rem; margin-bottom: 0; }
.table > thead > tr > th {
  background: #fbfcfd;
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table > tbody > tr:hover { background: #f8fafc; }
.table td { vertical-align: middle; }
.serial {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 600;
  color: var(--brand-mid);
  text-decoration: none;
}
.serial:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: .82rem; }

/* ---------- Formlar ---------- */
.form-label { font-size: .82rem; font-weight: 600; color: #344054; margin-bottom: .25rem; }
.form-control, .form-select { font-size: .92rem; }
.form-text { font-size: .78rem; }
.section-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: .4rem;
  margin: 1.4rem 0 .9rem;
}
.req::after { content: " *"; color: #cf222e; }

/* ---------- Giriş ekranı ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid) 70%, #2c5f8a);
  padding: 1rem;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.6rem;
}
.login-logo i { font-size: 2.4rem; color: var(--brand-accent); }
.login-logo h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; margin: .5rem 0 .2rem; color: var(--brand-dark); }
.login-logo p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Zaman çizelgesi ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1rem 1.5rem;
  border-left: 2px solid var(--line);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px; top: .35rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-mid);
}
.timeline .t-time { font-size: .75rem; color: var(--muted); }

/* ---------- Diğer ---------- */
.disk-row td { padding: .35rem .4rem; }
.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.empty i { font-size: 2.2rem; opacity: .4; display: block; margin-bottom: .6rem; }
@media (max-width: 991px) {
  .app-nav .d-flex { margin-top: .6rem; }
}
