:root {
  --wc-primary: #4f46e5;
  --wc-primary-dark: #4338ca;
  --wc-accent: #7c3aed;
}

body {
  background: #f5f6fa;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* Navbar */
.wc-navbar {
  background: linear-gradient(120deg, var(--wc-primary), var(--wc-accent));
  box-shadow: 0 2px 12px rgba(79, 70, 229, .25);
}
.wc-navbar .nav-link { color: rgba(255, 255, 255, .85); font-weight: 500; }
.wc-navbar .nav-link:hover, .wc-navbar .nav-link.active { color: #fff; }
.wc-navbar .navbar-brand { letter-spacing: .5px; }

/* Login */
.wc-login-body { background: #0f172a; }
.wc-login-bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
  opacity: .92;
}
.wc-login-body .container { position: relative; z-index: 1; }
.wc-login-card { border: none; border-radius: 16px; }
.wc-logo {
  width: 64px; height: 64px; margin: 0 auto; line-height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wc-primary), var(--wc-accent));
  color: #fff; font-size: 1.8rem;
}
.wc-login-body .btn-primary {
  background: var(--wc-primary); border-color: var(--wc-primary);
}

/* Buttons primary brand */
.btn-primary { background: var(--wc-primary); border-color: var(--wc-primary); }
.btn-primary:hover { background: var(--wc-primary-dark); border-color: var(--wc-primary-dark); }
a { color: var(--wc-primary); text-decoration: none; }
a:hover { color: var(--wc-primary-dark); }

/* Progress card */
.wc-progress-card { border: none; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.progress-bar { background: var(--wc-primary); }

/* Flip card */
.wc-card {
  background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06);
  margin-bottom: 16px; overflow: hidden; max-width: 560px; margin-left: auto; margin-right: auto;
}
.wc-card-inner {
  position: relative; min-height: 170px; cursor: pointer;
  transform-style: preserve-3d; transition: transform .55s;
}
.wc-card.flipped .wc-card-inner { transform: rotateY(180deg); }
.wc-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.wc-front { background: #fff; }
.wc-back { background: #f8f7ff; transform: rotateY(180deg); }
.wc-word { font-size: 2rem; font-weight: 700; color: #1e293b; }
.wc-def { font-size: 1.2rem; color: #334155; line-height: 1.5; }
.wc-ex { color: #64748b; font-style: italic; margin-top: 8px; }
.wc-tags .badge { margin: 2px; }
.wc-hint { font-size: .8rem; color: #94a3b8; margin-top: 14px; }
.wc-actions {
  display: flex; gap: 10px; padding: 14px; justify-content: center; border-top: 1px solid #f1f5f9;
}
.wc-actions .btn { flex: 1; max-width: 150px; }

/* Stat tiles */
.wc-tile { border: none; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.wc-tile-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.wc-tile-label { color: #64748b; font-size: .85rem; }

/* Calendar */
.wc-cal { max-width: 640px; }
.wc-cal-head, .wc-cal-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wc-cal-head span { text-align: center; font-weight: 600; color: #94a3b8; padding: 4px 0; }
.wc-cal-cell {
  background: #fff; border-radius: 8px; min-height: 54px; padding: 4px 6px;
  border: 1px solid #eef0f5; display: flex; flex-direction: column;
}
.wc-cal-cell.wc-empty { background: transparent; border: none; }
.wc-cal-cell.wc-today { border: 2px solid var(--wc-primary); }
.wc-d { font-size: .85rem; color: #475569; font-weight: 600; }
.wc-cnt { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--wc-primary); }

/* Tables */
.table { background: #fff; border-radius: 12px; overflow: hidden; }
.table > :not(caption) > * > * { background: #fff; }

/* Misc */
.cursor-pointer { cursor: pointer; }