﻿/* WishCO Framework — สกัดจาก D:\Claude\wishco-template3.html ห้ามแก้ค่าโดยตรง ให้ override ใน app.css */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   WISHCO FRAMEWORK v1.0
   Custom CSS Design System
   Brand: B=#0072bb R=#d82144 G=#73ae43 W=#ffffff
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* WishCO Brand Colors */
  --wc-primary: #0072bb;
  --wc-primary-light: #2a8ecf;
  --wc-primary-dark: #005a94;
  --wc-primary-ghost: rgba(0, 114, 187, 0.08);

  --wc-secondary: #0f172a;
  --wc-secondary-light: #1e293b;

  --wc-accent: #73ae43;
  --wc-accent-light: #8ec25e;

  --wc-success: #73ae43;
  --wc-warning: #f59e0b;
  --wc-danger: #d82144;
  --wc-info: #0072bb;

  /* Brand exact */
  --wc-brand-blue: #0072bb;
  --wc-brand-red: #d82144;
  --wc-brand-green: #73ae43;
  --wc-brand-white: #ffffff;

  /* Neutrals */
  --wc-white: #ffffff;
  --wc-gray-50: #f8fafc;
  --wc-gray-100: #f1f5f9;
  --wc-gray-200: #e2e8f0;
  --wc-gray-300: #cbd5e1;
  --wc-gray-400: #94a3b8;
  --wc-gray-500: #64748b;
  --wc-gray-600: #475569;
  --wc-gray-700: #334155;
  --wc-gray-800: #1e293b;
  --wc-gray-900: #0f172a;

  /* Typography */
  --wc-font: 'Prompt', sans-serif;
  --wc-font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --wc-space-xs: 0.25rem;
  --wc-space-sm: 0.5rem;
  --wc-space-md: 1rem;
  --wc-space-lg: 1.5rem;
  --wc-space-xl: 2rem;
  --wc-space-2xl: 3rem;
  --wc-space-3xl: 4rem;

  /* Radius */
  --wc-radius-sm: 6px;
  --wc-radius-md: 10px;
  --wc-radius-lg: 16px;
  --wc-radius-xl: 24px;
  --wc-radius-full: 9999px;

  /* Shadows */
  --wc-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --wc-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --wc-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.04);
  --wc-shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.14);
  --wc-shadow-glow: 0 0 24px rgba(0, 114, 187, 0.2);

  /* Transitions */
  --wc-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --wc-transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--wc-font);
  color: var(--wc-gray-800);
  background: var(--wc-gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Container ---------- */
.wc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--wc-space-lg);
}

/* ---------- Grid System ---------- */
.wc-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wc-space-lg);
}

.wc-col { flex: 1; min-width: 0; }
.wc-col-2 { flex: 0 0 calc(16.666% - var(--wc-space-lg)); }
.wc-col-3 { flex: 0 0 calc(25% - var(--wc-space-lg)); }
.wc-col-4 { flex: 0 0 calc(33.333% - var(--wc-space-lg)); }
.wc-col-6 { flex: 0 0 calc(50% - var(--wc-space-lg)); }
.wc-col-8 { flex: 0 0 calc(66.666% - var(--wc-space-lg)); }
.wc-col-12 { flex: 0 0 100%; }

@media (max-width: 768px) {
  .wc-row { flex-direction: column; }
  .wc-col-2, .wc-col-3, .wc-col-4, .wc-col-6, .wc-col-8 { flex: 0 0 100%; }
}

/* ---------- Typography ---------- */
.wc-h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--wc-secondary); }
.wc-h2 { font-size: 2rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--wc-secondary); }
.wc-h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; color: var(--wc-secondary); }
.wc-h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--wc-secondary); }
.wc-text { font-size: 1rem; color: var(--wc-gray-600); line-height: 1.7; }
.wc-text-sm { font-size: 0.875rem; color: var(--wc-gray-500); }
.wc-text-xs { font-size: 0.75rem; color: var(--wc-gray-400); }
.wc-text-mono { font-family: var(--wc-font-mono); font-size: 0.875rem; }
.wc-text-primary { color: var(--wc-primary); }
.wc-text-center { text-align: center; }
.wc-text-bold { font-weight: 600; }

