/* ===================================================
   Venue Selector Console — Global Styles
   Microsoft Azure Portal / Fluent Design Layout
   Adapted from qq_with_openai, extended for venue-selector
   =================================================== */

/* ===================================================
   1. RESET & BASE
   =================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

[v-cloak] { display: none !important; }
#app { width: 100%; height: 100%; }

/* ===================================================
   2. CUSTOM SCROLLBAR (thin, Azure style)
   =================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }

/* Firefox thin scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

/* ===================================================
   3. TOP HEADER BAR (Azure blue strip, 58px)
   =================================================== */
.az-header {
  height: var(--header-height);
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}

.az-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger toggle */
.az-header__hamburger {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: #fff;
  transition: background .15s;
}
.az-header__hamburger:hover { background: rgba(255,255,255,.15); }
.az-header__hamburger:active { background: rgba(255,255,255,.25); }
.az-header__hamburger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Brand text */
.az-header__brand {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -.2px;
  user-select: none;
}

.az-header__brand-sub {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,.7);
  font-weight: 400;
  margin-left: 8px;
}

/* Right section */
.az-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.az-header__right > .az-header__user,
.az-header__right > .az-header__logout {
  transform: translateY(1px);
}

/* User name */
.az-header__user {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
}

/* Venue icon in header status */
.az-header__venue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.az-header__venue-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

/* Connection status badge */
.az-header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(var(--font-size-sm) + 1px);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.az-header__status--ok {
  color: #ffffff;
  background: rgba(255,255,255,.12);
}
.az-header__status--err {
  color: #ffffff;
  background: none;
}
.az-header__status--loading {
  color: #ffffff;
  background: rgba(255,255,255,.08);
}

/* Status dot */
.az-header__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.az-header__dot--ok {
  background: #92c353;
  animation: az-breathing-light 2s ease-in-out infinite;
}
.az-header__dot--err {
  background: var(--color-text-tertiary);
  animation: az-breathing-light 2s ease-in-out infinite;
  transform: translateY(1px);
}
.az-header__dot--loading {
  background: rgba(255,255,255,.5);
  animation: az-pulse 1.5s ease-in-out infinite;
}

/* Logout button */
.az-header__logout {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: #fff;
  margin-left: 8px;
  transition: background .15s;
}
.az-header__logout:hover {
  background: rgba(255,255,255,.15);
}
.az-header__logout:active {
  background: rgba(255,255,255,.25);
}
.az-header__logout svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

/* User avatar in header */
.az-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.az-header__avatar:hover {
  background: rgba(255,255,255,.3);
}

/* ===================================================
   4. APP BODY (sidebar + content wrapper)
   =================================================== */
.az-body {
  display: flex;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/* ===================================================
   5. SIDEBAR (240px, collapsible)
   =================================================== */
.az-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .25s cubic-bezier(.4,0,.2,1),
              min-width .25s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}

.az-sidebar--collapsed {
  width: 48px;
  min-width: 48px;
}

/* Sidebar sections */
.az-sidebar__section {
  padding: 14px 0 6px 0;
}

.az-sidebar__section-title {
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sidebar-section-color);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s, height .2s;
}

.az-sidebar--collapsed .az-sidebar__section-title {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

/* Sidebar divider */
.az-sidebar__divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 16px;
}

.az-sidebar--collapsed .az-sidebar__divider {
  margin: 8px 6px;
}

/* Nav items */
.az-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  color: var(--sidebar-item-color);
  font-size: var(--font-size-sm);
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  position: relative;
}

.az-nav-item:hover {
  background: var(--sidebar-hover);
}

.az-nav-item--active {
  background: var(--sidebar-active-bg);
  border-left-color: var(--sidebar-active-bar);
  font-weight: 600;
  color: var(--azure-blue);
}

