/**
 * ============================================================
 * WESLEY THEME - Clean / Neutral / Personal
 * ============================================================
 * Theme ID: wesley
 * Design: Neutral grays, warm accents, semi-transparent UI
 * ============================================================
 */

html[data-color="wesley"]{ --brand-h:30; }

/* ===== CORE COLOR SYSTEM ===== */
/* Dark Theme */
html[data-theme="dark"][data-color="wesley"]{
  --bg: #121215;
  --bg-primary: #121215;
  --bg-secondary: #1a1a1f;
  --bg-tertiary: #222228;
  --card: rgba(26, 26, 31, 0.75);
  --text: #f0f0f2;
  --text-primary: #f0f0f2;
  --text-secondary: #b8b8c0;
  --muted: #808088;
  --line: rgba(255, 255, 255, 0.1);
  --surface-2: rgba(26, 26, 31, 0.6);
  --surface-3: rgba(34, 34, 40, 0.6);
  --accent-primary: #e8a87c;
  --accent-secondary: #85c1e9;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: #e8a87c;
  --brand: #e8a87c;
  --brand-2: #edb892;
  --brand-3: #f2c8a8;
  --brand-4: #f7d8be;
}

/* Light Theme */
html[data-theme="light"][data-color="wesley"]{
  --bg: #f5f5f7;
  --bg-primary: #f5f5f7;
  --bg-secondary: #eaeaef;
  --bg-tertiary: #e0e0e8;
  --card: rgba(255, 255, 255, 0.75);
  --text: #1a1a1f;
  --text-primary: #1a1a1f;
  --text-secondary: #4a4a55;
  --muted: #6a6a75;
  --line: rgba(0, 0, 0, 0.08);
  --surface-2: rgba(234, 234, 239, 0.7);
  --surface-3: rgba(224, 224, 232, 0.7);
  --accent-primary: #d4956a;
  --accent-secondary: #5a9fd4;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-strong: #d4956a;
}