/* ---------- Navbar ---------- */
.wc-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wc-gray-200);
  padding: var(--wc-space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.wc-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wc-navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wc-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--wc-space-sm);
}
.wc-navbar-brand .wc-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--wc-primary), var(--wc-primary-dark));
  border-radius: var(--wc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
}
.wc-nav-links {
  display: flex;
  align-items: center;
  gap: var(--wc-space-xs);
  list-style: none;
}
.wc-nav-links a {
  padding: var(--wc-space-sm) var(--wc-space-md);
  color: var(--wc-gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--wc-radius-sm);
  transition: var(--wc-transition);
}
.wc-nav-links a:hover {
  color: var(--wc-primary);
  background: var(--wc-primary-ghost);
}
.wc-nav-links a.active {
  color: var(--wc-primary);
  background: var(--wc-primary-ghost);
}

/* ---------- Buttons ---------- */
.wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wc-space-sm);
  padding: 0.625rem 1.25rem;
  font-family: var(--wc-font);
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--wc-radius-sm);
  cursor: pointer;
  transition: var(--wc-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.wc-btn:active { transform: scale(0.97); }

.wc-btn-primary {
  background: var(--wc-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 114, 187, 0.25);
}
.wc-btn-primary:hover {
  background: var(--wc-primary-dark);
  box-shadow: 0 4px 16px rgba(0, 114, 187, 0.35);
  transform: translateY(-1px);
}

.wc-btn-secondary {
  background: var(--wc-secondary);
  color: white;
}
.wc-btn-secondary:hover {
  background: var(--wc-gray-700);
  transform: translateY(-1px);
}

.wc-btn-outline {
  background: transparent;
  color: var(--wc-primary);
  border-color: var(--wc-primary);
}
.wc-btn-outline:hover {
  background: var(--wc-primary);
  color: white;
}

.wc-btn-ghost {
  background: transparent;
  color: var(--wc-gray-600);
}
.wc-btn-ghost:hover {
  background: var(--wc-gray-100);
  color: var(--wc-gray-800);
}

.wc-btn-success { background: var(--wc-success); color: white; }
.wc-btn-success:hover { background: #5f9635; transform: translateY(-1px); }

.wc-btn-danger { background: var(--wc-danger); color: white; }
.wc-btn-danger:hover { background: #b81c3a; transform: translateY(-1px); }

.wc-btn-warning { background: var(--wc-warning); color: var(--wc-gray-900); }
.wc-btn-warning:hover { background: #d97706; transform: translateY(-1px); }

.wc-btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
.wc-btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.wc-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--wc-radius-sm);
}

/* ---------- Cards ---------- */
.wc-card {
  background: var(--wc-white);
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-md);
  padding: var(--wc-space-xl);
  transition: var(--wc-transition);
}
.wc-card:hover {
  box-shadow: var(--wc-shadow-md);
  border-color: var(--wc-gray-300);
}
.wc-card-elevated {
  box-shadow: var(--wc-shadow-md);
  border: none;
}
.wc-card-elevated:hover {
  box-shadow: var(--wc-shadow-lg);
  transform: translateY(-2px);
}
.wc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wc-space-lg);
  padding-bottom: var(--wc-space-md);
  border-bottom: 1px solid var(--wc-gray-100);
}
.wc-card-accent {
  border-top: 3px solid var(--wc-primary);
}
.wc-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--wc-radius-md) var(--wc-radius-md) 0 0;
  margin: calc(-1 * var(--wc-space-xl));
  margin-bottom: var(--wc-space-lg);
  width: calc(100% + var(--wc-space-xl) * 2);
}

/* ---------- Forms ---------- */
.wc-form-group {
  margin-bottom: var(--wc-space-lg);
}
.wc-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wc-gray-700);
  margin-bottom: var(--wc-space-sm);
}
.wc-input, .wc-select, .wc-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--wc-font);
  font-size: 0.9rem;
  color: var(--wc-gray-800);
  background: var(--wc-white);
  border: 1.5px solid var(--wc-gray-300);
  border-radius: var(--wc-radius-sm);
  transition: var(--wc-transition);
  outline: none;
}
.wc-input:focus, .wc-select:focus, .wc-textarea:focus {
  border-color: var(--wc-primary);
  box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}