.az-nav-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-nav-item__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.az-nav-item__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav badge (e.g. count indicators) */
.az-nav-item__badge {
  margin-left: auto;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.az-sidebar--collapsed .az-nav-item__label {
  display: none;
}

.az-sidebar--collapsed .az-nav-item__badge {
  display: none;
}

.az-sidebar--collapsed .az-nav-item {
  padding: 0;
  justify-content: center;
}

/* ===================================================
   6. MAIN CONTENT AREA
   =================================================== */
.az-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

/* ---- Toolbar / Breadcrumb bar ---- */
.az-toolbar {
  height: 44px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.az-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.az-breadcrumb__home {
  color: var(--azure-blue);
  cursor: pointer;
  font-weight: 500;
}
.az-breadcrumb__home:hover { text-decoration: underline; }

.az-breadcrumb__sep {
  color: var(--color-text-tertiary);
  font-size: 10px;
}

.az-breadcrumb__current {
  color: var(--color-text-primary);
  font-weight: 600;
}

.az-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Page scroll area ---- */
.az-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ---- Page title ---- */
.az-page-title {
  font-size: var(--font-size-xxl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.az-page-title__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-page-title__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--azure-blue);
}

.az-page-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: -12px 0 20px 0;
  line-height: 1.6;
}

/* ===================================================
   7. FLUENT CARD
   =================================================== */
.az-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-4);
  margin-bottom: 16px;
  transition: box-shadow .2s;
}

.az-card:hover {
  box-shadow: var(--shadow-8);
}

.az-card__header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.az-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.az-card__subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.az-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.az-card__body {
  padding: 20px;
}

.az-card__body--flush {
  padding: 0;
}

.az-card__body--compact {
  padding: 12px 20px;
}

.az-card__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ===================================================
   8. METRIC TILES (Dashboard style)
   =================================================== */
.az-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.az-metric {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-4);
  transition: box-shadow .2s, border-color .2s;
}

.az-metric:hover {
  box-shadow: var(--shadow-8);
  border-color: var(--color-border-strong);
}

.az-metric__label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.az-metric__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-family-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.az-metric__value--success { color: var(--color-success); }
.az-metric__value--danger  { color: var(--color-danger); }
.az-metric__value--warning { color: var(--color-warning); }
.az-metric__value--info    { color: var(--color-info); }

.az-metric__sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.az-metric__trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
}
.az-metric__trend--up { color: var(--color-success); }
.az-metric__trend--down { color: var(--color-danger); }

/* ===================================================
   9. STATUS BANNERS (connection / alert banners)
   =================================================== */
.az-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  margin-bottom: 16px;
  border: 1px solid;
  animation: az-fadeSlideIn .3s ease;
}

.az-status-banner--ok {
  background: var(--color-success-bg);
  border-color: #a7e3a5;
  color: #0b5a08;
}

.az-status-banner--err {
  background: var(--color-danger-bg);
  border-color: #f0aaaa;
  color: #943030;
}

.az-status-banner--warn {
  background: var(--color-warning-bg);
  border-color: #e6d06c;
  color: #5c5800;
}

.az-status-banner--info {
  background: var(--color-info-bg);
  border-color: #a0c8ef;
  color: var(--azure-blue-active);
}

.az-status-banner__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.az-status-banner__icon svg {
  width: 20px;
  height: 20px;
}

.az-status-banner__text  { flex: 1; }
.az-status-banner__title { font-weight: 600; font-size: var(--font-size-lg); }
.az-status-banner__desc  { font-size: 11px; margin-top: 3px; opacity: .8; }

.az-status-banner__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  opacity: .6;
  transition: opacity .15s, background .15s;
}
.az-status-banner__close:hover {
  opacity: 1;
  background: rgba(0,0,0,.06);
}

/* ===================================================
   10. TERMINAL / LOG VIEWER
   =================================================== */
.az-terminal {
  height: 440px;
  overflow-y: auto;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.az-terminal--full {
  height: 100%;
  border-top: 1px solid var(--terminal-border);
  border-radius: var(--radius-md);
}

.az-terminal::-webkit-scrollbar-track { background: var(--terminal-bg); }
.az-terminal::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 3px; }

/* Selection readability */
.az-terminal ::selection {
  background: var(--azure-blue);
  color: #fff;
}
.az-terminal ::-moz-selection {
  background: var(--azure-blue);
  color: #fff;
}

.az-terminal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--terminal-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-family: var(--font-family);
}

.az-terminal__toolbar-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.az-terminal__empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-tertiary);
}

.az-terminal__row {
  padding: 6px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--terminal-text);
  border-bottom: 1px solid var(--terminal-border);
  transition: background .15s;
}
.az-terminal__row:nth-child(even)  { background: var(--terminal-stripe); }
.az-terminal__row:hover            { background: var(--azure-blue-lighter); }
.az-terminal__row--friend-ok       { border-left: 3px solid var(--color-success); }
.az-terminal__row--friend-fail     { border-left: 3px solid var(--color-danger); }
.az-terminal__row--warn            { border-left: 3px solid var(--color-warning); }

