* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'Noto Sans SC', 'PingFang SC', sans-serif; background: #f5f5f5; color: #333; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.08); width: 360px; text-align: center; }
.login-box h1 { font-size: 24px; font-weight: 300; letter-spacing: 4px; color: #1a73e8; margin-bottom: 4px; }
.login-box .subtitle { font-size: 12px; color: #888; margin-bottom: 24px; }
.login-box input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.login-box button { width: 100%; padding: 12px; background: #1a73e8; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.login-box .error { color: #d32f2f; margin-top: 12px; font-size: 13px; }

/* Nav */
.topnav { background: #1a73e8; color: #fff; padding: 0 24px; display: flex; align-items: center; height: 52px; }
.topnav .brand { font-size: 16px; font-weight: 500; letter-spacing: 2px; color: #fff; margin-right: 32px; }
.topnav .brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: 6px; font-size: 13px; transition: background .2s; }
.nav-links a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
h1 { font-size: 22px; font-weight: 400; margin-bottom: 16px; color: #222; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.card h2 { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: #555; }
.card h3 { font-size: 13px; font-weight: 400; color: #777; margin-bottom: 8px; }
.card .big { font-size: 28px; font-weight: 600; color: #1a73e8; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: #666; padding: 10px 8px; border-bottom: 2px solid #eee; font-size: 12px; }
td { padding: 10px 8px; border-bottom: 1px solid #f0f0f0; }
tr:hover td { background: #fafafa; }
.empty { text-align: center; color: #999; padding: 24px; }

/* Buttons */
.btn { display: inline-block; padding: 8px 20px; background: #1a73e8; color: #fff; border-radius: 6px; font-size: 13px; border: none; cursor: pointer; }
.btn:hover { background: #1557b0; text-decoration: none; }
.btn-sm { display: inline-block; padding: 4px 10px; font-size: 12px; border-radius: 4px; background: #e8f0fe; color: #1a73e8; cursor: pointer; }
.btn-sm:hover { background: #d2e3fc; text-decoration: none; }
.btn-sm.danger { background: #fce4ec; color: #c62828; }
.btn-sm.danger:hover { background: #f8bbd0; }

/* Forms */
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.inline-form input, .inline-form select, .inline-form textarea {
  padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; font-family: inherit;
}
.inline-form textarea { width: 100%; }
.inline-form button { padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.inline-form button[type=submit] { background: #1a73e8; color: #fff; border: none; }
.inline-form button[type=button] { background: #eee; border: 1px solid #ddd; color: #555; }

/* Responsive */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { flex-wrap: wrap; }
  .nav-links a { font-size: 12px; padding: 6px 10px; }
}