.wc-input::placeholder { color: var(--wc-gray-400); }
.wc-input-error { border-color: var(--wc-danger); }
.wc-input-success { border-color: var(--wc-success); }
.wc-helper { font-size: 0.8rem; color: var(--wc-gray-500); margin-top: var(--wc-space-xs); }
.wc-helper-error { color: var(--wc-danger); }
.wc-textarea { resize: vertical; min-height: 100px; }
.wc-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.wc-checkbox-wrap, .wc-radio-wrap {
  display: flex;
  align-items: center;
  gap: var(--wc-space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--wc-gray-700);
  margin-bottom: var(--wc-space-sm);
}
.wc-checkbox, .wc-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--wc-primary);
  cursor: pointer;
}

/* ---------- Table ---------- */
.wc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-md);
}
.wc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.wc-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wc-gray-500);
  background: var(--wc-gray-50);
  border-bottom: 2px solid var(--wc-gray-200);
}
.wc-table td {
  padding: 0.875rem 1rem;
  color: var(--wc-gray-700);
  border-bottom: 1px solid var(--wc-gray-100);
}
.wc-table tbody tr {
  transition: var(--wc-transition);
}
.wc-table tbody tr:hover {
  background: var(--wc-primary-ghost);
}
.wc-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Badges ---------- */
.wc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--wc-radius-full);
  letter-spacing: 0.01em;
}
.wc-badge-primary { background: var(--wc-primary-ghost); color: var(--wc-primary); }
.wc-badge-success { background: rgba(115, 174, 67, 0.1); color: var(--wc-success); }
.wc-badge-warning { background: rgba(245, 158, 11, 0.1); color: #b45309; }
.wc-badge-danger { background: rgba(216, 33, 68, 0.1); color: var(--wc-danger); }
.wc-badge-gray { background: var(--wc-gray-100); color: var(--wc-gray-600); }

/* ---------- Alerts ---------- */
.wc-alert {
  padding: var(--wc-space-md) var(--wc-space-lg);
  border-radius: var(--wc-radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--wc-space-sm);
  margin-bottom: var(--wc-space-md);
}
.wc-alert-info { background: rgba(0, 114, 187, 0.08); color: #005a94; border-left: 3px solid var(--wc-info); }
.wc-alert-success { background: rgba(115, 174, 67, 0.08); color: #4a7a2a; border-left: 3px solid var(--wc-success); }
.wc-alert-warning { background: rgba(245, 158, 11, 0.08); color: #92400e; border-left: 3px solid var(--wc-warning); }
.wc-alert-danger { background: rgba(216, 33, 68, 0.08); color: #a11835; border-left: 3px solid var(--wc-danger); }

/* ---------- Tabs ---------- */
.wc-tabs {
  display: flex;
  gap: var(--wc-space-xs);
  border-bottom: 2px solid var(--wc-gray-200);
  margin-bottom: var(--wc-space-lg);
}
.wc-tab {
  padding: var(--wc-space-sm) var(--wc-space-lg);
  font-family: var(--wc-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--wc-gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--wc-transition);
}
.wc-tab:hover { color: var(--wc-gray-700); }
.wc-tab.active {
  color: var(--wc-primary);
  border-bottom-color: var(--wc-primary);
}

/* ---------- Avatar ---------- */
.wc-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--wc-radius-full);
  background: linear-gradient(135deg, var(--wc-primary-light), var(--wc-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.wc-avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.wc-avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }

/* ---------- Progress ---------- */
.wc-progress {
  height: 8px;
  background: var(--wc-gray-200);
  border-radius: var(--wc-radius-full);
  overflow: hidden;
}
.wc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--wc-primary), var(--wc-primary-light));
  border-radius: var(--wc-radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.wc-progress-success .wc-progress-bar { background: linear-gradient(90deg, var(--wc-success), #8ec25e); }

/* ---------- Alert Dialog (Large with Input) ---------- */
.wc-alert-dialog {
  background: var(--wc-white);
  border-radius: var(--wc-radius-lg);
  box-shadow: var(--wc-shadow-xl);
  padding: var(--wc-space-2xl) var(--wc-space-xl) var(--wc-space-xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
}
.wc-alert-dialog-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--wc-space-lg);
  font-size: 2rem;
}
.wc-alert-dialog-icon-success {
  background: rgba(115, 174, 67, 0.12);
  color: var(--wc-brand-green);
  border: 3px solid rgba(115, 174, 67, 0.25);
}
.wc-alert-dialog-icon-danger {
  background: rgba(216, 33, 68, 0.1);
  color: var(--wc-brand-red);
  border: 3px solid rgba(216, 33, 68, 0.2);
}
.wc-alert-dialog-icon-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--wc-warning);
  border: 3px solid rgba(245, 158, 11, 0.2);
}
.wc-alert-dialog-icon-info {
  background: rgba(0, 114, 187, 0.1);
  color: var(--wc-brand-blue);
  border: 3px solid rgba(0, 114, 187, 0.2);
}
.wc-alert-dialog-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--wc-space-sm);
}
.wc-alert-dialog-title-success { color: var(--wc-brand-green); }
.wc-alert-dialog-title-danger { color: var(--wc-brand-red); }
.wc-alert-dialog-title-warning { color: #b45309; }
.wc-alert-dialog-title-info { color: var(--wc-brand-blue); }
.wc-alert-dialog-desc {
  font-size: 0.9rem;
  color: var(--wc-gray-500);
  margin-bottom: var(--wc-space-xs);
}
.wc-alert-dialog-highlight {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--wc-space-lg);
}
.wc-alert-dialog-highlight-success { color: var(--wc-brand-green); }
.wc-alert-dialog-highlight-danger { color: var(--wc-brand-red); }
.wc-alert-dialog-highlight-warning { color: #b45309; }
.wc-alert-dialog-highlight-info { color: var(--wc-brand-blue); }
.wc-alert-dialog .wc-input {
  text-align: center;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--wc-gray-300);
  margin-bottom: var(--wc-space-lg);
}
.wc-alert-dialog .wc-input:focus {
  border-color: var(--wc-primary);
}
.wc-alert-dialog-actions {
  display: flex;
  gap: var(--wc-space-md);
}
.wc-alert-dialog-actions .wc-btn {
  flex: 1;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--wc-radius-md);
}
.wc-btn-cancel {
  background: var(--wc-gray-100);
  color: var(--wc-gray-600);
  border: 1px solid var(--wc-gray-200);
}
.wc-btn-cancel:hover {
  background: var(--wc-gray-200);
}
.wc-btn-confirm-success {
  background: var(--wc-brand-green);
  color: white;
  box-shadow: 0 2px 8px rgba(115, 174, 67, 0.3);
}
.wc-btn-confirm-success:hover {
  background: #5f9635;
  box-shadow: 0 4px 16px rgba(115, 174, 67, 0.4);
}
.wc-btn-confirm-danger {
  background: var(--wc-brand-red);
  color: white;
  box-shadow: 0 2px 8px rgba(216, 33, 68, 0.3);
}
.wc-btn-confirm-danger:hover {
  background: #b81c3a;
  box-shadow: 0 4px 16px rgba(216, 33, 68, 0.4);
}
.wc-btn-confirm-warning {
  background: var(--wc-warning);
  color: var(--wc-gray-900);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.wc-btn-confirm-warning:hover {
  background: #d97706;
}
.wc-btn-confirm-info {
  background: var(--wc-brand-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 114, 187, 0.3);
}
.wc-btn-confirm-info:hover {
  background: #005a94;
  box-shadow: 0 4px 16px rgba(0, 114, 187, 0.4);
}

/* Alert Dialog on overlay background */
.wc-alert-dialog-demo {
  background: var(--wc-gray-200);
  border-radius: var(--wc-radius-lg);
  padding: var(--wc-space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Calendar ---------- */
.wc-calendar {
  background: var(--wc-white);
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-md);
  padding: var(--wc-space-lg);
  max-width: 360px;
  width: 100%;
  box-shadow: var(--wc-shadow-sm);
}
.wc-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wc-space-lg);
}
.wc-calendar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wc-gray-800);
}
.wc-calendar-nav {
  display: flex;
  gap: var(--wc-space-xs);
}
.wc-calendar-nav button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-sm);
  color: var(--wc-gray-600);
  cursor: pointer;
  font-family: var(--wc-font);
  font-size: 0.85rem;
  transition: var(--wc-transition);
}
.wc-calendar-nav button:hover {
  background: var(--wc-gray-100);
  border-color: var(--wc-gray-300);
}
.wc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.wc-calendar-day-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wc-gray-400);
  padding: var(--wc-space-sm) 0;
}
.wc-calendar-day-name:first-child { color: var(--wc-brand-red); }
.wc-calendar-day-name:last-child { color: var(--wc-brand-red); }
.wc-calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--wc-gray-700);
  border-radius: var(--wc-radius-sm);
  cursor: pointer;
  transition: var(--wc-transition);
  font-weight: 500;
  position: relative;
}
.wc-calendar-day:hover {
  background: var(--wc-gray-100);
}
.wc-calendar-day.other-month {
  color: var(--wc-gray-300);
}
.wc-calendar-day.today {
  background: var(--wc-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 114, 187, 0.3);
}
.wc-calendar-day.today:hover {
  background: var(--wc-primary-dark);
}
.wc-calendar-day.selected {
  background: rgba(0, 114, 187, 0.1);
  color: var(--wc-primary);
  font-weight: 600;
}
.wc-calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wc-brand-red);
}
.wc-calendar-day.sunday { color: var(--wc-brand-red); }
.wc-calendar-day.saturday { color: var(--wc-brand-blue); }
.wc-calendar-day.sunday.other-month,
.wc-calendar-day.saturday.other-month { opacity: 0.4; }
.wc-calendar-day.sunday.today,
.wc-calendar-day.saturday.today { color: white; }