.az-terminal__time {
  color: var(--color-text-tertiary);
  min-width: 152px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: var(--font-size-xs);
}
.az-terminal__role {
  font-weight: 600;
  min-width: 42px;
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  color: var(--azure-blue);
}
.az-terminal__msg {
  color: var(--terminal-text);
  word-break: break-all;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ===================================================
   11. FORM STYLES (Azure dialog / blade style)
   =================================================== */
.az-form { max-width: 780px; }

.az-form .el-form-item { margin-bottom: 20px; }

.az-form .el-form-item__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  font-weight: 600;
}

.az-form .el-input__wrapper,
.az-form .el-textarea__inner {
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  transition: border-color .15s;
}
.az-form .el-input__wrapper:hover,
.az-form .el-textarea__inner:hover {
  border-color: var(--color-text-tertiary);
}
.az-form .el-input__wrapper.is-focus,
.az-form .el-textarea__inner:focus {
  border-color: var(--azure-blue) !important;
  border-width: 2px;
}

.az-form .el-input__inner,
.az-form .el-textarea__inner {
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
}

.az-form .el-input-number,
.az-form .el-input-number--small {
  width: 130px !important;
  height: 32px !important;
}
.az-form .el-input-number .el-input__wrapper {
  border: 1px solid var(--color-border-strong) !important;
  box-shadow: none !important;
  border-radius: var(--radius-sm) !important;
  height: 32px !important;
}
.az-form .el-input-number .el-input__inner {
  height: 30px !important;
  line-height: 30px !important;
}

/* ---- Select ---- */
.az-form .el-select .el-input__wrapper {
  border-radius: var(--radius-sm) !important;
}

/* ---- Switch (Azure toggle) ---- */
.el-switch { height: 20px; }
.el-switch__core {
  border-radius: 10px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-text-disabled);
}
.el-switch.is-checked .el-switch__core {
  background: var(--azure-blue);
  border-color: var(--azure-blue);
}

/* ---- Helper text (inline on right) ---- */
.az-helper {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-left: 12px;
  line-height: 32px;
  white-space: nowrap;
}

/* Make form-item content flex for inline helpers */
.az-form .el-form-item__content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

/* ---- Inline form row (Label | Control | Tips) ---- */
.az-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
}
.az-form-inline .az-form-inline__item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 340px;
}
.az-form-inline__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 140px;
  flex-shrink: 0;
}
.az-form-inline__control {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ---- Divider ---- */
.az-section-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  padding-bottom: 8px;
  margin: 28px 0 16px;
  border-bottom: 1px solid var(--color-border);
}

/* ---- Code inline ---- */
.az-code {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  font-family: var(--font-family-mono);
}

/* ---- Form item block variant (slider etc.) ---- */
.az-form-item--block .el-form-item__content {
  flex-wrap: wrap !important;
}
.az-form-item--block .az-helper {
  margin-left: 0;
  margin-top: 4px;
  display: block;
  width: 100%;
  line-height: 1.4;
}

/* Allow vertical content in form items containing id-list editors */
.az-form .el-form-item__content:has(.az-id-list-editor) {
  flex-wrap: wrap;
}

/* ===================================================
   12. BUTTON OVERRIDES (Element Plus)
   =================================================== */
.el-button {
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  font-weight: 600;
  padding: 5px 16px;
  height: 32px;
  transition: background .12s, border-color .12s, color .12s;
}

.el-button--primary {
  background: var(--azure-blue);
  border-color: var(--azure-blue);
  color: #fff;
}
.el-button--primary:hover {
  background: var(--azure-blue-hover);
  border-color: var(--azure-blue-hover);
}
.el-button--primary:active {
  background: var(--azure-blue-active);
  border-color: var(--azure-blue-active);
}

.el-button--default {
  background: #fff;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-primary);
}
.el-button--default:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-tertiary);
  color: var(--azure-blue);
}

.el-button--success {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}
.el-button--success:hover {
  background: #0e6e0e;
  border-color: #0e6e0e;
}

.el-button--danger {
  background: #fff;
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}
.el-button--danger:hover {
  background: var(--color-danger);
  color: #fff;
}

.el-button--danger.el-button--text,
.el-button--danger.is-text {
  background: transparent;
  color: var(--color-danger);
  border: none;
}
.el-button--danger.el-button--text:hover,
.el-button--danger.el-button--text:focus,
.el-button--danger.is-text:hover,
.el-button--danger.is-text:focus {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: none;
}

