* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f6f8;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1f2937;
  color: white;
}

.topbar .title { font-weight: 600; font-size: 16px; }

.topbar .user-info { display: flex; align-items: center; gap: 12px; font-size: 14px; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.tab-link {
  padding: 12px 16px;
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.tab-link.active { color: #111827; border-bottom-color: #2563eb; }

.content {
  flex: 1;
  min-height: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: inherit;
}

.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }

#grid { flex: 1; min-height: 0; width: 100%; }

.add-btn {
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  cursor: pointer;
  background: #16a34a;
  color: white;
}

.add-btn:disabled { background: #d1d5db; color: #6b7280; cursor: not-allowed; }

.reserved-label { font-size: 12px; color: #374151; margin-left: 6px; }

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f5f6f8;
}

.login-card {
  background: white;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 340px;
}

.login-card h2 { margin-top: 0; }

.login-card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.error-text { color: #dc2626; font-size: 13px; margin-bottom: 10px; }

table.admin-table { width: 100%; border-collapse: collapse; background: white; }

table.admin-table th, table.admin-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
}

.copy-link { font-size: 12px; color: #2563eb; cursor: pointer; text-decoration: underline; }

form.inline-form { display: flex; gap: 8px; margin-bottom: 16px; }

form.inline-form input {
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