.wc-calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--wc-space-md);
  padding-top: var(--wc-space-md);
  border-top: 1px solid var(--wc-gray-100);
  font-size: 0.8rem;
}
.wc-calendar-event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Calendar Large / Full Width */
.wc-calendar-full {
  max-width: 100%;
}
.wc-calendar-full .wc-calendar-day {
  aspect-ratio: auto;
  padding: 0.6rem 0.4rem;
  font-size: 0.9rem;
}

/* ---------- Breadcrumb ---------- */
.wc-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--wc-space-xs);
  font-size: 0.875rem;
  list-style: none;
}
.wc-breadcrumb li { display: flex; align-items: center; gap: var(--wc-space-xs); }
.wc-breadcrumb li + li::before {
  content: '/';
  color: var(--wc-gray-400);
  margin: 0 2px;
}
.wc-breadcrumb a {
  color: var(--wc-gray-500);
  text-decoration: none;
  transition: var(--wc-transition);
}
.wc-breadcrumb a:hover { color: var(--wc-primary); }
.wc-breadcrumb .active { color: var(--wc-gray-800); font-weight: 500; }

/* ---------- Pagination ---------- */
.wc-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.wc-page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--wc-space-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wc-gray-600);
  background: var(--wc-white);
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: var(--wc-transition);
}
.wc-page-item:hover { background: var(--wc-gray-100); border-color: var(--wc-gray-300); }
.wc-page-item.active {
  background: var(--wc-primary);
  color: white;
  border-color: var(--wc-primary);
}
.wc-page-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Toast / Notification ---------- */
.wc-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--wc-space-sm);
  padding: var(--wc-space-md) var(--wc-space-lg);
  background: var(--wc-white);
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-md);
  box-shadow: var(--wc-shadow-lg);
  min-width: 320px;
  max-width: 420px;
  animation: dcSlideIn 0.3s ease;
}
.wc-toast-content { flex: 1; }
.wc-toast-title { font-size: 0.9rem; font-weight: 600; color: var(--wc-gray-800); }
.wc-toast-message { font-size: 0.8rem; color: var(--wc-gray-500); margin-top: 2px; }
.wc-toast-close {
  background: none;
  border: none;
  color: var(--wc-gray-400);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
}
.wc-toast-close:hover { color: var(--wc-gray-600); }
.wc-toast-success { border-left: 4px solid var(--wc-success); }
.wc-toast-error { border-left: 4px solid var(--wc-danger); }
.wc-toast-warning { border-left: 4px solid var(--wc-warning); }
.wc-toast-info { border-left: 4px solid var(--wc-info); }