.el-button--warning {
  background: #fff;
  border: 1px solid #c19c00;
  color: #797600;
}
.el-button--warning:hover {
  background: var(--color-warning-bg);
  border-color: #c19c00;
  color: #5c5800;
}

.el-button.is-loading { opacity: .65; }
.el-button:focus, .el-button:hover {
  box-shadow: none !important;
}
.el-button--primary,
.el-button--success,
.el-button--warning,
.el-button--danger {
  background-image: none !important;
}

/* Small buttons */
.el-button--small {
  height: 28px;
  padding: 3px 12px;
  font-size: var(--font-size-sm);
}

/* Icon-only buttons */
.el-button.is-circle {
  width: 32px;
  height: 32px;
  padding: 0;
}

/* ===================================================
   13. TABLE OVERRIDES (Element Plus)
   =================================================== */
.el-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.el-table th.el-table__cell {
  background: var(--color-bg-alt);
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
}
.el-table td.el-table__cell {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}
.el-table__body tr:hover > td {
  background: var(--azure-blue-lighter) !important;
}

/* ---- Tag ---- */
.el-tag {
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
}
.el-tag--primary {
  background: var(--azure-blue-light);
  border-color: #a0c8ef;
  color: var(--azure-blue);
}
.el-tag--warning {
  background: var(--color-warning-bg);
  border-color: #e6d06c;
  color: #5c5800;
}
.el-tag--success {
  background: var(--color-success-bg);
  border-color: #a7e3a5;
  color: var(--color-success);
}
.el-tag--danger {
  background: var(--color-danger-bg);
  border-color: #f0aaaa;
  color: var(--color-danger);
}

/* ---- Card override ---- */
.el-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-4) !important;
}
.el-card__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

/* ---- Descriptions ---- */
.el-descriptions { border: 1px solid var(--color-border); }
.el-descriptions__label {
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}
.el-descriptions__content {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}
.el-descriptions--border .el-descriptions__cell {
  border-color: var(--color-border);
  padding: 10px 16px;
}

/* ---- Alert override ---- */
.el-alert { border-radius: var(--radius-md); }

/* ---- Message ---- */
.el-message {
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-8);
}

/* ---- Dialog override ---- */
.el-dialog {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-16);
}
.el-dialog__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.el-dialog__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}
.el-dialog__body {
  padding: 20px;
}
.el-dialog__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
}

/* ---- Pagination override ---- */
.el-pagination {
  font-size: var(--font-size-sm);
}
.el-pagination .el-pager li.is-active {
  background: var(--azure-blue);
  color: #fff;
  border-radius: var(--radius-sm);
}

/* ===================================================
   14. SUB-TABS
   =================================================== */
.az-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 20px;
}

.az-subtab {
  padding: 8px 20px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  user-select: none;
}
.az-subtab:hover { color: var(--color-text-primary); }
.az-subtab--active {
  color: var(--azure-blue);
  border-bottom-color: var(--azure-blue);
}

.az-subtab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 0 5px;
  margin-left: 6px;
}
.az-subtab--active .az-subtab__badge {
  background: var(--azure-blue-light);
  color: var(--azure-blue);
}

/* ===================================================
   15. LOGIN PAGE
   =================================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  position: relative;
}

.login-page::before {
  display: none;
}

.login-card {
  width: 380px;
  max-width: 90vw;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-16);
  padding: 40px 32px 32px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.login-card__bar {
  height: 4px;
  background: var(--azure-blue);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.login-card__header {
  text-align: center;
  margin-bottom: 28px;
}

.login-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.login-card__logo svg {
  width: 48px;
  height: 48px;
  fill: var(--azure-blue);
}

.login-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.login-card__subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.login-card__form {
  margin-bottom: 12px;
}

.login-card__form .el-form-item {
  margin-bottom: 18px;
}

/* ── Saved accounts list ── */
.login-card__saved {
  margin-bottom: 12px;
}

.login-card__saved-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.login-card__saved-item:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}

.login-card__footer {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: 20px;
}

/* ===================================================
   16. SKELETON LOADER
   =================================================== */
.az-skeleton {
  padding: 24px;
}

.az-skeleton__block {
  background: linear-gradient(
    90deg,
    var(--color-border) 25%,
    var(--color-bg-alt) 50%,
    var(--color-border) 75%
  );
  background-size: 200% 100%;
  animation: az-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
  height: 14px;
  margin-bottom: 14px;
}

