:root {
  --nh-blue: #1f2a44;
  --nh-blue-2: #2c3a5b;
  --nh-bg: #f3f6f9;
  --nh-card: #ffffff;
  --nh-green: #58b47b;
  --nh-green-strong: #46a46a;
  --nh-text: #1f2937;
  --nh-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--nh-bg);
  color: var(--nh-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.nh-layout {
  min-height: 100vh;
}

.nh-sider {
  background: linear-gradient(180deg, #23304f 0%, #19243c 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nh-sider .ant-menu {
  background: transparent;
  color: #cbd5f5;
}

.nh-sider .ant-menu-item {
  margin: 8px 12px !important;
  border-radius: 12px;
}

.nh-sider .ant-menu-item-selected {
  background: rgba(88, 180, 123, 0.2) !important;
  color: #d1fae5 !important;
}

.nh-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nh-search {
  max-width: 520px;
  position: relative;
  width: 100%;
  margin-top: 25px;
}

.nh-search .ant-input-search {
  width: 100%;
}

.nh-search-hint {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--nh-muted);
  z-index: 10;
  width: max-content;
}

.nh-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nh-content {
  padding: 24px;
}

.nh-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.nh-subtitle {
  color: var(--nh-muted);
  margin-bottom: 16px;
}

.nh-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.nh-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nh-card {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.nh-upload-card {
  height: 100%;
}

.nh-upload-label {
  font-weight: 600;
  margin-bottom: 4px;
}

.nh-upload-meta {
  color: var(--nh-muted);
  font-size: 12px;
}

.nh-upload-zone {
  margin-top: 12px;
}

.nh-badge {
  margin-left: 8px;
}

.nh-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.nh-summary-card {
  background: var(--nh-card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.nh-summary-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.nh-muted {
  color: var(--nh-muted);
}

.nh-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.nh-status-ok {
  background: rgba(88, 180, 123, 0.15);
  color: #166534;
}

.nh-status-warn {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.nh-status-error {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.nh-footer-note {
  margin-top: 16px;
  color: var(--nh-muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  .nh-header {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 16px;
  }

  .nh-search {
    width: 100%;
  }
}