/* ---------- Dropdown ---------- */
.wc-dropdown { position: relative; display: inline-block; }
.wc-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--wc-white);
  border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-md);
  box-shadow: var(--wc-shadow-lg);
  padding: var(--wc-space-xs);
  z-index: 50;
  animation: dcFadeUp 0.15s ease;
}
.wc-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--wc-space-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--wc-gray-700);
  text-decoration: none;
  border-radius: var(--wc-radius-sm);
  cursor: pointer;
  transition: var(--wc-transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--wc-font);
}
.wc-dropdown-item:hover { background: var(--wc-gray-100); color: var(--wc-gray-900); }
.wc-dropdown-item-danger:hover { background: rgba(239,68,68,0.08); color: var(--wc-danger); }
.wc-dropdown-divider {
  border: none;
  border-top: 1px solid var(--wc-gray-100);
  margin: var(--wc-space-xs) 0;
}

/* ---------- Accordion ---------- */
.wc-accordion { border: 1px solid var(--wc-gray-200); border-radius: var(--wc-radius-md); overflow: hidden; }
.wc-accordion-item { border-bottom: 1px solid var(--wc-gray-200); }
.wc-accordion-item:last-child { border-bottom: none; }
.wc-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--wc-space-md) var(--wc-space-lg);
  font-family: var(--wc-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--wc-gray-800);
  background: var(--wc-white);
  border: none;
  cursor: pointer;
  transition: var(--wc-transition);
  text-align: left;
}
.wc-accordion-header:hover { background: var(--wc-gray-50); }
.wc-accordion-arrow {
  font-size: 0.75rem;
  color: var(--wc-gray-400);
  transition: transform 0.2s ease;
}
.wc-accordion-item.open .wc-accordion-arrow { transform: rotate(180deg); }
.wc-accordion-body {
  padding: 0 var(--wc-space-lg) var(--wc-space-lg);
  font-size: 0.9rem;
  color: var(--wc-gray-600);
  line-height: 1.6;
}