.az-skeleton__block--title {
  width: 40%;
  height: 20px;
  margin-bottom: 20px;
}

.az-skeleton__block--short {
  width: 60%;
}

.az-skeleton__block--medium {
  width: 80%;
}

.az-skeleton__block--circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.az-skeleton__row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.az-skeleton__row .az-skeleton__block {
  flex: 1;
  margin-bottom: 0;
}

/* ===================================================
   17. LOADING SPINNER
   =================================================== */
.az-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.az-spinner::after {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-border);
  border-top-color: var(--azure-blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.az-spinner--small { padding: 20px 0; }
.az-spinner--small::after { width: 18px; height: 18px; border-width: 2px; }

.az-spinner--inline {
  display: inline-flex;
  padding: 0;
  margin-left: 8px;
  vertical-align: middle;
}
.az-spinner--inline::after { width: 14px; height: 14px; border-width: 2px; }

/* ===================================================
   18. SAVE BAR (bottom)
   =================================================== */
.az-save-bar {
  height: 48px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  gap: 10px;
  flex-shrink: 0;
}

/* ===================================================
   19. ADD-ROW (for lists)
   =================================================== */
.az-add-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.az-add-row .el-input { flex: 1; }

/* ---- Connection test ---- */
.az-test-result {
  margin-top: 8px;
  font-size: var(--font-size-xs);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: none;
}
.az-test-result.show { display: block; animation: az-fadeSlideIn .25s ease; }
.az-test-result.success { background: var(--color-success-bg); color: var(--color-success); }
.az-test-result.error { background: var(--color-danger-bg); color: var(--color-danger); }

/* ---- Slider helper ---- */
.az-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.az-slider-row .el-slider { flex: 1; margin: 0; }

/* ---- ID List Editor ---- */
.az-id-list-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.az-id-list-editor__input {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 360px;
}
.az-id-list-editor__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  align-items: center;
}

/* ===================================================
   20. FRIEND MANAGER TABLE & PAGINATION
   =================================================== */
.az-friend-table-wrap {
  overflow-x: auto;
}

.az-friend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.az-friend-table thead {
  background: var(--color-bg-alt);
  position: sticky;
  top: 0;
  z-index: 1;
}
.az-friend-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.az-friend-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.az-friend-table tbody tr:hover {
  background: var(--color-bg-alt);
}
.az-friend-table__idx {
  color: var(--color-text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* Task attempt count badge */
.task-attempt-badge {
  display: inline-block;
  min-width: 24px;
  padding: 1px 8px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border-radius: 10px;
  text-align: center;
}

.az-friend-table__qq {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-xs);
  color: var(--azure-blue);
}
.az-friend-pagination {
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--color-border);
}

/* ===================================================
   21. VENUE-SPECIFIC: VENUE GRID (2 x 4 card grid)
   =================================================== */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 24px;
}

.venue-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.venue-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ===================================================
   22. VENUE CARD
   =================================================== */
.venue-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-4);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.venue-card:hover {
  box-shadow: var(--shadow-8);
  border-color: var(--azure-blue-light);
  transform: translateY(-2px);
}

.venue-card--selected {
  border-color: var(--azure-blue);
  box-shadow: 0 0 0 2px var(--azure-blue-light), var(--shadow-8);
}

.venue-card--disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.venue-card__image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--color-bg-alt);
  display: block;
}

.venue-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-disabled);
  font-size: 36px;
}

.venue-card__body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.venue-card__name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-card__location {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.venue-card__location svg {
  width: 12px;
  height: 12px;
  fill: var(--color-text-tertiary);
  flex-shrink: 0;
}

.venue-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.venue-card__tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--azure-blue-lighter);
  color: var(--azure-blue);
  font-weight: 500;
}

.venue-card__tag--sport {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.venue-card__footer {
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
}

.venue-card__price {
  font-weight: 600;
  color: var(--color-danger);
  font-size: var(--font-size-sm);
}

.venue-card__price span {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text-tertiary);
}

.venue-card__availability {
  display: flex;
  align-items: center;
  gap: 4px;
}

.venue-card__avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.venue-card__avail-dot--open { background: var(--color-success); }
.venue-card__avail-dot--closed { background: var(--color-danger); }
.venue-card__avail-dot--limited { background: var(--color-warning); }

