/* ==============================================
   Apple Gift Card Logger · style
   ============================================== */

:root {
  --bg:        #f4f6fa;
  --card-bg:   #ffffff;
  --text:      #1f2937;
  --muted:     #6b7280;
  --primary:   #2563eb;
  --primary-soft: #eff4ff;
  --border:    #e5e7eb;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.06), 0 16px 48px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14.5px;
}

.font-monospace {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace !important;
}

/* ===== 登录页 ===== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(96,165,250,.20) 0%, transparent 60%),
    radial-gradient(60% 80% at 80% 90%, rgba(167,139,250,.18) 0%, transparent 60%),
    var(--bg);
}
.login-card {
  width: 360px;
  max-width: 100%;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 36px 30px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 16px;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
}
.login-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-sub   { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.login-input { padding: 12px 14px !important; }
.login-btn   { width: 100%; padding: 10px; margin-top: 14px; font-weight: 600; }

/* ===== 主页 ===== */
.navbar {
  box-shadow: 0 1px 0 var(--border);
}
.add-card .card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.add-card .card-title {
  font-size: 16px;
  font-weight: 600;
}
.add-card .form-label {
  font-size: 12px;
}
.filter-bar .input-group { box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.filter-bar .form-control,
.filter-bar .form-select,
.filter-bar .input-group-text { border-color: var(--border); }

/* ===== 列表 ===== */
.list-table { font-size: 14px; }
.list-table thead th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.list-table tbody td { vertical-align: middle; }
.list-table .text-break { word-break: break-all; }

/* ===== 平台徽章 ===== */
.platform-badge {
  font-weight: 600;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eef2f7;
  color: #374151;
}
.platform-chatgpt { background: #d1fae5; color: #065f46; }
.platform-claude  { background: #fff1d6; color: #92400e; }
.platform-grok    { background: #e5e7eb; color: #1f2937; }
.platform-gemini  { background: #dbeafe; color: #1e40af; }
.platform-cursor  { background: #f3e8ff; color: #6b21a8; }
.platform-other   { background: #f3f4f6; color: #6b7280; }

/* ===== 卡片通用 ===== */
.card { border: 0; border-radius: 12px; }
.card-body { padding: 20px 22px; }

@media (max-width: 768px) {
  .add-card .row > [class*="col-"] {
    margin-bottom: 4px;
  }
  .list-table .text-truncate {
    max-width: 140px !important;
  }
  .navbar .navbar-brand { font-size: 15px; }
}
