:root {
  --geya-primary: #2563eb;
  --geya-primary-dark: #1d4ed8;
  --geya-success: #10b981;
  --geya-warning: #f59e0b;
  --geya-danger: #ef4444;
  --geya-purple: #8b5cf6;
  --geya-info: #0ea5e9;
  --geya-bg: #f3f4f6;
  --geya-card: #ffffff;
  --geya-text: #1f2937;
  --geya-muted: #6b7280;
  --geya-border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  background: var(--geya-bg);
  color: var(--geya-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.navbar-geya {
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.navbar-geya .navbar-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar-geya .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-size: .92rem;
  padding: .55rem .9rem !important;
  border-radius: .45rem;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.navbar-geya .nav-link:hover,
.navbar-geya .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}
.navbar-geya .navbar-text {
  color: rgba(255,255,255,.75) !important;
  font-size: .85rem;
}

/* Page header */
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h4 {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
}
.page-header .text-muted {
  font-size: .9rem;
}

/* Cards */
.geya-card {
  background: var(--geya-card);
  border: 1px solid var(--geya-border);
  border-radius: .75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden;
}
.geya-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--geya-border);
  background: #fafafa;
  font-weight: 600;
}
.geya-card-body { padding: 1.25rem; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 992px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--geya-card);
  border-radius: .75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--geya-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .12s ease, box-shadow .12s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}
.stat-icon.blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.green  { background: linear-gradient(135deg, #34d399, #10b981); }
.stat-icon.orange,
.stat-icon.warning { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.stat-icon.purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.stat-icon.red    { background: linear-gradient(135deg, #f87171, #ef4444); }
.stat-icon.cyan   { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.stat-icon.gray   { background: linear-gradient(135deg, #9ca3af, #6b7280); }

.stat-title {
  font-size: .85rem;
  color: var(--geya-muted);
  margin-bottom: .15rem;
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--geya-text);
  line-height: 1.2;
}

/* Tables */
.geya-table {
  margin: 0;
  font-size: .92rem;
}
.geya-table thead th {
  background: #f9fafb;
  color: #4b5563;
  font-weight: 600;
  border-top: 0;
  border-bottom: 2px solid var(--geya-border);
  white-space: nowrap;
}
.geya-table tbody td {
  color: #374151;
  vertical-align: middle;
}
.geya-table tbody tr:hover {
  background: #f9fafb;
}

/* 兼容旧 admin 页面直接用的 Bootstrap 表格类 */
.table-bordered,
.table-bordered thead th,
.table-bordered tbody td {
  border-color: var(--geya-border);
}
.table-hover tbody tr:hover { background: #f9fafb; }
.bg-white { background: var(--geya-card) !important; }

/* 兼容旧 admin 页面直接用的 Bootstrap badge 类 */
.badge {
  font-weight: 500;
  border-radius: .4rem;
  padding: .35em .65em;
}
.badge.bg-success { background: #d1fae5 !important; color: #065f46; }
.badge.bg-primary { background: #dbeafe !important; color: #1e40af; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e; }
.badge.bg-secondary { background: #f3f4f6 !important; color: #4b5563; }
.badge.bg-danger   { background: #fee2e2 !important; color: #991b1b; }

/* Buttons */
.btn-geya {
  background: var(--geya-primary);
  border-color: var(--geya-primary);
  color: #fff;
  font-weight: 500;
  padding: .5rem 1rem;
  border-radius: .5rem;
}
.btn-geya:hover {
  background: var(--geya-primary-dark);
  border-color: var(--geya-primary-dark);
  color: #fff;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* Forms */
.form-label {
  font-weight: 500;
  font-size: .9rem;
  color: #374151;
}
.form-control, .form-select {
  border-radius: .5rem;
  border-color: var(--geya-border);
  font-size: .92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--geya-primary);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.15);
}

/* Badges */
.badge-soft {
  font-weight: 500;
  padding: .35em .65em;
  border-radius: .4rem;
}
.badge-soft-success { background: #d1fae5; color: #065f46; }
.badge-soft-danger  { background: #fee2e2; color: #991b1b; }
.badge-soft-warning { background: #fef3c7; color: #92400e; }
.badge-soft-info    { background: #e0f2fe; color: #075985; }
.badge-soft-secondary { background: #f3f4f6; color: #4b5563; }

/* Footer */
.geya-footer {
  color: #9ca3af;
  font-size: .82rem;
  padding: 1.5rem 0;
}

/* Utility */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--geya-muted);
}
.empty-state i {
  font-size: 2.5rem;
  margin-bottom: .75rem;
  display: block;
  color: #d1d5db;
}