/* ===================================================
   23. SCHEDULE TABLE
   =================================================== */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  table-layout: fixed;
}

.schedule-table thead {
  background: var(--color-bg-alt);
  position: sticky;
  top: 0;
  z-index: 2;
}

.schedule-table th {
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.schedule-table th:first-child {
  width: 100px;
  text-align: left;
  padding-left: 14px;
}

.schedule-table td {
  border: 1px solid var(--color-border);
  padding: 0;
  text-align: center;
  vertical-align: middle;
  height: 42px;
}

.schedule-table td:first-child {
  text-align: left;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: var(--font-size-xs);
  background: var(--color-bg-alt);
}

.schedule-table tbody tr:hover td {
  background: var(--azure-blue-lighter);
}
.schedule-table tbody tr:hover td:first-child {
  background: var(--color-bg-alt);
}

/* ===================================================
   24. SCHEDULE CELL (status colors)
   =================================================== */
.schedule-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-size-xs);
  font-weight: 500;
  transition: background .15s, color .15s, box-shadow .15s;
  user-select: none;
  position: relative;
  padding: 4px 2px;
}

/* Available (green) */
.schedule-cell--available {
  background: var(--color-success-bg);
  color: var(--color-success);
}
.schedule-cell--available:hover {
  background: #c8eec6;
  box-shadow: inset 0 0 0 2px var(--color-success);
}

/* Booked / occupied (gray) */
.schedule-cell--booked {
  background: var(--color-bg);
  color: var(--color-text-tertiary);
  cursor: context-menu;
}
.schedule-cell--booked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--color-text-disabled);
}

/* Closed (red) */
.schedule-cell--closed {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  cursor: not-allowed;
}
.schedule-cell--closed::before {
  content: "\00D7";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

/* Advance booking (blue) */
.schedule-cell--advance {
  background: var(--color-info-bg);
  color: var(--azure-blue);
  cursor: context-menu;
}
.schedule-cell--advance:hover {
  background: #c7e0f4;
  box-shadow: inset 0 0 0 2px var(--azure-blue);
}

/* Selected state */
.schedule-cell--selected {
  background: var(--azure-blue) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 2px var(--azure-blue-active);
}

/* My booking */
.schedule-cell--mine {
  background: var(--azure-blue-light);
  color: var(--azure-blue);
  font-weight: 600;
  border-left: 3px solid var(--azure-blue);
}

/* Pending confirmation */
.schedule-cell--pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  animation: az-pulse 2s ease-in-out infinite;
}

/* Schedule cell label */
.schedule-cell__label {
  font-size: 10px;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Right-click context menu ── */
.schedule-ctx-menu {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12), 0 2px 4px rgba(0, 0, 0, .06);
  padding: 4px 0;
  font-size: 13px;
  user-select: none;
  animation: ctx-fade-in .12s ease-out;
}

@keyframes ctx-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.schedule-ctx-menu__header {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-ctx-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--color-text);
  transition: background .1s, color .1s;
  white-space: nowrap;
}

.schedule-ctx-menu__item:hover {
  background: var(--color-bg-hover);
  color: var(--azure-blue);
}

.schedule-ctx-menu__item--disabled {
  color: var(--color-text-disabled) !important;
  cursor: not-allowed;
}

.schedule-ctx-menu__item--disabled:hover {
  background: transparent;
  color: var(--color-text-disabled) !important;
}

.schedule-ctx-menu__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.schedule-ctx-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
}

/* Schedule legend */
.schedule-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.schedule-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-legend__color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

.schedule-legend__color--available { background: var(--color-success-bg); }
.schedule-legend__color--booked   { background: var(--color-bg); }
.schedule-legend__color--closed   { background: var(--color-danger-bg); }
.schedule-legend__color--advance  { background: var(--color-info-bg); }
.schedule-legend__color--selected { background: var(--azure-blue); border-color: var(--azure-blue); }
.schedule-legend__color--mine     { background: var(--azure-blue-light); border-color: var(--azure-blue); }

/* ===================================================
   25. TASK DRAG HANDLE (Sortable.js)
   =================================================== */
.task-drag-handle {
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-text-disabled);
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.task-drag-handle:hover {
  color: var(--color-text-secondary);
  background: var(--color-bg);
}

.task-drag-handle:active {
  cursor: grabbing;
  color: var(--azure-blue);
  background: var(--azure-blue-lighter);
}

