﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@700&display=swap');

:root {
  --bg-top: #f7f3e8;
  --bg-bottom: #dceef2;
  --panel: rgba(255, 255, 255, 0.86);
  --text-main: #17323b;
  --text-sub: #4a646b;
  --primary: #0b7a75;
  --primary-strong: #065f5b;
  --accent: #d66f2d;
  --danger: #b73c36;
  --ok: #1f7a44;
  --waiting: #b36a00;
  --forbidden: #8b1d57;
  --shadow: 0 18px 35px rgba(13, 74, 84, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: 'Noto Sans TC', sans-serif;
  background: radial-gradient(circle at top right, #fff4d8 0%, transparent 36%),
    linear-gradient(140deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.brand {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.4rem;
  color: #0c3d42;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #25535b;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.panel h1,
.panel h2,
.panel h3 {
  margin-top: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 122, 117, 0.12);
  color: #085f5a;
  font-size: 0.87rem;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid #bdd2d7;
  border-radius: 12px;
  background: #ffffff;
  padding: 11px 12px;
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

button,
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}

button.secondary,
.btn.secondary {
  background: #ffffff;
  color: #1c5762;
  border: 1px solid #abc7cf;
}

button.accent,
.btn.accent {
  background: var(--accent);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.alert.info {
  background: #e8f7f5;
  color: #125d58;
}

.alert.warn {
  background: #fff1df;
  color: #93511d;
}

.alert.error {
  background: #fde8e6;
  color: #8b2e2a;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dce9ec;
}

.stat .label {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.stat .value {
  font-size: 1.35rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 4px 10px;
  font-weight: 700;
}

.badge.active {
  background: #e5f7ea;
  color: var(--ok);
}

.badge.waiting_gsc {
  background: #fff5e6;
  color: var(--waiting);
}

.badge.forbidden {
  background: #fde8f4;
  color: var(--forbidden);
}

.badge.new {
  background: #ebf4ff;
  color: #2d5f9d;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2ecef;
  text-align: left;
  font-size: 0.92rem;
}

th {
  color: #375760;
  background: rgba(255, 255, 255, 0.7);
}

.small {
  color: var(--text-sub);
  font-size: 0.86rem;
}

.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .layout {
    padding: 18px 12px 26px;
  }

  .panel {
    padding: 16px;
  }
}