/* ===== BACKGROUND ===== */
html[data-color="wesley"] body {
  background: url('../backrounds/Wesley-backround.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

html[data-theme="dark"][data-color="wesley"] body {
  background: 
    linear-gradient(135deg, 
      rgba(18, 18, 21, 0.7) 0%, 
      rgba(26, 26, 31, 0.6) 50%,
      rgba(18, 18, 21, 0.7) 100%
    ),
    url('../backrounds/Wesley-backround.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

html[data-theme="light"][data-color="wesley"] body {
  background: 
    linear-gradient(135deg, 
      rgba(245, 245, 247, 0.7) 0%, 
      rgba(234, 234, 239, 0.6) 50%,
      rgba(245, 245, 247, 0.7) 100%
    ),
    url('../backrounds/Wesley-backround.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== CONTAINER - Semi-transparent ===== */
html[data-color="wesley"] .container {
  background: rgba(26, 26, 31, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"][data-color="wesley"] .container {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== CARDS - Glassmorphism ===== */
html[data-color="wesley"] .card {
  background: rgba(34, 34, 40, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 200ms ease;
}

html[data-color="wesley"] .card:hover {
  background: rgba(34, 34, 40, 0.65);
  border-color: rgba(232, 168, 124, 0.3);
  transform: translateY(-2px);
}

html[data-theme="light"][data-color="wesley"] .card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"][data-color="wesley"] .card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(212, 149, 106, 0.3);
}

/* ===== THEMED CARDS ===== */
html[data-color="wesley"] .themed-card::before {
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.9), rgba(237, 184, 146, 0.85));
}

html[data-color="wesley"] .themed-card {
  color: #1a1a1f;
  border: 1px solid rgba(232, 168, 124, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.2);
}

html[data-color="wesley"] .themed-card .label,
html[data-color="wesley"] .themed-card .muted,
html[data-color="wesley"] .themed-card #currentName,
html[data-color="wesley"] .themed-card #currentRoom,
html[data-color="wesley"] .themed-card #currentTimeRange,
html[data-color="wesley"] .themed-card #elapsedOut,
html[data-color="wesley"] .themed-card #leftOut,
html[data-color="wesley"] .themed-card #nextName,
html[data-color="wesley"] .themed-card #nextRoom,
html[data-color="wesley"] .themed-card #nextTimeRange,
html[data-color="wesley"] .themed-card #nextInOut,
html[data-color="wesley"] .themed-card #untilOut {
  color: rgba(26, 26, 31, 0.9) !important;
}

/* ===== PILLS ===== */
html[data-color="wesley"] .pill {
  background: rgba(34, 34, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8b8c0;
  border-radius: 8px;
}

html[data-theme="light"][data-color="wesley"] .pill {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4a4a55;
}

/* ===== PROGRESS BAR ===== */
html[data-color="wesley"] .progress {
  background: linear-gradient(90deg, #e8a87c, #edb892, #f2c8a8);
  border-radius: 4px;
}

html[data-color="wesley"] .progress-wrap {
  background: rgba(34, 34, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

/* ===== BUTTONS ===== */
html[data-color="wesley"] .btn {
  background: linear-gradient(135deg, #e8a87c, #d4956a);
  color: #1a1a1f;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(232, 168, 124, 0.3);
  transition: all 200ms ease;
}

html[data-color="wesley"] .btn:hover {
  background: linear-gradient(135deg, #edb892, #e8a87c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.4);
}

/* ===== ICON BUTTONS ===== */
html[data-color="wesley"] .icon-btn {
  border-radius: 10px;
  transition: all 200ms ease;
}

html[data-color="wesley"] .icon-btn:hover {
  background: rgba(232, 168, 124, 0.15);
  transform: translateY(-2px);
}

/* ===== STATUS BADGES ===== */
html[data-color="wesley"] .status--current {
  background: linear-gradient(135deg, #e8a87c, #d4956a);
  color: #1a1a1f;
  font-weight: 600;
  border-radius: 6px;
}

html[data-color="wesley"] .status--next {
  background: rgba(133, 193, 233, 0.15);
  color: #85c1e9;
  border: 1px solid rgba(133, 193, 233, 0.3);
  border-radius: 6px;
}

/* ===== CHIPS ===== */
html[data-color="wesley"] .chip {
  background: rgba(34, 34, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 200ms ease;
}

html[data-color="wesley"] .chip:hover {
  border-color: #e8a87c;
  color: #e8a87c;
}

html[data-color="wesley"] .chip[aria-pressed="true"] {
  background: rgba(232, 168, 124, 0.2);
  border-color: #e8a87c;
  color: #e8a87c;
}

html[data-theme="light"][data-color="wesley"] .chip {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== SCHEDULE TABLE ===== */
html[data-color="wesley"] .schedule th {
  border-bottom: 2px solid #e8a87c;
  color: #e8a87c;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(232, 168, 124, 0.1), transparent);
}

html[data-color="wesley"] .schedule tr.active {
  background: linear-gradient(90deg, rgba(232, 168, 124, 0.2), rgba(232, 168, 124, 0.05), transparent);
  border-left: 3px solid #e8a87c;
}

html[data-color="wesley"] .schedule td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-color="wesley"] .schedule tbody tr {
  background: rgba(26, 26, 31, 0.3);
  transition: all 200ms ease;
}

html[data-color="wesley"] .schedule tbody tr:hover {
  background: rgba(232, 168, 124, 0.08);
}

html[data-theme="light"][data-color="wesley"] .schedule th {
  color: #d4956a;
}

html[data-theme="light"][data-color="wesley"] .schedule td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* ===== DIALOGS/MODALS - Glassmorphism ===== */
html[data-color="wesley"] dialog {
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"][data-color="wesley"] dialog {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html[data-color="wesley"] dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

html[data-color="wesley"] .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-color="wesley"] .modal-header strong {
  color: #e8a87c;
}

/* ===== ONBOARDING ===== */
html[data-color="wesley"] .onboard-title {
  color: #e8a87c !important;
}

html[data-color="wesley"] .onboard-card {
  background: rgba(18, 18, 21, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"][data-color="wesley"] .onboard-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== INPUTS ===== */
html[data-color="wesley"] input,
html[data-color="wesley"] select,
html[data-color="wesley"] textarea {
  background: rgba(34, 34, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f2;
  border-radius: 8px;
  transition: all 200ms ease;
}

html[data-color="wesley"] input:focus,
html[data-color="wesley"] select:focus,
html[data-color="wesley"] textarea:focus {
  border-color: #e8a87c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.15);
}

html[data-theme="light"][data-color="wesley"] input,
html[data-theme="light"][data-color="wesley"] select,
html[data-theme="light"][data-color="wesley"] textarea {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a1f;
}

/* ===== TABS ===== */
html[data-color="wesley"] .tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-color="wesley"] .tab {
  color: #808088;
  transition: all 200ms ease;
}

html[data-color="wesley"] .tab:hover {
  color: #e8a87c;
}

html[data-color="wesley"] .tab[aria-selected="true"] {
  color: #e8a87c;
  border-bottom: 2px solid #e8a87c;
}

/* ===== CLOCK ===== */
html[data-theme="dark"][data-color="wesley"] #clockOut {
  color: #f0f0f2;
  text-shadow: 0 2px 20px rgba(232, 168, 124, 0.3);
}

html[data-theme="light"][data-color="wesley"] #clockOut {
  color: #1a1a1f;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== SCROLLBAR ===== */
html[data-color="wesley"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e8a87c, #d4956a);
  border-radius: 4px;
}

html[data-color="wesley"] ::-webkit-scrollbar-track {
  background: rgba(26, 26, 31, 0.5);
}

/* ===== KIOSK MODE ===== */
html[data-color="wesley"] .kiosk-modal-content {
  background: rgba(18, 18, 21, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

html[data-color="wesley"] .kiosk-modal-title {
  color: #e8a87c;
}

html[data-color="wesley"] .kiosk-key {
  background: rgba(34, 34, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f2;
  border-radius: 12px;
  transition: all 200ms ease;
}

html[data-color="wesley"] .kiosk-key:hover {
  background: linear-gradient(135deg, #e8a87c, #d4956a);
  color: #1a1a1f;
}

html[data-color="wesley"] .kiosk-pin-dot {
  background: rgba(232, 168, 124, 0.1);
  border: 2px solid rgba(232, 168, 124, 0.3);
  border-radius: 50%;
}

html[data-color="wesley"] .kiosk-pin-dot.filled {
  background: #e8a87c;
  border-color: #e8a87c;
}

/* ===== QUICK ACTIONS ===== */
html[data-color="wesley"] .quick-action {
  background: rgba(34, 34, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 200ms ease;
}

html[data-color="wesley"] .quick-action:hover {
  background: rgba(232, 168, 124, 0.1);
  border-color: #e8a87c;
  color: #e8a87c;
}

/* ===== DAY OVER MESSAGE ===== */
html[data-color="wesley"] .dayover-message {
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

/* ===== LINKS ===== */
html[data-color="wesley"] a {
  color: #85c1e9;
  transition: all 200ms ease;
}

html[data-color="wesley"] a:hover {
  color: #e8a87c;
}

/* ===== SELECTION ===== */
html[data-color="wesley"] ::selection {
  background: rgba(232, 168, 124, 0.4);
  color: #ffffff;
}

/* ===== MUTED TEXT ===== */
html[data-theme="dark"][data-color="wesley"] .label,
html[data-theme="dark"][data-color="wesley"] .muted,
html[data-theme="dark"][data-color="wesley"] #dateOut {
  color: #b8b8c0;
}

html[data-theme="light"][data-color="wesley"] .label,
html[data-theme="light"][data-color="wesley"] .muted,
html[data-theme="light"][data-color="wesley"] #dateOut {
  color: #6a6a75;
}

/* ===== HEADER ===== */
html[data-color="wesley"] header {
  background: rgba(18, 18, 21, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"][data-color="wesley"] header {
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