.task-drag-handle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Sortable ghost / chosen states */
.sortable-ghost {
  opacity: .4;
  background: var(--azure-blue-lighter) !important;
  border: 1px dashed var(--azure-blue) !important;
}

.sortable-chosen {
  box-shadow: var(--shadow-8);
}

.sortable-drag {
  box-shadow: var(--shadow-16);
  border-radius: var(--radius-md);
  opacity: .9;
}

/* Task list item */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  transition: background .12s;
}

.task-item:hover {
  background: var(--color-bg-alt);
}

.task-item__priority {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}
.task-item__priority--high   { background: var(--color-danger); }
.task-item__priority--medium { background: var(--color-warning); }
.task-item__priority--low    { background: var(--color-success); }

.task-item__content {
  flex: 1;
  min-width: 0;
}

.task-item__title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-item__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* ===================================================
   26. VENUE DETAIL PAGE
   =================================================== */
.venue-detail__hero {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.venue-detail__image {
  width: 360px;
  height: 240px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.venue-detail__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-detail__name {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.venue-detail__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.venue-detail__attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.venue-detail__attr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.venue-detail__attr-label {
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ===================================================
   27. BOOKING SUMMARY PANEL
   =================================================== */
.booking-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-4);
  padding: 20px;
  position: sticky;
  top: 24px;
}

.booking-summary__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: var(--font-size-sm);
}

.booking-summary__label {
  color: var(--color-text-secondary);
}

.booking-summary__value {
  font-weight: 600;
  color: var(--color-text-primary);
}

.booking-summary__total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-summary__total-label {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.booking-summary__total-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-danger);
  font-family: var(--font-family-mono);
}

/* ===================================================
   28. EMPTY STATE
   =================================================== */
.az-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--color-text-tertiary);
}

.az-empty__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: .4;
}

.az-empty__icon svg {
  width: 64px;
  height: 64px;
  fill: var(--color-text-disabled);
}

.az-empty__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.az-empty__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  text-align: center;
  max-width: 360px;
  line-height: 1.6;
}

/* ===================================================
   29. DATE PICKER ROW
   =================================================== */
.az-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.az-date-row__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.az-date-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.az-date-nav__btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background .12s, border-color .12s, color .12s;
}
.az-date-nav__btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--azure-blue);
  color: var(--azure-blue);
}

.az-date-nav__current {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 0 12px;
  min-width: 120px;
  text-align: center;
}

/* ===================================================
   30. WEEK VIEW HEADER
   =================================================== */
.week-header {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 0;
}

