/* fpcetg-bind-tool 共用樣式 — 廠商自助 + 警衛監控 */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft JhengHei",
               "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  background: #f4f6f8;
  color: #1a202c;
}

body { padding: 24px; }

h1 { margin: 0 0 16px; font-size: 28px; font-weight: 600; }
h2 { margin: 24px 0 12px; font-size: 20px; font-weight: 600; color: #2d3748; }

.container { max-width: 720px; margin: 0 auto; }
.container-wide { max-width: 1100px; margin: 0 auto; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* form */
form .field { margin-bottom: 16px; }
label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15px; }
input[type="text"], select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #fff;
}
input:focus, select:focus { outline: 2px solid #3182ce; outline-offset: -1px; }
.hint { color: #718096; font-size: 13px; margin-top: 4px; line-height: 1.4; }

button {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
button.primary { background: #3182ce; color: #fff; }
button.primary:hover:not(:disabled) { background: #2b6cb0; }
button.primary:disabled { background: #a0aec0; cursor: not-allowed; }

button.danger { background: #e53e3e; color: #fff; padding: 6px 14px; font-size: 14px; }
button.danger:hover:not(:disabled) { background: #c53030; }

/* status badge */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.badge.ok   { background: #c6f6d5; color: #22543d; }
.badge.warn { background: #fefcbf; color: #744210; }
.badge.full { background: #fed7d7; color: #742a2a; }

/* table */
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 15px; }
th { background: #edf2f7; font-weight: 600; font-size: 14px; }
tr:hover { background: #f7fafc; }

/* result panel */
.result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
}
.result.success { background: #f0fff4; border: 1px solid #9ae6b4; color: #22543d; }
.result.error   { background: #fff5f5; border: 1px solid #feb2b2; color: #742a2a; }
.result.pending { background: #ebf8ff; border: 1px solid #90cdf4; color: #2a4365; }
.result .big-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #2c5282;
  margin: 12px 0;
  letter-spacing: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

/* meta info */
.meta { color: #718096; font-size: 14px; margin-top: 8px; }

/* loading spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #cbd5e0;
  border-top-color: #3182ce;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* navigation between pages */
nav {
  margin-bottom: 16px;
  font-size: 14px;
}
nav a {
  color: #3182ce;
  text-decoration: none;
  margin-right: 12px;
}
nav a:hover { text-decoration: underline; }
