*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.nav-tab {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-tab:hover { background: #334155; color: #e2e8f0; }
.nav-tab.aktif { background: #3b82f6; color: white; }
.topbar-sag { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.back-btn { color: #94a3b8; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.back-btn:hover { color: #e2e8f0; }
.btn-yeni {
  background: #3b82f6;
  color: white;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn-yeni:hover { background: #2563eb; }

/* ── SAYFA ── */
.sayfa {
  max-width: 1300px;
  margin: 28px auto;
  padding: 0 24px 48px;
}
.sayfa-dar { max-width: 740px; }

/* ── LİSTE ÜST ── */
.liste-ust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-form { position: relative; flex: 1; min-width: 200px; max-width: 440px; }
.search-form input {
  width: 100%;
  padding: 8px 34px 8px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
}
.search-form input:focus { border-color: #3b82f6; }
.search-form input::placeholder { color: #475569; }
.clear-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #64748b; text-decoration: none; font-size: 0.85rem; }
.arama-bilgi { font-size: 0.85rem; color: #64748b; margin-left: auto; white-space: nowrap; }
.arama-bilgi strong { color: #cbd5e1; }

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.kart {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.kart:hover { border-color: #3b82f6; transform: translateY(-2px); }
.kart-foto { width: 100%; height: 165px; overflow: hidden; background: #0f172a; }
.kart-foto img { width: 100%; height: 100%; object-fit: cover; }
.kart-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kart-makine { font-size: 0.73rem; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.06em; }
.kart-baslik { font-size: 0.96rem; font-weight: 600; color: #f1f5f9; line-height: 1.35; }
.kart-ozet { font-size: 0.82rem; color: #64748b; line-height: 1.5; flex: 1; }
.kart-tarih { font-size: 0.75rem; color: #475569; margin-top: 4px; }
.kart-genel .kart-baslik { color: #a5f3fc; }
.bos { text-align: center; padding: 80px 0; color: #475569; }

/* ── FORM ── */
.form-kart {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 32px;
}
.form-kart h2 { font-size: 1.2rem; color: #f1f5f9; margin-bottom: 24px; }
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: 0.78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 7px; }
.fg input[type="text"], .fg select, .fg textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: #3b82f6; }
.fg input::placeholder, .fg textarea::placeholder { color: #475569; }
.fg textarea { resize: vertical; }
.fg select { cursor: pointer; }
.fg select option { background: #1e293b; }
.readonly-input { opacity: 0.55; cursor: default; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid #334155; }
.btn-iptal { padding: 10px 20px; border-radius: 8px; border: 1px solid #334155; color: #94a3b8; text-decoration: none; font-size: 0.9rem; }
.btn-iptal:hover { background: #334155; color: #e2e8f0; }
.btn-kaydet { padding: 10px 24px; border-radius: 8px; background: #3b82f6; color: white; border: none; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.btn-kaydet:hover { background: #2563eb; }

/* ── FOTO UPLOAD ── */
.foto-yukle-alan { display: flex; align-items: center; gap: 12px; }
#foto-input { display: none; }
.foto-yukle-btn { background: #1e3a5f; border: 1px solid #3b82f6; color: #60a5fa; border-radius: 8px; padding: 9px 16px; font-size: 0.88rem; cursor: pointer; white-space: nowrap; }
.foto-yukle-btn:hover { background: #2563eb; color: white; }
.foto-ipucu { font-size: 0.8rem; color: #475569; }
.onizleme-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.onizleme-grid img { width: 90px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #334155; }
.mevcut-fotolar { display: flex; flex-wrap: wrap; gap: 10px; }
.mevcut-foto { position: relative; }
.mevcut-foto img { width: 100px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #334155; display: block; }
.foto-sil-label { display: block; text-align: center; font-size: 0.75rem; color: #f87171; margin-top: 4px; cursor: pointer; }

/* ── DETAY ── */
.detay-kart { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 32px; }
.detay-ust { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.detay-makine { display: block; font-size: 0.75rem; font-weight: 700; color: #3b82f6; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.detay-tarih { font-size: 0.8rem; color: #475569; }
.detay-butonlar { display: flex; gap: 8px; flex-shrink: 0; }
.btn-duzenle { padding: 7px 14px; border-radius: 7px; border: 1px solid #334155; color: #94a3b8; text-decoration: none; font-size: 0.85rem; }
.btn-duzenle:hover { background: #334155; color: #e2e8f0; }
.btn-sil { padding: 7px 14px; border-radius: 7px; background: none; border: 1px solid #7f1d1d; color: #f87171; font-size: 0.85rem; cursor: pointer; }
.btn-sil:hover { background: #7f1d1d; color: white; }
.detay-baslik { font-size: 1.45rem; font-weight: 700; color: #f1f5f9; margin-bottom: 20px; line-height: 1.3; }
.detay-icerik { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.detay-icerik pre { white-space: pre-wrap; font-family: inherit; font-size: 0.95rem; line-height: 1.75; color: #cbd5e1; }
.detay-fotolar { display: flex; flex-wrap: wrap; gap: 10px; }
.detay-foto-thumb { width: 150px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #334155; cursor: zoom-in; transition: opacity 0.15s; }
.detay-foto-thumb:hover { opacity: 0.85; }
#lb { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 999; align-items: center; justify-content: center; cursor: zoom-out; }
#lb img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* ── İŞ TAKİP ── */
.durum-filtre { display: flex; gap: 6px; flex-wrap: wrap; }
.durum-btn { padding: 5px 12px; border-radius: 20px; font-size: 0.82rem; text-decoration: none; background: #1e293b; border: 1px solid #334155; color: #94a3b8; display: flex; align-items: center; gap: 5px; }
.durum-btn:hover { border-color: #64748b; color: #e2e8f0; }
.durum-btn.aktif { background: #334155; color: #f1f5f9; border-color: #64748b; }
.sayi { background: #334155; border-radius: 10px; padding: 1px 6px; font-size: 0.75rem; }

.is-liste { display: flex; flex-direction: column; gap: 12px; }
.is-kart {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 18px 20px;
  border-left: 4px solid #334155;
}
.is-kart-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.is-sol { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.is-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }

.durum-kart-Beklemede  { border-left-color: #f59e0b; }
.durum-kart-DevamEdiyor { border-left-color: #3b82f6; }
.durum-kart-Tamamlandı { border-left-color: #22c55e; opacity: 0.75; }
.durum-kart-İptal      { border-left-color: #6b7280; opacity: 0.6; }

.is-durum-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; }
.durum-badge-Beklemede   { background: #451a03; color: #fbbf24; }
.durum-badge-DevamEdiyor { background: #1e3a5f; color: #60a5fa; }
.durum-badge-Tamamlandı  { background: #14532d; color: #4ade80; }
.durum-badge-İptal       { background: #1f2937; color: #9ca3af; }

.is-baslik { font-size: 1rem; font-weight: 600; color: #f1f5f9; }
.is-aciklama { font-size: 0.83rem; color: #64748b; line-height: 1.5; }

.is-tarihler { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tarih-satir { display: flex; gap: 8px; align-items: center; }
.tarih-etiket { font-size: 0.72rem; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.tarih-deger { font-size: 0.82rem; color: #94a3b8; }
.gecikme-uyari { color: #f87171; font-size: 0.75rem; font-weight: 700; margin-left: 4px; }
.bugun-uyari   { color: #fb923c; font-size: 0.75rem; font-weight: 700; margin-left: 4px; }
.kalan-gun     { color: #4ade80; font-size: 0.75rem; margin-left: 4px; }

.gecen-gun { text-align: center; background: #0f172a; border-radius: 8px; padding: 8px 14px; border: 1px solid #334155; }
.gun-sayi { display: block; font-size: 1.6rem; font-weight: 700; color: #f1f5f9; line-height: 1; }
.gun-etiket { font-size: 0.72rem; color: #475569; }

.is-actions { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid #1e293b; }