.week-header__day {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.week-header__day--today {
  color: var(--azure-blue);
  background: var(--azure-blue-lighter);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.week-header__day-name {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.week-header__day-number {
  display: block;
  font-size: var(--font-size-lg);
  margin-top: 2px;
}

/* ===================================================
   31. NOTIFICATION DOT
   =================================================== */
.az-notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  border-radius: 50%;
  border: 2px solid var(--color-surface);
}

/* ===================================================
   32. ANIMATIONS
   =================================================== */
@keyframes az-breathing-light {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

@keyframes az-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

@keyframes az-fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes az-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes az-scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes az-slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes az-slideRight {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes az-bounceIn {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===================================================
   33. TRANSITIONS (Vue)
   =================================================== */
.az-fade-enter-active,
.az-fade-leave-active {
  transition: opacity .2s ease, transform .2s ease;
}
.az-fade-enter-from {
  opacity: 0;
  transform: translateY(8px);
}
.az-fade-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

/* Slide transition */
.az-slide-enter-active,
.az-slide-leave-active {
  transition: opacity .25s ease, transform .25s ease;
}
.az-slide-enter-from {
  opacity: 0;
  transform: translateX(-12px);
}
.az-slide-leave-to {
  opacity: 0;
  transform: translateX(12px);
}

/* Scale transition */
.az-scale-enter-active,
.az-scale-leave-active {
  transition: opacity .2s ease, transform .2s ease;
}
.az-scale-enter-from {
  opacity: 0;
  transform: scale(.95);
}
.az-scale-leave-to {
  opacity: 0;
  transform: scale(.95);
}

/* List transition (staggered) */
.az-list-enter-active {
  transition: opacity .3s ease, transform .3s ease;
}
.az-list-leave-active {
  transition: opacity .2s ease, transform .2s ease;
  position: absolute;
}
.az-list-enter-from {
  opacity: 0;
  transform: translateY(12px);
}
.az-list-leave-to {
  opacity: 0;
  transform: translateY(-12px);
}
.az-list-move {
  transition: transform .3s ease;
}

/* ===================================================
   34. UTILITIES
   =================================================== */
.az-text-success { color: var(--color-success) !important; }
.az-text-danger  { color: var(--color-danger) !important; }
.az-text-warning { color: var(--color-warning) !important; }
.az-text-info    { color: var(--color-info) !important; }
.az-text-muted   { color: var(--color-text-tertiary) !important; }
.az-text-mono    { font-family: var(--font-family-mono) !important; }

.az-bg-success { background: var(--color-success-bg) !important; }
.az-bg-danger  { background: var(--color-danger-bg) !important; }
.az-bg-warning { background: var(--color-warning-bg) !important; }
.az-bg-info    { background: var(--color-info-bg) !important; }

.az-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.az-flex { display: flex; }
.az-flex--center { align-items: center; justify-content: center; }
.az-flex--between { justify-content: space-between; }
.az-gap-sm { gap: 8px; }
.az-gap-md { gap: 16px; }

.az-mt-sm { margin-top: 8px; }
.az-mt-md { margin-top: 16px; }
.az-mt-lg { margin-top: 24px; }
.az-mb-sm { margin-bottom: 8px; }
.az-mb-md { margin-bottom: 16px; }
.az-mb-lg { margin-bottom: 24px; }

/* ===================================================
   35. RESPONSIVE (max-width 768px)
   =================================================== */
@media (max-width: 768px) {
  /* Sidebar hidden on mobile */
  .az-sidebar {
    display: none;
  }

  /* Tighter page padding */
  .az-page {
    padding: 16px;
  }

  .az-toolbar {
    padding: 0 16px;
  }

  /* Metrics stack to single column */
  .az-metrics {
    grid-template-columns: 1fr;
  }

  /* Venue grid: 1 column on mobile */
  .venue-grid {
    grid-template-columns: 1fr;
  }

  .venue-grid--3col {
    grid-template-columns: 1fr;
  }

  .venue-grid--2col {
    grid-template-columns: 1fr;
  }

  /* Venue detail hero stacks */
  .venue-detail__hero {
    flex-direction: column;
  }

  .venue-detail__image {
    width: 100%;
    height: 200px;
  }

  /* Schedule table horizontal scroll */
  .schedule-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .schedule-table {
    min-width: 600px;
  }

  /* Header adjustments */
  .az-header__brand {
    font-size: var(--font-size-lg);
  }

  .az-header__brand-sub {
    display: none;
  }

  .az-header__status {
    font-size: var(--font-size-xs);
    padding: 3px 8px;
  }

  /* Login card */
  .login-card {
    width: 100%;
    max-width: 90vw;
    padding: 32px 24px 24px;
  }

  /* Page title */
  .az-page-title {
    font-size: var(--font-size-xl);
  }

  /* Forms */
  .az-form {
    max-width: 100%;
  }

  .az-form-inline {
    flex-direction: column;
    gap: 12px;
  }

  .az-form-inline .az-form-inline__item {
    min-width: auto;
    flex-wrap: wrap;
  }

  /* Card padding reduction */
  .az-card__body {
    padding: 14px;
  }

  .az-card__header {
    padding: 12px 14px 10px;
  }

  /* Date row stacks */
  .az-date-row {
    flex-wrap: wrap;
  }

  /* Booking summary unfixed */
  .booking-summary {
    position: static;
  }

  /* Subtabs scroll */
  .az-subtabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .az-subtab {
    flex-shrink: 0;
    padding: 8px 14px;
  }

  /* Breadcrumb font */
  .az-breadcrumb {
    font-size: var(--font-size-xs);
  }

  /* Save bar */
  .az-save-bar {
    padding: 0 16px;
  }
}

/* Medium breakpoint */
@media (max-width: 1024px) {
  .venue-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================
   36. PRINT STYLES
   =================================================== */
@media print {
  .az-header,
  .az-sidebar,
  .az-toolbar,
  .az-save-bar {
    display: none !important;
  }

  .az-body {
    height: auto;
    overflow: visible;
  }

  .az-content {
    overflow: visible;
  }

  .az-page {
    overflow: visible;
    padding: 0;
  }

  .az-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .schedule-cell--available { background: #eee !important; }
  .schedule-cell--booked { background: #ddd !important; }
  .schedule-cell--closed { background: #fdd !important; }
}
