/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #1a2e22;
}

/* ===== 管理后台：登录页 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00b578, #00c98a);
}

.login-card {
  width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.3);
}

.login-brand {
  font-size: 26px;
  font-weight: 800;
  color: #14352b;
  text-align: center;
}

.login-sub {
  text-align: center;
  color: #8a9a90;
  font-size: 14px;
  margin-bottom: 8px;
}

.login-input {
  height: 44px;
  border: 1px solid #e0e8e3;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
}

.login-input:focus {
  outline: none;
  border-color: #00b578;
}

.login-error {
  color: #e64340;
  font-size: 13px;
  margin: 0;
}

.login-btn {
  height: 44px;
  background: #00b578;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== 管理后台：布局 ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #14352b;
  color: #cfe0d6;
  flex: none;
  display: flex;
  flex-direction: column;
}

.brand {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  color: #cfe0d6;
  text-decoration: none;
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: #00b578;
  color: #fff;
}

.nav-icon {
  font-size: 16px;
}

.admin-main {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  background: #f3f8f5;
}

.topbar {
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

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

.topbar-user {
  margin-left: auto;
  color: #555;
  font-size: 14px;
}

.logout-btn {
  border: 1px solid #e0e8e3;
  background: #fff;
  color: #555;
  border-radius: 6px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
}

.content {
  padding: 24px;
  flex: 1 1;
}

/* ===== 通用 ===== */
.page-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #14352b;
}

.muted {
  color: #8a9a90;
  font-size: 14px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 60, 40, 0.05);
}

.stat-n {
  font-size: 28px;
  font-weight: 800;
  color: #14352b;
}

.stat-l {
  font-size: 13px;
  color: #8a9a90;
  margin-top: 4px;
}

/* 表格 */
.table-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(0, 60, 40, 0.05);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #eef3f0;
  vertical-align: top;
}

.data-table th {
  color: #8a9a90;
  font-weight: 600;
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.role-name {
  font-weight: 700;
  color: #14352b;
}

.perm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #eaf6f0;
  color: #009e5f;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.check {
  color: #00b578;
  font-weight: 700;
}

/* 按钮 */
.btn-primary {
  background: #00b578;
  color: #fff;
  border: none;
  border-radius: 6px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}

.btn-sm {
  border: 1px solid #e0e8e3;
  background: #fff;
  color: #555;
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 6px;
}

.btn-danger {
  border: 1px solid #f5c2c0;
  background: #fff;
  color: #e64340;
  border-radius: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.error-text {
  color: #e64340;
  font-size: 13px;
}

/* 表单 */
.form-panel {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  box-shadow: 0 2px 8px rgba(0, 60, 40, 0.05);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-row label {
  width: 80px;
  flex: none;
  font-size: 13px;
  color: #555;
}

.form-row input,
.form-row select {
  flex: 1 1;
  height: 36px;
  border: 1px solid #e0e8e3;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