/* ---------- Loading / Spinner ---------- */
.wc-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--wc-gray-200);
  border-top-color: var(--wc-primary);
  border-radius: 50%;
  animation: dcSpin 0.6s linear infinite;
}
.wc-spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.wc-spinner-lg { width: 48px; height: 48px; border-width: 4px; }
@keyframes dcSpin {
  to { transform: rotate(360deg); }
}
.wc-skeleton {
  background: linear-gradient(90deg, var(--wc-gray-200) 25%, var(--wc-gray-100) 50%, var(--wc-gray-200) 75%);
  background-size: 200% 100%;
  animation: dcShimmer 1.5s infinite;
  border-radius: var(--wc-radius-sm);
}
@keyframes dcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Switch / Toggle ---------- */
.wc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.wc-switch input { opacity: 0; width: 0; height: 0; }
.wc-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--wc-gray-300);
  border-radius: var(--wc-radius-full);
  cursor: pointer;
  transition: var(--wc-transition);
}
.wc-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--wc-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.wc-switch input:checked + .wc-switch-slider { background: var(--wc-primary); }
.wc-switch input:checked + .wc-switch-slider::before { transform: translateX(20px); }

/* ---------- Search Input ---------- */
.wc-search {
  position: relative;
  display: inline-block;
  width: 100%;
}
.wc-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wc-gray-400);
  font-size: 0.9rem;
  pointer-events: none;
}
.wc-search .wc-input {
  padding-left: 36px;
  padding-right: 36px;
}
.wc-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--wc-gray-400);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
}
.wc-search-clear:hover { color: var(--wc-gray-600); background: var(--wc-gray-100); }

/* ---------- Empty State ---------- */
.wc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--wc-space-3xl) var(--wc-space-xl);
  text-align: center;
}
.wc-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--wc-space-lg);
  opacity: 0.5;
}
.wc-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wc-gray-700);
  margin-bottom: var(--wc-space-sm);
}
.wc-empty-text {
  font-size: 0.9rem;
  color: var(--wc-gray-500);
  max-width: 360px;
  margin-bottom: var(--wc-space-xl);
}

