/* 菜单管理页面操作按钮样式 */
.menu-op-btn {
  display: inline-block;
  padding: 4px 14px;
  margin: 0 2px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #6366f1;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  vertical-align: middle;
}
.menu-op-btn:hover {
  background: #6366f1;
  color: #fff;
}
.menu-op-del {
  color: #ef4444;
  margin-left: 0;
}
.menu-op-del:hover {
  background: #ef4444;
  color: #fff;
}
/* 菜单预览页面样式 */
.menu-preview-bg {
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%);
  padding: 0;
  margin: 0;
}
.menu-preview-container {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 30px;
  padding: 18px 0 32px 0;
}
.menu-preview-cat {
  margin-bottom: 32px;
}
.menu-preview-cat-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 10px;
  border-left: 4px solid #6366f1;
  padding-left: 10px;
  background: #f1f5f9;
  border-radius: 6px;
}
.menu-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-preview-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #6366f133;
  padding: 14px 16px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-preview-item-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: #222;
}
.menu-preview-item-desc {
  font-size: 0.98rem;
  color: #6366f1;
  margin-bottom: 2px;
}
.menu-preview-item-price {
  font-size: 1.08rem;
  color: #0ea5e9;
  font-weight: 700;
  align-self: flex-end;
}
@media (max-width: 600px) {
  .menu-preview-container { max-width: 100vw; padding: 8px 0 24px 0; }
  .menu-preview-cat-title { font-size: 1.08rem; }
  .menu-preview-item { padding: 10px 8px 8px 8px; }
  .menu-preview-item-name { font-size: 1rem; }
  .menu-preview-item-price { font-size: 1rem; }
}
/* 拖拽排序视觉优化 */
.sortable-chosen {
  background: #e0e7ff !important;
  box-shadow: 0 0 8px #6366f1aa;
}
.sortable-ghost {
  opacity: 0.5;
  background: #a5b4fc !important;
}
.sortable-drag {
  cursor: grabbing !important;
}
.category-node, .menu-table td {
  cursor: grab;
}
/* MenuCategory 管理页面样式 */
.category-page-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.category-container { max-width: 700px; margin: 40px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.category-title { font-size: 2rem; font-weight: 800; color: #6366f1; letter-spacing: 1px; margin: 0; }
.category-add-btn { background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-size: 1rem; font-weight: 600; box-shadow: 0 2px 8px #6366f133; transition: background .2s; text-decoration: none; }
.category-add-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
.category-tree-list, .category-tree-list ul { list-style: none; padding-left: 1.2em; }
.category-tree-list > li { margin-bottom: 8px; }
.category-node { font-weight: 600; color: #4f46e5; margin-right: 8px; }
.category-op { margin-left: 8px; color: #0ea5e9; text-decoration: none; font-size: 0.98rem; }
.category-op:hover { text-decoration: underline; color: #6366f1; }
.category-create-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.category-create-container { max-width: 420px; margin: 48px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.category-create-title { font-size: 2rem; font-weight: 800; color: #6366f1; letter-spacing: 1px; margin-bottom: 24px; text-align:center; }
.category-create-form label { display:block; font-weight:600; color:#6366f1; margin-bottom:6px; }
.category-create-form input, .category-create-form select { width:100%; padding:12px 14px; border-radius:8px; border:1.5px solid #e0e7ff; margin-bottom:18px; font-size:1.08rem; background:#f8fafc; transition:border .2s; }
.category-create-form input:focus, .category-create-form select:focus { outline:none; border-color:#6366f1; background:#fff; }
.category-create-btn { width:100%; background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 12px 0; font-size: 1.1rem; font-weight: 700; box-shadow: 0 2px 8px #6366f133; transition: background .2s; margin-top:8px; }
.category-create-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
@media screen and (max-width: 600px) {
  .category-container, .category-create-container { padding: 18px 2vw; margin: 18px 2vw; }
  .category-title, .category-create-title { font-size: 1.2rem; }
}
/* Menu/Create.cshtml styles migrated */
.menu-create-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.menu-create-container { max-width: 520px; margin: 48px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.menu-create-title { font-size: 2rem; font-weight: 800; color: #6366f1; letter-spacing: 1px; margin-bottom: 24px; text-align:center; }
.menu-create-form label { display:block; font-weight:600; color:#6366f1; margin-bottom:6px; }
.menu-create-form input, .menu-create-form select { width:100%; padding:12px 14px; border-radius:8px; border:1.5px solid #e0e7ff; margin-bottom:18px; font-size:1.08rem; background:#f8fafc; transition:border .2s; }
.menu-create-form input:focus, .menu-create-form select:focus { outline:none; border-color:#6366f1; background:#fff; }
.menu-create-btn { width:100%; background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 12px 0; font-size: 1.1rem; font-weight: 700; box-shadow: 0 2px 8px #6366f133; transition: background .2s; margin-top:8px; }
.menu-create-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }

/* 菜品选项配置样式 */
.options-section { margin-top: 8px; margin-bottom: 18px; }
.options-help { font-size: 0.9rem; color: #64748b; margin-bottom: 12px; }
.quick-add-options { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.option-template-select { flex: 1; padding: 10px 14px !important; margin-bottom: 0 !important; font-size: 1rem !important; }
.option-groups-container { margin-bottom: 12px; }
.option-group { background: #f8fafc; border: 1px solid #e0e7ff; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.option-group-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.option-group-title { font-weight: 600; color: #6366f1; font-size: 1.05rem; flex: 1; }
.required-checkbox { display: flex !important; align-items: center; gap: 4px; font-size: 0.9rem; color: #64748b; margin-bottom: 0 !important; white-space: nowrap; }
.required-checkbox input { width: auto !important; margin-bottom: 0 !important; }
.remove-group-btn { background: #fee2e2; color: #ef4444; border: none; border-radius: 6px; padding: 6px 12px; font-size: 0.9rem; cursor: pointer; transition: background .2s; }
.remove-group-btn:hover { background: #ef4444; color: #fff; }
.option-values-display { font-size: 0.9rem; color: #64748b; padding: 8px 0 4px 0; }
.add-option-group-btn { background: linear-gradient(90deg, #6366f1, #0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.add-option-group-btn:hover { background: linear-gradient(90deg, #0ea5e9, #6366f1); }

@media screen and (max-width: 600px) {
  .menu-create-container { padding: 18px 2vw; margin: 18px 2vw; }
  .menu-create-title { font-size: 1.2rem; }
  .quick-add-options { flex-direction: column; }
  .option-template-select { width: 100% !important; }
  .add-option-group-btn { width: 100%; }
}
/* Orders/Create.cshtml styles migrated */
.order-create-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.order-create-container { max-width: 520px; margin: 48px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.order-create-title { font-size: 2rem; font-weight: 800; color: #0ea5e9; letter-spacing: 1px; margin-bottom: 24px; text-align:center; }
.order-create-form label { display:block; font-weight:600; color:#6366f1; margin-bottom:6px; }
.order-create-form input[type="text"],
.order-create-form input[type="number"] { width:100%; padding:12px 14px; border-radius:8px; border:1.5px solid #e0e7ff; margin-bottom:18px; font-size:1.08rem; background:#f8fafc; transition:border .2s; }
.order-create-form input:focus { outline:none; border-color:#6366f1; background:#fff; }
.order-create-form .menu-list { margin-bottom:18px; }
.order-create-form .menu-item-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; background:#f8fafc; border-radius:8px; padding:8px 10px; }
.order-create-form .menu-item-row label { margin:0; color:#222; font-weight:500; }
.order-create-form .menu-item-row input[type="checkbox"] { accent-color:#6366f1; width:18px; height:18px; }
.order-create-form .menu-item-row input[type="number"] { width:60px; margin-bottom:0; }
.order-create-btn { width:100%; background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 12px 0; font-size: 1.1rem; font-weight: 700; box-shadow: 0 2px 8px #6366f133; transition: background .2s; margin-top:8px; }
.order-create-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
@media screen and (max-width: 600px) {
  .order-create-container { padding: 18px 2vw; margin: 18px 2vw; }
  .order-create-title { font-size: 1.2rem; }
  .order-create-form .menu-item-row { flex-direction:column; align-items:flex-start; gap:2px; }
}
/* Users/Create.cshtml styles migrated */
.user-create-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.user-create-container { max-width: 420px; margin: 48px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.user-create-title { font-size: 2rem; font-weight: 800; color: #4f46e5; letter-spacing: 1px; margin-bottom: 24px; text-align:center; }
.user-create-form label { display:block; font-weight:600; color:#6366f1; margin-bottom:6px; }
.user-create-form input { width:100%; padding:12px 14px; border-radius:8px; border:1.5px solid #e0e7ff; margin-bottom:18px; font-size:1.08rem; background:#f8fafc; transition:border .2s; }
.user-create-form input:focus { outline:none; border-color:#6366f1; background:#fff; }
.user-create-btn { width:100%; background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 12px 0; font-size: 1.1rem; font-weight: 700; box-shadow: 0 2px 8px #6366f133; transition: background .2s; margin-top:8px; }
.user-create-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
/* styled select for forms */
.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #e0e7ff;
  background: linear-gradient(180deg,#fff,#f8fafc);
  background-image: linear-gradient(180deg,#fff,#f8fafc), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23636' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center, right 12px center;
  font-size: 1.02rem;
  color: #111827;
  transition: border-color .15s, box-shadow .15s;
}
.form-select:focus{
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 6px 18px rgba(99,102,241,0.12);
}
.form-select option{ background: #fff; color:#111827; }
.form-select.small { padding: 8px 36px 8px 12px; font-size:0.98rem; max-width:260px; }

.help-text { font-size:0.92rem; color:#6b7280; margin-top:6px; margin-bottom:12px; }
.form-row { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.form-row.inline { flex-direction:row; align-items:center; gap:12px; }
.form-row.inline label { min-width:90px; }
@media screen and (max-width: 600px) {
  .user-create-container { padding: 18px 2vw; margin: 18px 2vw; }
  .user-create-title { font-size: 1.2rem; }
}
/* Menu/Index.cshtml styles migrated */
.menu-page-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.menu-container { max-width: 900px; margin: 40px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.menu-title { font-size: 2.1rem; font-weight: 800; color: #6366f1; letter-spacing: 1px; margin: 0; }
.menu-add-btn { background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-size: 1rem; font-weight: 600; box-shadow: 0 2px 8px #6366f133; transition: background .2s; text-decoration: none; }
.menu-add-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
.menu-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 18px; }
.menu-table th, .menu-table td { padding: 16px 14px; text-align: left; }
.menu-table th { background: #f1f5f9; color: #6366f1; font-size: 1.05rem; font-weight: 700; border-radius: 8px 8px 0 0; }
.menu-table tr { background: #f8fafc; border-radius: 12px; box-shadow: 0 2px 8px #6366f133; transition: box-shadow .2s; }
.menu-table tr:hover { box-shadow: 0 4px 16px #6366f144; }
.menu-price { font-weight:600; color:#0ea5e9; }
@media screen and (max-width: 700px) {
  .menu-container { padding: 16px 4vw; }
  .menu-title { font-size: 1.3rem; }
  .menu-table th, .menu-table td { padding: 10px 6px; font-size: 0.98rem; }
}
/* Orders/Index.cshtml styles migrated */
.order-page-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.order-container { max-width: 950px; margin: 40px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.order-title { font-size: 2.1rem; font-weight: 800; color: #0ea5e9; letter-spacing: 1px; margin: 0; }
.order-add-btn { background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-size: 1rem; font-weight: 600; box-shadow: 0 2px 8px #6366f133; transition: background .2s; text-decoration: none; }
.order-add-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
.order-detail-btn { background: #6366f1; color: #fff; border: none; border-radius: 6px; padding: 6px 16px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all .2s; display: inline-block; }
.order-detail-btn:hover { background: #0ea5e9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.order-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 18px; }
.order-table th, .order-table td { padding: 16px 14px; text-align: left; }
.order-table th { background: #f1f5f9; color: #0ea5e9; font-size: 1.05rem; font-weight: 700; border-radius: 8px 8px 0 0; }
.order-table tr { background: #f8fafc; border-radius: 12px; box-shadow: 0 2px 8px #6366f133; transition: box-shadow .2s; }
.order-table tr:hover { box-shadow: 0 4px 16px #6366f144; }
.order-status-badge { display: inline-block; padding: 4px 16px; border-radius: 16px; font-size: 0.98rem; font-weight: 600; color: #fff; background: #6366f1; box-shadow: 0 1px 4px #6366f133; }
.order-status-badge[data-status="已完成"], .order-status-badge[data-status="完成"] { background: linear-gradient(90deg,#22c55e,#0ea5e9); }
.order-status-badge[data-status="待处理"] { background: linear-gradient(90deg,#f59e42,#fbbf24); color:#fff; }
.order-status-badge[data-status="已取消"] { background: linear-gradient(90deg,#ef4444,#f87171); }
@media screen and (max-width: 700px) {
  .order-container { padding: 16px 4vw; }
  .order-title { font-size: 1.3rem; }
  .order-table th, .order-table td { padding: 10px 6px; font-size: 0.98rem; }
}
body{ font-family: Arial, sans-serif; margin:0; padding:0; }
header{ background:#f8f8f8; padding:10px 20px; display:flex; justify-content:space-between; align-items:center }
header nav a{ margin-right:10px }
main{ padding:20px }
table{ width:100%; border-collapse:collapse }
td,th{ border:1px solid #ddd; padding:8px }
footer{ background:#f1f1f1; padding:10px; text-align:center }
.auth{font-size:14px}

/* Home navigation cards */
.home-nav{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:18px; margin-top:18px }
.home-card{ background: linear-gradient(135deg,#0f2027 0%,#203a43 50%,#2c5364 100%); color:#fff; padding:18px; border-radius:12px; box-shadow:0 8px 20px rgba(0,0,0,0.15); transition:transform .18s ease, box-shadow .18s ease; text-decoration:none; }
.home-card:hover{ transform:translateY(-6px) scale(1.02); box-shadow:0 18px 36px rgba(0,0,0,0.28); }
.home-card .emoji{ font-size:36px; display:block; }
.home-card h3{ margin:8px 0 6px; font-size:20px }
.home-card p{ margin:0; opacity:0.9 }
.home-hero{ display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px }
.home-hero h2{ margin:0 }
.home-cta{ color:#fff; background:linear-gradient(90deg,#ff8a00,#e52e71); padding:8px 14px; border-radius:8px; text-decoration:none }

/* Login form styles */
.auth-card-container{ display:flex; justify-content:center; align-items:center; min-height:60vh; padding:24px }
.auth-card{ width:380px; background: linear-gradient(135deg,#0f3460 0%,#1e90ff 100%); color:#fff; padding:26px; border-radius:14px; box-shadow:0 14px 40px rgba(16,24,40,0.35); }
.auth-card h2{ margin:0 0 6px; font-size:24px }
.auth-card p{ margin:0 0 14px; opacity:0.95 }
.form-group{ margin-bottom:12px }
.form-group label{ display:block; font-size:13px; margin-bottom:6px; opacity:0.95 }
.input{ width:100%; padding:10px 12px; border-radius:10px; border:none; outline:none; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.03); background:rgba(255,255,255,0.06); color:#fff }
.input::placeholder{ color:rgba(255,255,255,0.7) }
.btn-primary{ width:100%; padding:10px; border-radius:10px; background:linear-gradient(90deg,#ff8a00,#e52e71); border:none; color:#fff; font-weight:700; cursor:pointer }
.error{ margin-top:10px; color:#ffd6d6; background: rgba(255,255,255,0.04); padding:8px; border-radius:8px }
.auth-footer{ margin-top:12px; text-align:center; font-size:13px; opacity:0.95 }
.auth-footer a{ color:rgba(255,255,255,0.95); text-decoration:underline }

/* Site header */
header.site-header{ background: linear-gradient(90deg,#fff,#fbfbff); padding:14px 20px; box-shadow:0 6px 20px rgba(15,23,42,0.06); position:sticky; top:0; z-index:1000 }
.site-header .container{ max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px }
.site-logo a{ font-size:28px; color:#4b0082; text-decoration:none; font-weight:800; letter-spacing:0.4px }
.site-nav{ display:flex; gap:14px; align-items:center }
.site-nav a{ color:#5b2aa6; text-decoration:none; padding:6px 10px; border-radius:8px; font-weight:600 }
.site-nav a:hover{ background:rgba(88,33,147,0.06); color:#2b0f66 }
.site-user{ display:flex; align-items:center; gap:8px }
.site-user .username{ color:#333; margin-right:6px; font-weight:600 }
.site-user form{ display:inline }
.site-user button{ background:transparent; border:1px solid rgba(91,42,166,0.12); padding:6px 8px; border-radius:8px; color:#5b2aa6; cursor:pointer }
.user-icon{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:8px; background:linear-gradient(180deg, rgba(91,42,166,0.08), rgba(91,42,166,0.04)); margin-right:6px }
.user-icon svg{ display:block }
.btn-login{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:8px; background:transparent; color:#5b2aa6; text-decoration:none; font-weight:700 }

/* Polished icon effects */
.user-icon{ box-shadow: 0 6px 18px rgba(75,31,138,0.14); transition:transform .18s ease, box-shadow .18s ease }
.user-icon:hover{ transform:translateY(-3px) scale(1.03); box-shadow:0 18px 40px rgba(75,31,138,0.18) }
.site-user .username{ color:#222 }

/* Robot screen preview styles */
/* Robot preview styles removed (reverted) */
/* Polished Robot Screen Preview (1028×768) */
.robot-wrap { display:flex; justify-content:center; padding:28px 12px 30px 12px; }
.robot-frame { width:1100px; padding:18px; border-radius:18px; background: linear-gradient(180deg,#eef2ff,#f8fbff); box-shadow:0 30px 80px rgba(23,43,77,0.12); border:6px solid #e6e9ff; }
.robot-bezel { width:1028px; height:668px; margin:0 auto; border-radius:12px; background:linear-gradient(180deg,#0b1220,#152033); padding:8px; box-shadow: 0 12px 30px rgba(11,18,32,0.35); display:flex; align-items:center; justify-content:center }
.robot-screen { width:100%; height:100%; border-radius:8px; overflow:hidden; background:linear-gradient(180deg,#fff,#f7fbff); position:relative; box-shadow: inset 0 2px 0 rgba(0,0,0,0.03) }
.robot-topbar{ height:52px; display:flex; align-items:center; justify-content:space-between; padding:0 18px; background:linear-gradient(90deg,rgba(90,40,166,0.06), rgba(155,89,255,0.03)); border-bottom:1px solid rgba(90,40,166,0.03) }
.robot-logo{ font-weight:800; color:#4c1d95; font-size:18px }
.robot-time{ color:#6b5aa6; font-weight:600 }
.robot-content{ padding:22px; height: calc(100% - 52px); overflow:hidden; background: linear-gradient(180deg,#fbfcff,#f3f6ff); box-sizing:border-box }
.robot-inner{ display:flex; gap:18px; height:100%; align-items:stretch; box-sizing:border-box }
.robot-sidebar{ flex:0 0 220px; max-width:220px; background: linear-gradient(180deg,#ffffff,#fbf8ff); border-radius:10px; padding:12px; box-shadow: 0 8px 20px rgba(76,29,145,0.04); border:1px solid rgba(76,29,145,0.03); box-sizing:border-box; overflow:hidden }
.robot-sidebar .cat-list{ display:flex; flex-direction:column; gap:8px; max-height:100%; overflow:auto }
.cat-item{ padding:10px 12px; border-radius:8px; cursor:pointer; color:#5b2aa6; font-weight:700; background:transparent }
.cat-item.active{ background:linear-gradient(90deg,#f0e8ff,#f7f2ff); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.robot-main{ flex:1 1 0%; min-width:0; overflow:auto }
/* Voice chat sidebar inside the robot screen */
.robot-chat{ flex:0 0 320px; max-width:320px; height:100%; background: linear-gradient(180deg,#fff,#fbfbff); border-radius:10px; padding:12px; box-shadow: 0 8px 20px rgba(76,29,145,0.04); border:1px solid rgba(76,29,145,0.03); display:flex; flex-direction:column; box-sizing:border-box; overflow:hidden }
.robot-chat .chat-header{ display:flex; align-items:center; justify-content:space-between; gap:8px; flex-shrink:0; margin-bottom:8px }
.robot-chat .chat-header h4{ margin:0; font-size:16px; color:#4b0082 }
.robot-chat .chat-log{ flex:1 1 auto; overflow:auto; padding:6px; display:flex; flex-direction:column; gap:8px; min-height:0 }
.chat-msg{ max-width:92%; padding:8px 10px; border-radius:10px; font-size:13px; word-break:break-word }
.chat-msg.user{ align-self:flex-end; background:#f1f5f9; color:#111 }
.chat-msg.bot{ align-self:flex-start; background:#4b0082; color:#fff }
.robot-chat .chat-controls{ display:flex; gap:8px; align-items:center; flex-shrink:0; margin-top:auto; padding-top:8px }
.mic-btn{ background:linear-gradient(90deg,#ff8a00,#e52e71); color:#fff; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:700 }
.mic-btn.recording{ box-shadow:0 6px 18px rgba(229,46,113,0.18); transform:scale(1.02) }
.group-header{ display:flex; align-items:center; justify-content:space-between; margin:6px 0 12px; }
.group-header h3{ margin:0; color:#4b0082 }
.group-count{ color:#666 }
.group-tiles{ display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap:14px; align-items:start }

/* Tile card: image on the left, title+price on the right, description spans below */
.tile{
  background: linear-gradient(180deg,#ffffff,#fbfbff);
  border-radius:12px;
  display:grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto 1fr;
  gap:8px 12px;
  align-items:start;
  box-shadow: 0 10px 30px rgba(76,29,145,0.06);
  border:1px solid rgba(76,29,145,0.03);
  position:relative;
  padding:12px;
  min-height:120px;
  overflow:hidden;
}
.tile img{ grid-row:1 / 2; grid-column:1 / 2; width:120px; height:88px; object-fit:cover; border-radius:8px }
.tile .content{ grid-column:2 / 3; grid-row:1 / 2; display:flex; flex-direction:column; gap:6px }
.tile h4{ margin:0; color:#1f1140; font-size:18px; white-space:normal; word-break:break-word; overflow-wrap:anywhere }
.tile .price{ font-weight:800; color:#0ea5a9; font-size:18px; margin-top:6px }
.tile .desc{ grid-column:1 / -1; grid-row:2 / 3; margin:8px 0 0; color:#6b5aa6; font-size:13px; line-height:1.3 }

/* Add button overlay in corner */
.tile .add-btn{ position:absolute; top:12px; right:12px; z-index:10 }

/* Tile entrance animation */
.tile{ opacity:0; transform:translateY(8px); animation:tileEnter .48s cubic-bezier(.2,.9,.2,1) forwards; animation-delay: var(--enter-delay, 0ms); }
@keyframes tileEnter{ from { opacity:0; transform:translateY(8px) scale(.995);} to { opacity:1; transform:translateY(0) scale(1);} }

/* Add to cart button */
.add-btn{ background: linear-gradient(90deg,#ff8a00,#e52e71); color:#fff; padding:8px 12px; border-radius:10px; border:none; cursor:pointer; font-weight:700; box-shadow:0 6px 18px rgba(229,46,113,0.12); transition: transform .12s ease }
.add-btn:active{ transform:scale(.98) }

/* Cart badge and icon */
.cart-btn{ background:transparent; border:0; cursor:pointer; position:relative; display:inline-flex; align-items:center; gap:8px; padding:6px 8px }
.cart-icon{ font-size:18px; display:inline-block }
.cart-badge{ background:#ff4d6d; color:#fff; font-weight:800; font-size:12px; padding:4px 6px; border-radius:999px; min-width:22px; text-align:center }
.cart-btn.bump{ transform:scale(1.08); transition: transform .18s cubic-bezier(.2,.8,.2,1) }

/* Toast */
.toast{ position:fixed; left:50%; transform:translateX(-50%) translateY(10px); bottom:24px; background:rgba(24,24,24,0.9); color:#fff; padding:10px 14px; border-radius:10px; opacity:0; transition:opacity .18s, transform .18s; z-index:1200 }
.toast.visible{ opacity:1; transform:translateX(-50%) translateY(0) }

/* KFC-like categorized layout */
.menu-preview-layout{ display:flex; justify-content:center; }
.menu-content{ width:100%; max-width:1150px }
.menu-sidebar{ display:none }
.category-section{ margin-bottom:28px }
.category-heading{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px }
.category-title{ font-size:1.3rem; font-weight:800; color:#4c1d95 }
.category-items{ display:grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap:14px }

/* smooth scroll for anchors */
html{ scroll-behavior:smooth }

/* 隐藏不必要的滚动条，只在需要时显示 */
html, body {
  overflow-x: hidden;
}
body {
  overflow-y: auto;
}
/* 美化滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* small screens: scale preview to fit */
@media(max-width:1280px){
  .robot-frame{ transform:scale(0.88); transform-origin:top center }
}
.user-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 18px }

.map-canvas { width: 100%; height: 700px; border: 1px solid #ddd; position: relative; background: #f8f9fb; overflow: hidden }
/* table-item: remove outer framed background — icon and params are the visible parts */
.table-item { position: absolute; width: auto; height: auto; background: transparent; border: none; border-radius: 0; display:flex;flex-direction:column;align-items:center;justify-content:flex-start; cursor:grab; transition: transform .12s ease }
.table-item:hover { transform: translateY(-6px) }
.table-item.dragging { opacity: 0.85; cursor:grabbing; transform: none }
.toolbar { margin-bottom:10px }

/* icon wrapper has the visible shadow/background; round vs rect controlled by parent class */
.table-icon-wrap { display:flex; align-items:center; justify-content:center; overflow:visible }
.table-round .table-icon-wrap { border-radius:50%; }
.table-rect .table-icon-wrap { border-radius:12px; }
.table-svg { display:block }

/* shadow and subtle background for the icon itself */
/* .table-icon-wrap > svg { box-shadow: 0 10px 28px rgba(34,50,84,0.08); } */

/* 餐桌文本区域美化样式 */
.table-params { 
  margin-top: 10px; 
  text-align: center; 
  font-size: 0.88rem; 
  min-width: 120px;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(76,29,145,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.1);
}
.table-name { 
  font-weight: 800; 
  color: #4f46e5; 
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.table-params-row { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  justify-content: center;
  margin-top: 4px;
}
.table-capacity { 
  color: #64748b; 
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(100, 116, 139, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}
.status-badge { 
  font-size: 0.75rem; 
  padding: 4px 10px; 
  border-radius: 20px; 
  color: #fff; 
  font-weight: 700;
  text-transform: capitalize;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.status-badge[data-status="Available"], .status-badge[data-status="available"] { background: linear-gradient(90deg,#22c55e,#16a34a) }
.status-badge[data-status="Occupied"], .status-badge[data-status="occupied"] { background: linear-gradient(90deg,#f59e0b,#f97316) }
.status-badge[data-status="Reserved"], .status-badge[data-status="reserved"] { background: linear-gradient(90deg,#06b6d4,#0ea5e9) }
.status-badge[data-status="Cleaning"], .status-badge[data-status="cleaning"] { background: linear-gradient(90deg,#a78bfa,#8b5cf6) }

/* smaller label for very small screens */
@media (max-width: 700px) {
  .map-canvas { height: 520px }
  .table-item { width: 90px; height: 90px }
  .table-label { font-size:0.88rem }
}

/* floor grid to give map feeling */
.map-canvas {
  background-color: #fafbfd;
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
}

/* round vs rect shapes */
.table-round { border-radius: 999px; }
.table-rect { border-radius: 10px; }

/* rotate handle */
.rotate-handle { position:absolute; right:6px; top:6px; width:22px; height:22px; border-radius:6px; border:none; background:rgba(91,42,166,0.08); color:#5b2aa6; cursor:pointer; font-size:12px }
.rotate-handle:hover { background:rgba(91,42,166,0.12) }

/* tooltip-like label improvement */
.table-item .table-label { background: rgba(255,255,255,0.8); padding:4px 8px; border-radius:6px; box-shadow: 0 4px 12px rgba(76,29,145,0.06) }

/* subtle floor shadows */
.table-item::after { content:''; position:absolute; left:10%; right:10%; bottom:-8px; height:8px; background:rgba(15,23,42,0.06); border-radius:50%; filter:blur(6px); z-index:-1 }

/* new icon / info styles */
.table-icon-wrap { display:flex; align-items:center; justify-content:center; pointer-events:none }
.table-svg { display:block }
.table-info { display:flex; flex-direction:column; align-items:center; margin-top:6px; pointer-events:none }

/* ensure status badge sits nicely */
.table-meta .status-badge { margin-left:6px }

/* ensure icon and params separate visually */
.table-item { padding: 6px }
.table-icon-wrap { background: transparent; border-radius: 12px; padding: 0 }
@media(max-width:1100px){
  .robot-frame{ transform:scale(0.72); transform-origin:top center }
}

/* 用户管理页面美化 */
.user-page-bg { background: linear-gradient(120deg, #f8fafc 0%, #e0e7ff 100%); padding: 0; margin: 0; }
.user-container { max-width: 900px; margin: 40px auto 0; background: #fff; border-radius: 18px; box-shadow: 0 8px 32px rgba(34,50,84,0.13); padding: 36px 32px 30px 32px; }
.user-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.user-title { font-size: 2.1rem; font-weight: 800; color: #4f46e5; letter-spacing: 1px; margin: 0; }
.user-add-btn { background: linear-gradient(90deg,#6366f1,#0ea5e9); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-size: 1rem; font-weight: 600; box-shadow: 0 2px 8px #6366f133; transition: background .2s; text-decoration: none; }
.user-add-btn:hover { background: linear-gradient(90deg,#0ea5e9,#6366f1); }
.user-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 18px; }
.user-table th, .user-table td { padding: 16px 14px; text-align: left; }
.user-table th { background: #f1f5f9; color: #6366f1; font-size: 1.05rem; font-weight: 700; border-radius: 8px 8px 0 0; }
.user-table tr { background: #f8fafc; border-radius: 12px; box-shadow: 0 2px 8px #6366f133; transition: box-shadow .2s; }
.user-table tr:hover { box-shadow: 0 4px 16px #6366f144; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#6366f1 60%,#0ea5e9 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; font-weight: 700; margin-right: 12px; box-shadow: 0 2px 8px #6366f133; }
.user-row { display: flex; align-items: center; }
.user-role-badge { display: inline-block; padding: 4px 14px; border-radius: 16px; font-size: 0.98rem; font-weight: 600; color: #fff; background: linear-gradient(90deg,#6366f1,#0ea5e9); box-shadow: 0 1px 4px #6366f133; }
@media screen and (max-width: 700px) {
  .user-container { padding: 16px 4vw; }
  .user-title { font-size: 1.3rem; }
  .user-table th, .user-table td { padding: 10px 6px; font-size: 0.98rem; }
  .user-avatar { width: 30px; height: 30px; font-size: 1rem; }
}

@media(max-width:800px){
	.site-nav{ display:none }
	.home-cta{ display:none }
	header.site-header{ padding:10px 12px }
}

/* Voice match choice buttons in Preview */
.choice-list{ display:flex; flex-direction:column; gap:8px; margin:8px 0 12px 0 }
.choice-btn{ background:#fff; border:1px solid rgba(16,24,40,0.06); padding:8px 10px; border-radius:8px; cursor:pointer; text-align:left; box-shadow:0 6px 18px rgba(16,24,40,0.04) }
.choice-btn:hover{ background:linear-gradient(90deg,#f8fafc,#fff) }

/* Additional migrated utilities and component styles */
.w-180px { width:180px; }
.w-120px { width:120px; }
.w-18p { width:18%; }
.w-40p { width:40%; }
.w-15p { width:15%; }
.mt-18 { margin-top:18px; }
.mb-12 { margin-bottom:12px; }
.mb-18 { margin-bottom:18px; }
.thumb-img { max-width:120px; max-height:120px; border-radius:8px; box-shadow:0 2px 8px #6366f133; }
.user-name { font-weight:600; font-size:1.08rem; color:#222; }
.price-strong { font-weight:600; color:#0ea5e9; }
.section-title { font-weight:600; color:#6366f1; margin-bottom:8px; }
.price-inline { color:#0ea5e9; font-weight:600; }
.label-auto { margin-left:auto; }
.btn-cat { background:linear-gradient(90deg,#0ea5e9,#6366f1); }
.btn-preview { background:linear-gradient(90deg,#22c55e,#0ea5e9); }

/* Support for per-tile enter delay via CSS variable */
.tile { --enter-delay: 0ms; animation-delay: var(--enter-delay); }

/* Map visual overrides: show only the table icon and the params box below it */
.map-canvas .table-item {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  justify-content: flex-start !important;
}
.map-canvas .table-item::after { display: none !important; }
.map-canvas .table-icon-wrap { background: transparent !important; padding: 0 !important; border-radius: 0 !important; box-shadow: 0 10px 28px rgba(76,29,145,0.06); }
.map-canvas .table-params { margin-top:6px; }

/* Migrated from Views/Tables/*.cshtml */
.table-status-badge {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  background: #64748b;
}
.table-status-badge[data-status="Available"] { background: #22c55e; }
.table-status-badge[data-status="Occupied"] { background: #f59e42; }
.table-status-badge[data-status="Reserved"] { background: #0ea5e9; }
.table-status-badge[data-status="Cleaning"] { background: #a855f7; }

/* Form input used in Tables/Create and Tables/Edit */
.form-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 4px;
}

/* Small utility classes migrated from inline styles */
.flex-gap-12 { display:flex; gap:12px; }
.w-12p { width:12%; }
.w-10p { width:10%; }
.w-15p { width:15%; }
.w-25p { width:25%; }
.w-120px { width:120px; }
.fw-600 { font-weight:600; }
.text-center { text-align:center; }
.max-w-500 { max-width:500px; }
.form-column-gap-16 { display:flex; flex-direction:column; gap:16px; }
.btn-row { display:flex; gap:12px; margin-top:8px; }
/* secondary / cancel button: outlined and neutral */
.btn-cancel {
  background: transparent !important;
  color: #374151 !important;
  border: 1px solid #e6e9f2 !important;
  box-shadow: none !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-weight: 700;
}
.user-create-btn.btn-cancel { background: transparent !important; color: #374151 !important; box-shadow: none !important; border: 1px solid #d6dbe6 !important; }
.user-create-btn.btn-cancel:hover { background: #f3f4f6; color: #111; }

/* Map-specific overrides to remove outer white frames for table icons */
.map-canvas .table-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.map-canvas .table-item::after { display: none !important; }
.map-canvas .table-icon-wrap {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
/* hide the rotate handle until hover or make it very subtle if needed */
.map-canvas .rotate-handle { opacity: 0.3; transition: opacity .2s; }
.map-canvas .table-item:hover .rotate-handle { opacity: 1; }

.map-canvas .table-params {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 2px;
}
.map-canvas .table-name { font-size: 0.8rem; color: #444; }
.map-canvas .status-badge { padding: 1px 4px; font-size: 0.7rem; }
.map-canvas .table-capacity { font-size: 0.7rem; }

/* Additional width utility classes for tables */
.w-18p { width: 18%; }
.w-17p { width: 17%; }
.w-40p { width: 40%; }

/* Ensure consistent vertical padding for all page-bg containers */
[class$="-page-bg"] {
  padding-top: 20px;
  padding-bottom: 30px;
}

/* 推荐菜品设置样式 */
.recommend-section {
  margin: 12px 0 18px 0;
}
.recommend-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
}
.recommend-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}
.recommend-checkbox span {
  user-select: none;
}
