:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#9fb0d4;
  --text:#e7eefc;
  --accent:#4f8cff;
  --accent2:#7c5cff;
  --ok:#2ecc71;
  --warn:#f1c40f;
  --bad:#e74c3c;
}

body{
  background: radial-gradient(1200px 800px at 10% 0%, #0f1b38 0%, var(--bg) 40%, #070b14 100%);
  color: var(--text);
  min-height:100vh;
}

a{ color:#b9d0ff; text-decoration:none; }
a:hover{ text-decoration:underline; }

.glass{
  background: rgba(17,26,46,.80);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  border-radius: 18px;
}

.btn-accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 0;
  color: #fff;
}
.btn-accent:hover{ filter:brightness(1.05); }

.badge-status{ font-weight:600; border-radius:999px; padding:.45rem .7rem; }
.badge-glow{
  position: relative;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  animation: badgePulse 1.6s ease-in-out infinite;
}
@keyframes badgePulse{
  0%{ transform: translateY(0); box-shadow: 0 0 0 rgba(79,140,255,0); }
  50%{ transform: translateY(-1px); box-shadow: 0 0 18px rgba(79,140,255,.22); }
  100%{ transform: translateY(0); box-shadow: 0 0 0 rgba(79,140,255,0); }
}
.badge-İşleme\ alındı{ background: rgba(79,140,255,.18); color:#bcd6ff; border:1px solid rgba(79,140,255,.35); }
.badge-Parça\ bekleniyor{ background: rgba(241,196,15,.16); color:#ffeaa7; border:1px solid rgba(241,196,15,.35); }
.badge-Tamir\ ediliyor{ background: rgba(124,92,255,.16); color:#d7d0ff; border:1px solid rgba(124,92,255,.35); }
.badge-Test\ ediliyor{ background: rgba(155,89,182,.16); color:#f0d6ff; border:1px solid rgba(155,89,182,.35); }
.badge-1\ saat\ içinde\ hazır{ background: rgba(46,204,113,.14); color:#c7f8da; border:1px solid rgba(46,204,113,.30); }
.badge-Hazır{ background: rgba(46,204,113,.18); color:#c7f8da; border:1px solid rgba(46,204,113,.35); }
.badge-Teslim\ edildi{ background: rgba(149,165,166,.18); color:#e5ecec; border:1px solid rgba(149,165,166,.35); }
.badge-İptal{ background: rgba(231,76,60,.16); color:#ffd1cb; border:1px solid rgba(231,76,60,.35); }

.small-muted{ color: var(--muted); }

.progress-bar{ background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.progress-bar{
  position: relative;
  overflow:hidden;
}
.progress-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.25s linear infinite;
  opacity: .55;
}
@keyframes shimmer{ to{ transform: translateX(100%);} }

/* Query loading overlay */
.query-loading{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.query-loading.d-none{ display:none !important; }
.query-loading-card{
  width: min(520px, 92vw);
  border-radius: 22px;
  padding: 18px;
  overflow:hidden;
}
.ql-anim{
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  position: relative;
  overflow:hidden;
}
.ql-anim::before{
  content:"";
  position:absolute;
  left:-30%;
  top:0;
  height:100%;
  width: 30%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px;
  animation: qlMove 0.9s ease-in-out infinite;
}
@keyframes qlMove{
  0%{ transform: translateX(0); }
  50%{ transform: translateX(220%); }
  100%{ transform: translateX(360%); }
}

/* Overlay + modal (glassmorphism, dark theme) */
.app-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  z-index: 9998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.app-overlay.d-none{ display:none !important; }
.app-modal{
  width: min(520px, 92vw);
  border-radius: 22px;
  overflow:hidden;
  animation: appPop .22s ease-out;
}
.app-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.app-modal-body{ padding: 14px 14px; }
.app-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding: 0 14px 14px;
}
@keyframes appPop{ from{ transform: translateY(8px) scale(.98); opacity:.2 } to{ transform: translateY(0) scale(1); opacity:1 } }

/* Toast */
.app-toast-wrap{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(520px, 92vw);
  pointer-events: none;
}
.app-toast-wrap.top{ top: 14px; }
.app-toast-wrap.bottom{ bottom: 88px; }
.app-toast{
  pointer-events: auto;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  background: rgba(17,26,46,.86);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  animation: toastIn .22s ease-out;
}
.app-toast.out{ animation: toastOut .22s ease-in forwards; }
.app-toast .icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(79,140,255,.16);
  border: 1px solid rgba(79,140,255,.22);
  flex: 0 0 auto;
}
.app-toast .t{ font-weight: 700; line-height: 1.15; }
.app-toast .m{ color: var(--muted); margin-top: 2px; }
.app-toast .x{
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text);
  opacity: .75;
}
.app-toast .x:hover{ opacity: 1; }
@keyframes toastIn{ from{ transform: translateY(-6px); opacity:.2 } to{ transform: translateY(0); opacity:1 } }
@keyframes toastOut{ from{ transform: translateY(0); opacity:1 } to{ transform: translateY(-6px); opacity:0 } }

/* App-like UI polish */
.navbar{
  backdrop-filter: blur(10px);
  background: rgba(10,16,30,.55) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.app-card{ border-radius: 22px; padding: 18px; }
.app-shadow{ box-shadow: 0 20px 70px rgba(0,0,0,.38); }
.app-pill{
  border-radius: 999px;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.bottom-bar{
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,18,32,.92) 35%, rgba(11,18,32,.98) 100%);
  backdrop-filter: blur(12px);
}
.bottom-bar .container{ display:flex; gap:10px; }
.btn-soft{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
}
.btn-soft:hover{ filter: brightness(1.05); }
.progress-bar{ background: linear-gradient(135deg, var(--accent), var(--accent2)); }