/* ---------- Footer ---------- */
.wc-footer {
  background: var(--wc-secondary);
  color: var(--wc-gray-400);
  padding: var(--wc-space-3xl) 0 var(--wc-space-xl);
}
.wc-footer a { color: var(--wc-gray-400); text-decoration: none; transition: var(--wc-transition); }
.wc-footer a:hover { color: white; }
.wc-footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wc-gray-300);
  margin-bottom: var(--wc-space-md);
}
.wc-footer-links { list-style: none; }
.wc-footer-links li { margin-bottom: var(--wc-space-sm); }
.wc-footer-links a { font-size: 0.875rem; }
.wc-footer-bottom {
  border-top: 1px solid var(--wc-gray-700);
  margin-top: var(--wc-space-2xl);
  padding-top: var(--wc-space-lg);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Divider ---------- */
.wc-divider {
  border: none;
  border-top: 1px solid var(--wc-gray-200);
  margin: var(--wc-space-xl) 0;
}

/* ---------- Tag / Chip ---------- */
.wc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--wc-gray-100);
  color: var(--wc-gray-700);
  border-radius: var(--wc-radius-full);
  border: 1px solid var(--wc-gray-200);
}

/* ---------- Tooltip (CSS only) ---------- */
.wc-tooltip {
  position: relative;
  cursor: pointer;
}
.wc-tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--wc-secondary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--wc-radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--wc-transition);
}
.wc-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ---------- Modal ---------- */
.wc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--wc-space-lg);
}
.wc-modal {
  background: var(--wc-white);
  border-radius: var(--wc-radius-lg);
  padding: var(--wc-space-xl);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--wc-shadow-xl);
  animation: dcFadeUp 0.3s ease;
}
.wc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wc-space-lg);
}
.wc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--wc-space-sm);
  margin-top: var(--wc-space-xl);
}

/* ---------- Dual-Listbox (Shuttle Box) ---------- */
.wc-dual-listbox {
  display: flex; gap: 0; align-items: stretch;
}
.wc-dl-panel {
  flex: 1; display: flex; flex-direction: column; gap: var(--wc-space-sm); min-width: 0;
}
.wc-dl-title {
  font-size: 0.82rem; font-weight: 600; color: var(--wc-text-secondary);
}
.wc-dl-search {
  width: 100%; font-size: 0.82rem; padding: 6px 10px;
}
.wc-dl-list {
  flex: 1; border: 1px solid var(--wc-gray-200); border-radius: var(--wc-radius-sm);
  overflow-y: auto; min-height: 240px; max-height: 400px;
}
.wc-dl-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; cursor: pointer; font-size: 0.82rem;
  border-bottom: 1px solid var(--wc-gray-50); user-select: none;
}
.wc-dl-item:hover { background: var(--wc-primary-ghost); }
.wc-dl-item.selected { background: rgba(0, 114, 187, 0.1); }
.wc-dl-code { font-weight: 600; min-width: 50px; }
.wc-dl-name {
  color: var(--wc-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wc-dl-actions {
  display: flex; flex-direction: column; justify-content: center;
  gap: 6px; padding: 0 var(--wc-space-sm);
}
.wc-dl-actions button {
  background: var(--wc-gray-100); border: 1px solid var(--wc-gray-200);
  border-radius: var(--wc-radius-sm); padding: 6px 10px;
  cursor: pointer; font-size: 0.75rem; color: var(--wc-gray-600);
  transition: var(--wc-transition);
}
.wc-dl-actions button:hover {
  background: var(--wc-primary); color: white; border-color: var(--wc-primary);
}

/* ---------- Single-Select Popup ---------- */
.wc-sp-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
}
.wc-sp-dialog {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--wc-white);
  border-radius: var(--wc-radius-lg);
  box-shadow: var(--wc-shadow-lg);
  width: 480px; max-height: 75vh;
  display: flex; flex-direction: column;
}
.wc-sp-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--wc-gray-100);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.05rem;
}
.wc-sp-close {
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--wc-gray-400);
}
.wc-sp-close:hover { color: var(--wc-gray-700); }
.wc-sp-search-box { padding: 12px 20px 0; }
.wc-sp-search-box .wc-input { width: 100%; }
.wc-sp-list {
  flex: 1; overflow-y: auto;
  min-height: 200px; max-height: 50vh;
  padding: 8px 0;
}
.wc-sp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; cursor: pointer; font-size: 0.88rem;
  border-bottom: 1px solid var(--wc-gray-50);
  user-select: none; transition: var(--wc-transition);
}
.wc-sp-item:hover { background: var(--wc-primary-ghost); }
.wc-sp-code {
  font-weight: 700; min-width: 55px; color: var(--wc-primary);
}
.wc-sp-name {
  color: var(--wc-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wc-sp-no-result {
  padding: 20px; text-align: center;
  color: var(--wc-text-secondary); font-size: 0.88rem;
}

/* ---------- Sidebar ---------- */
.wc-sidebar {
  width: 260px;
  background: var(--wc-white);
  border-right: 1px solid var(--wc-gray-200);
  padding: var(--wc-space-lg);
  height: 100%;
  flex-shrink: 0;
}
.wc-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--wc-space-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  color: var(--wc-gray-600);
  text-decoration: none;
  border-radius: var(--wc-radius-sm);
  transition: var(--wc-transition);
  margin-bottom: 2px;
}
.wc-sidebar-item:hover {
  background: var(--wc-gray-100);
  color: var(--wc-gray-800);
}
.wc-sidebar-item.active {
  background: var(--wc-primary-ghost);
  color: var(--wc-primary);
  font-weight: 500;
}
.wc-sidebar-heading {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wc-gray-400);
  padding: var(--wc-space-md) 0.875rem var(--wc-space-xs);
}

