@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --os-primary: #0f172a;
  --os-accent: #3b82f6;
  --os-accent2: #06b6d4;
  --os-success: #10b981;
  --os-warning: #f59e0b;
  --os-danger: #ef4444;
  --os-purple: #8b5cf6;
  --os-bg: #f8fafc;
  --os-card: #ffffff;
  --os-border: #e2e8f0;
  --os-text: #1e293b;
  --os-muted: #64748b;
  --os-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
  --os-radius: 16px;
  --os-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --os-shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

.oto-servis-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.oto-servis-wrap { font-family: 'Inter', sans-serif; color: var(--os-text); }

/* ========== HERO SECTION ========== */
.os-hero {
  background: var(--os-gradient);
  padding: 70px 20px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.os-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(59,130,246,0.08);
  top: -200px; right: -150px;
  pointer-events: none;
}
.os-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(6,182,212,0.06);
  bottom: -150px; left: -100px;
  pointer-events: none;
}
.os-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.os-hero-badge::before { content: '🔧'; }
.os-hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.os-hero h1 span {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-hero p {
  color: #94a3b8;
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== SEARCH BOX ========== */
.os-search-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 36px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.os-search-label {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.os-search-row {
  display: flex;
  gap: 12px;
}
.os-plate-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 16px 20px;
  border-radius: 14px;
  outline: none;
  transition: all 0.3s;
  width: 100%;
}
.os-plate-input::placeholder { color: rgba(255,255,255,0.3); letter-spacing: 2px; font-weight: 400; }
.os-plate-input:focus {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.1);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.os-search-btn {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.os-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59,130,246,0.4);
}
.os-search-btn svg { width: 18px; height: 18px; }

/* ========== RESULT AREA ========== */
.os-result-area {
  max-width: 900px;
  margin: -60px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

/* Loading */
.os-loading {
  display: none;
  text-align: center;
  padding: 60px;
  background: var(--os-card);
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow-lg);
}
.os-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--os-border);
  border-top-color: var(--os-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.os-loading p { color: var(--os-muted); font-size: 15px; }

/* Error */
.os-error {
  display: none;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--os-radius);
  padding: 24px;
  text-align: center;
  color: var(--os-danger);
  font-weight: 500;
  box-shadow: var(--os-shadow);
}
.os-error .os-err-icon { font-size: 32px; display: block; margin-bottom: 8px; }

/* ========== RESULT CARD ========== */
.os-result-card {
  display: none;
  background: var(--os-card);
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow-lg);
  overflow: hidden;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Vehicle header */
.os-vehicle-header {
  background: var(--os-gradient);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.os-vehicle-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.os-vehicle-info { flex: 1; }
.os-vehicle-plate {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 4px;
}
.os-vehicle-name {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}
.os-vehicle-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.os-vbadge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cbd5e1;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

/* Status badge */
.os-status-badge {
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.os-status-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.status-bekliyor     { background: #fef3c7; color: #d97706; }
.status-incelemede   { background: #e0e7ff; color: #4338ca; }
.status-onayda       { background: #fde8d8; color: #ea580c; }
.status-serviste     { background: #dbeafe; color: #1d4ed8; }
.status-tamamlandi   { background: #d1fae5; color: #065f46; }
.status-teslim_edildi { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }

/* Content grid */
.os-content { padding: 32px; }
.os-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.os-info-box {
  background: var(--os-bg);
  border: 1px solid var(--os-border);
  border-radius: 14px;
  padding: 20px;
}
.os-info-box-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--os-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.os-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--os-border);
}
.os-info-row:last-child { border-bottom: none; }
.os-info-row-key { color: var(--os-muted); font-size: 13px; }
.os-info-row-val { font-weight: 600; font-size: 14px; color: var(--os-text); }

/* Progress stepper */
.os-progress-wrap {
  background: var(--os-bg);
  border: 1px solid var(--os-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.os-progress-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--os-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.os-steps {
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow-x: auto;
  padding-bottom: 4px;
}
.os-steps::before {
  content: '';
  position: absolute;
  top: 18px; left: 20px; right: 20px;
  height: 2px;
  background: var(--os-border);
  z-index: 0;
}
.os-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  position: relative;
  z-index: 1;
}
.os-step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--os-border);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 0 2px var(--os-border);
  transition: all 0.3s;
}
.os-step.active .os-step-dot {
  background: var(--os-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
.os-step.done .os-step-dot {
  background: var(--os-success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}
.os-step-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--os-muted);
  line-height: 1.3;
}
.os-step.active .os-step-label { color: var(--os-accent); }
.os-step.done .os-step-label  { color: var(--os-success); }

/* Work items */
.os-islemler { margin-bottom: 24px; }
.os-islemler-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.os-islem-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.os-islem-table th {
  background: var(--os-bg);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--os-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--os-border);
}
.os-islem-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--os-border);
}
.os-islem-table tr:last-child td { border-bottom: none; }
.os-islem-tur {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.tur-iscilik      { background: #dbeafe; color: #1d4ed8; }
.tur-yedek_parca  { background: #f3e8ff; color: #7e22ce; }
.tur-diger        { background: #f1f5f9; color: #475569; }
.os-total-row {
  background: var(--os-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
}

/* Timeline log */
.os-timeline { position: relative; }
.os-timeline-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.os-tl-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}
.os-tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.os-tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--os-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--os-accent);
  flex-shrink: 0;
  margin-top: 4px;
}
.os-tl-connector {
  width: 2px;
  background: var(--os-border);
  flex: 1;
  min-height: 20px;
  margin-top: 4px;
}
.os-tl-item:last-child .os-tl-connector { display: none; }
.os-tl-content {
  padding-bottom: 20px;
  flex: 1;
}
.os-tl-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.os-tl-status {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.os-tl-time { font-size: 12px; color: var(--os-muted); }
.os-tl-note { font-size: 14px; color: var(--os-muted); margin-top: 4px; }

/* No active job */
.os-no-job {
  text-align: center;
  padding: 40px 20px;
  color: var(--os-muted);
}
.os-no-job .os-big-icon { font-size: 48px; display: block; margin-bottom: 12px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .os-hero { padding: 48px 16px 100px; }
  .os-search-card { padding: 24px 18px; }
  .os-search-row { flex-direction: column; }
  .os-content { padding: 20px; }
  .os-vehicle-header { padding: 20px; }
  .os-steps::before { top: 16px; }
}
