* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f2f4f7;
  color: #1f2937;
}
header {
  background: #111827;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 { font-size: 18px; margin: 0; }
header a, header button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
main { padding: 24px; max-width: 1100px; margin: 0 auto; }

/* Operatör: makine kutucukları */
.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.machine-tile {
  background: #fff;
  border-radius: 16px;
  padding: 32px 16px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 3px solid transparent;
  transition: transform .1s ease;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-tile:active { transform: scale(0.97); }
.machine-tile.busy { border-color: #dc2626; background: #fef2f2; }
.machine-tile .status {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 8px;
  color: #dc2626;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 18px; }

label { display: block; font-size: 14px; margin: 12px 0 4px; font-weight: 600; }
input[type=text], input[type=number], input[type=password], input[type=time], input[type=date], select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.btn {
  display: inline-block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 16px;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-block { width: 100%; }

.back-link { display: inline-block; margin-bottom: 12px; color: #2563eb; text-decoration: none; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
th { background: #f9fafb; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.tab-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.msg { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.msg.error { background: #fef2f2; color: #b91c1c; }
.msg.success { background: #f0fdf4; color: #15803d; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1; min-width: 160px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #e5e7eb; }
.login-box { max-width: 360px; margin: 80px auto; }
.btn-xs { padding: 4px 10px; font-size: 13px; margin-top: 0; }
