:root { --teal: #12B7B0; --teal-deep: #0E9B94; --sidebar-bg: #1f2d3d; }

body { background: #f2f4f6; }

.btn-teal, .bg-teal { background: var(--teal) !important; border-color: var(--teal); color: #fff !important; }
.btn-teal:hover { background: var(--teal-deep) !important; border-color: var(--teal-deep); }
.btn-outline-teal { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }

/* 侧边栏 */
.sidebar {
  width: 232px; min-height: 100vh; background: var(--sidebar-bg);
  color: #cfd8e3; display: flex; flex-direction: column; position: sticky; top: 0;
  flex-shrink: 0;
}
.sidebar-brand {
  padding: 20px 18px 14px; font-size: 17px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand .sidebar-sub { font-size: 12px; font-weight: 400; color: #8fa3b8; margin-top: 2px; }
.sidebar-nav { padding: 12px 10px; flex: 1; }
.sidebar-nav a {
  display: block; padding: 10px 12px; margin: 2px 0; border-radius: 8px;
  color: #cfd8e3; font-size: 14px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: var(--teal); color: #fff; }
.sidebar-nav a i { margin-right: 8px; }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }

.app-main { flex: 1; padding: 24px 28px; min-width: 0; }

/* 统计卡 */
.stat-card { border: 0; border-radius: 12px; box-shadow: 0 1px 4px rgba(31,45,61,.08); }
.stat-card .card-body { padding: 18px 20px; }
.stat-label { font-size: 13px; color: #8a97a5; }
.stat-value { font-size: 28px; font-weight: 700; color: #243342; line-height: 1.3; }
.stat-foot { font-size: 12px; color: #a3aeb9; }

.card { border: 0; border-radius: 12px; box-shadow: 0 1px 4px rgba(31,45,61,.08); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f4; font-weight: 600; border-radius: 12px 12px 0 0 !important; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #12B7B0 0%, #1f2d3d 100%); }
.login-card { width: 380px; border-radius: 14px; }
.text-teal { color: var(--teal); }

.prize-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; font-size: 24px; color: #fff;
}

.avatar-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}

/* 奖品图标：emoji / 上传图片 兼容 */
.icon-preview {
  height: 56px; border: 1px dashed #c6d0da; border-radius: 8px; background: #fafbfc;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden; margin-bottom: 6px;
}
.icon-preview.icon-preview-sm { height: 38px; width: 56px; font-size: 20px; margin-bottom: 0; }
.icon-preview img { max-width: 90%; max-height: 90%; object-fit: contain; }
.icon-img { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; }

.progress { background: #edf1f4; }