/* ---------- Utilities ---------- */
.wc-flex { display: flex; }
.wc-flex-center { display: flex; align-items: center; justify-content: center; }
.wc-flex-between { display: flex; align-items: center; justify-content: space-between; }
.wc-flex-col { flex-direction: column; }
.wc-gap-xs { gap: var(--wc-space-xs); }
.wc-gap-sm { gap: var(--wc-space-sm); }
.wc-gap-md { gap: var(--wc-space-md); }
.wc-gap-lg { gap: var(--wc-space-lg); }
.wc-gap-xl { gap: var(--wc-space-xl); }

.wc-mt-sm { margin-top: var(--wc-space-sm); }
.wc-mt-md { margin-top: var(--wc-space-md); }
.wc-mt-lg { margin-top: var(--wc-space-lg); }
.wc-mt-xl { margin-top: var(--wc-space-xl); }
.wc-mb-sm { margin-bottom: var(--wc-space-sm); }
.wc-mb-md { margin-bottom: var(--wc-space-md); }
.wc-mb-lg { margin-bottom: var(--wc-space-lg); }
.wc-mb-xl { margin-bottom: var(--wc-space-xl); }

.wc-p-sm { padding: var(--wc-space-sm); }
.wc-p-md { padding: var(--wc-space-md); }
.wc-p-lg { padding: var(--wc-space-lg); }
.wc-p-xl { padding: var(--wc-space-xl); }

.wc-rounded-sm { border-radius: var(--wc-radius-sm); }
.wc-rounded-md { border-radius: var(--wc-radius-md); }
.wc-rounded-lg { border-radius: var(--wc-radius-lg); }
.wc-rounded-full { border-radius: var(--wc-radius-full); }

.wc-shadow-sm { box-shadow: var(--wc-shadow-sm); }
.wc-shadow-md { box-shadow: var(--wc-shadow-md); }
.wc-shadow-lg { box-shadow: var(--wc-shadow-lg); }

.wc-bg-white { background: var(--wc-white); }
.wc-bg-gray { background: var(--wc-gray-50); }
.wc-bg-primary { background: var(--wc-primary); color: white; }

.wc-w-full { width: 100%; }
.wc-hidden { display: none; }

/* ---------- Animations ---------- */
@keyframes dcFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes dcSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
.wc-animate-fade-up { animation: dcFadeUp 0.4s ease; }
.wc-animate-fade-in { animation: dcFadeIn 0.4s ease; }
.wc-animate-slide-in { animation: dcSlideIn 0.4s ease; }
