:root {
  /* Brand Colors from Landing */
  --brand-aqua: #4ed4c8;
  --brand-aqua-light: #7ae0d4;
  --brand-aqua-soft: rgba(78, 212, 200, 0.1);
  --brand-aqua-dark: #3bb8a8;
  --brand-aqua-darker: #2a8f82;
  --brand-teal: #1c9bb3;
  --brand-navy: #0c2236;

  /* Glass Morphism */
  --glass-bg: rgba(12, 34, 54, 0.35);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.55);

  /* Transitions */
  --transition: cubic-bezier(0.33, 1, 0.68, 1);

  /* BackOffice Specific */
  --surface: #ffffff;
  --surface-muted: #f8fafb;
  --surface-glass: rgba(255, 255, 255, 0.95);
  --border: rgba(78, 212, 200, 0.15);
  --border-strong: rgba(78, 212, 200, 0.3);
  --text-primary: #0c2236;
  --text-secondary: rgba(12, 34, 54, 0.7);
  --text-muted: rgba(12, 34, 54, 0.5);
  --danger: #dc2626;
  --success: #10b981;
  --warning: #f59e0b;

  /* Layout */
  --sidebar-width: 64px;
  --sidebar-width-mobile: 48px;
  --footer-height: 48px;
  --panel-width: 380px;

  /* Typography */
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
  color: var(--text-primary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

a {
  color: var(--brand-aqua);
  text-decoration: none;
  transition: color 0.2s var(--transition);
}

a:hover {
  color: var(--brand-aqua-dark);
}

button {
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

button:active {
  outline: none;
}

#root {
  min-height: 100vh;
}

/* App Shell Layout */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr var(--footer-height);
  height: 100vh;
  background: transparent;
  color: var(--text-primary);
  overflow: hidden;
}

/* Sidebar Navigation */
.app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--brand-navy) 0%, #0a1929 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: visible;
}

/* Logo Area */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.sidebar-logo img {
  width: 36px;
  height: 36px;
}

.sidebar-logo span {
  display: none;
}

/* Navigation */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.sidebar-section--utilities {
  margin-top: auto;
}

.nav-icon-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s var(--transition);
}

.nav-icon-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(78, 212, 200, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.nav-icon-button:hover {
  background: rgba(78, 212, 200, 0.1);
  color: #ffffff;
}

.nav-icon-button:hover::before {
  transform: translateX(100%);
}

.nav-icon-button.is-active {
  background: linear-gradient(135deg, var(--brand-aqua) 0%, var(--brand-aqua-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(78, 212, 200, 0.4);
}

.nav-icon-symbol {
  font-size: 20px;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Main Viewport */
.main-viewport {
  grid-column: 2;
  grid-row: 1;
  margin: 10px 10px var(--footer-height) 20px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  height: calc(100vh - var(--footer-height) - 10px);
}

.main-scroll-area {
  background: #ffffff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100%;
}

.main-placeholder-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Panel Stack (Right Sidebars) */
.panel-stack {
  position: fixed;
  right: 0;
  top: 0;
  bottom: var(--footer-height);
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  background: transparent;
  z-index: 100;
  transition: all 0.3s var(--transition);
}

.detail-panel {
  width: var(--panel-width);
  max-width: var(--panel-width);
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s var(--transition);
  transition: transform 0.3s var(--transition), opacity 0.3s var(--transition), max-width 0.3s var(--transition);
}

.detail-panel.closing {
  max-width: 0;
  padding: 16px 0;
  transform: translateX(100%);
  opacity: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.panel-stack {
  transition: opacity 0.3s var(--transition);
}

.panel-stack.hiding {
  animation: slideOutRight 0.3s var(--transition);
}

.detail-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 10px;
  padding-right: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-aqua);
}

.detail-panel-content {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Footer Status Bar */
.app-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  z-index: 999;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Hide footer on mobile devices */
  .app-footer {
    display: none;
  }

  /* Collapsible sidebar on mobile */
  .app-sidebar {
    width: var(--sidebar-width-mobile);
    padding: 12px 0;
    gap: 16px;
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 1200;
  }

  /* Hide sidebar when collapsed */
  .app-sidebar.mobile-collapsed {
    transform: translateX(-100%);
  }

  /* Update app shell grid for mobile sidebar */
  .app-shell {
    grid-template-columns: 0 1fr;
  }

  /* Show full width when sidebar is visible */
  .app-shell:has(.app-sidebar:not(.mobile-collapsed)) {
    grid-template-columns: var(--sidebar-width-mobile) 1fr;
  }

  /* Adjust main viewport for mobile - full width when sidebar collapsed */
  .main-viewport {
    margin: 8px;
    height: 100vh;
    margin-top: 56px; /* Space for hamburger button */
  }

  /* Mobile header bar */
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(90deg, var(--brand-navy) 0%, #0a1929 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1300;
    padding: 0 8px;
  }

  .mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-header-logo {
    width: 32px;
    height: 32px;
  }

  .mobile-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
  }

  /* Mobile hamburger menu button */
  .mobile-nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(78, 212, 200, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
  }

  .mobile-nav-toggle:hover {
    background: rgba(78, 212, 200, 0.3);
    transform: scale(1.05);
  }

  .mobile-nav-toggle:active {
    transform: scale(0.95);
  }

  .mobile-nav-toggle i {
    font-size: 20px;
  }

  /* Overlay when sidebar is open on mobile */
  .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-sidebar-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Smaller nav buttons on mobile */
  .nav-icon-button {
    width: 36px;
    height: 36px;
  }

  .nav-icon-symbol {
    font-size: 18px;
  }

  /* Smaller logo on mobile */
  .sidebar-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
  }

  .sidebar-logo img {
    width: 28px;
    height: 28px;
  }

  /* Adjust footer left position for mobile sidebar */
  .app-footer {
    left: var(--sidebar-width-mobile);
  }

  /* Make panels overlay navbar and fill entire screen on mobile */
  .panel-stack {
    left: 0;
    right: 0;
    bottom: 0;
    top: 56px; /* Start below mobile header */
    z-index: 1100;
    pointer-events: none; /* Don't block clicks when no panels are open */
    flex-direction: column; /* Stack panels vertically on mobile */
  }

  /* Only show the topmost panel on mobile */
  .detail-panel {
    width: 100vw;
    max-width: 100vw;
    height: calc(100vh - 56px); /* Account for mobile header */
    border-left: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    pointer-events: auto; /* Re-enable clicks on actual panels */
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
  }

  /* Hide all panels except the active one on mobile */
  .detail-panel {
    display: none;
  }

  .detail-panel.is-active-mobile {
    display: flex;
  }

  /* Show toggle button on mobile */
  .panel-toggle-btn.mobile-only {
    display: flex;
  }

  /* Adjust panel header for mobile */
  .detail-panel-header {
    position: relative;
    font-size: 1rem;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-top: 16px;
  }


  /* Make chat messages panel full width on mobile */
  .chat-sidebar-panel {
    height: 100vh;
  }

  .chat-messages {
    padding: 12px;
  }

  /* Adjust chat message bubbles for mobile */
  .message-bubble {
    max-width: 90%;
  }

  /* Reduce padding in main scroll area on mobile */
  .main-scroll-area {
    padding: 16px;
  }

  /* Hide page descriptions on mobile */
  .chat-list-header p {
    display: none;
  }

  /* Condense table styling for mobile */
  .chat-table {
    font-size: 0.85rem;
  }

  .chat-table th,
  .chat-table td {
    padding: 10px 8px;
  }

  /* Hide non-essential columns on mobile - use .mobile-hide class */
  .mobile-hide,
  .desktop-only {
    display: none !important;
  }

  /* Show mobile-only content on mobile */
  .mobile-only:not(button) {
    display: inline !important;
  }

  /* Show mobile-only buttons with flex */
  button.mobile-only {
    display: flex !important;
  }

  /* Make remaining columns fit better */
  .chat-table tbody tr {
    display: table-row;
  }

  .chat-table td {
    white-space: normal;
    word-break: break-word;
  }

  /* Compact preview text */
  .chat-preview {
    max-width: none;
    font-size: 0.8rem;
  }

  /* Compact time display with two-row format on mobile */
  .chat-time {
    font-size: 0.7rem;
    white-space: pre-line;
    line-height: 1.3;
  }

  /* Compact user display */
  .chat-user {
    font-size: 0.85rem;
  }

  /* Compact badges */
  .chat-badge,
  .booking-status {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  /* Booking service cell - show mobile layout */
  .booking-service-desktop {
    display: none !important;
  }

  .booking-service-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
  }

  .booking-service-row-1 {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
  }

  .booking-service-row-2 {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
}

/* Desktop visibility rules (outside mobile media query) */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: inline !important;
}

/* Booking service cell - desktop default */
.booking-service-mobile {
  display: none;
}

/* Customer cell - two row layout */
.customer-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-cell-primary {
  font-weight: 600;
  color: var(--text-primary);
}

.customer-cell-secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* User name cell - two row layout */
.user-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name-cell-primary {
  font-weight: 600;
  color: var(--text-primary);
}

.user-name-cell-secondary {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Nav Tooltip */
.nav-tooltip-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-tooltip {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 16, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(12, 34, 54, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 2000;
}

.nav-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(6, 16, 26, 0.92);
}
.nav-tooltip-wrapper:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(6px);
}






/* Panel Header Actions */
.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Panel Close Button */
.panel-close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 20px;
  padding: 0;
}

.panel-close-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.panel-close-btn:active {
  transform: scale(0.95);
}

/* Panel Toggle Button - hidden by default, shown only on mobile */
.panel-toggle-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--brand-aqua-soft);
  color: var(--brand-aqua);
  cursor: pointer;
  border-radius: 6px;
  display: none; /* Hidden on desktop */
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
  padding: 0;
}

.panel-toggle-btn:hover {
  background: rgba(78, 212, 200, 0.2);
  color: var(--brand-aqua-dark);
}

.panel-toggle-btn:active {
  transform: scale(0.95);
}

/* Mobile header and nav toggle - hidden on desktop, visible on mobile */
@media (min-width: 769px) {
  .mobile-header,
  .mobile-nav-toggle,
  .mobile-sidebar-overlay {
    display: none !important;
  }
}

/* Buttons */
.button-primary {
  background: linear-gradient(135deg, var(--brand-aqua) 0%, var(--brand-aqua-dark) 100%);
  border: none;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button-primary:active {
  transform: scale(0.95);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--brand-aqua);
  color: var(--brand-aqua);
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.button-secondary:hover {
  background: rgba(78, 212, 200, 0.1);
}

.button-secondary:active {
  transform: scale(0.95);
}

.button-secondary:disabled,
.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.refresh-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinning {
  animation: spin 1s linear infinite;
}

/* Text Styles */
.text-error {
  color: var(--danger);
  font-size: 0.875rem;
}

/* Icon Badge */
.icon-with-badge {
  position: relative;
  display: inline-flex;
}

.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Chat List View */
.chat-list-view {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.chat-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  padding-bottom: 0px;
  border-bottom: 1px solid var(--border);
}

/* Table Styles */
.chat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.chat-table thead {
  background: var(--surface-muted);
  border-bottom: 2px solid var(--border);
}

.chat-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.chat-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-table tbody tr:hover {
  background: rgba(78, 212, 200, 0.05);
}

.chat-table tbody tr.is-selected {
  background: rgba(78, 212, 200, 0.1);
}

.chat-table td {
  padding: 4px 6px;
  color: var(--text-primary);
}

.chat-table .chat-user {
  font-weight: 600;
}

.chat-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-user-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}


.chat-table .chat-preview {
  color: var(--text-secondary);
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-table .chat-time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Table date cell - two-row format for all devices */
.table-date-cell {
  white-space: pre-line;
  line-height: 1.4;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-table .chat-badge {
  background: var(--brand-aqua);
  color: #ffffff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* Remove old list styles - keeping for reference */
.chat-list,
.chat-list-item,
.chat-list-item__meta,
.chat-list-item__title,
.chat-list-item__preview,
.chat-list-item__badge {
  display: none;
}

/* Chat Thread */
.chat-thread-panel,
.chat-profile-panel {
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
}

.chat-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
}

.chat-thread::-webkit-scrollbar {
  width: 6px;
}

.chat-thread::-webkit-scrollbar-track {
  background: transparent;
}

.chat-thread::-webkit-scrollbar-thumb {
  background: var(--brand-aqua);
  border-radius: 3px;
  opacity: 0.5;
}

.chat-thread__item {
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--surface-muted);
  transition: all 0.2s ease;
}

.chat-thread__item--admin {
  background: linear-gradient(135deg, rgba(78, 212, 200, 0.15) 0%, rgba(78, 212, 200, 0.08) 100%);
  border-left: 3px solid var(--brand-aqua);
  margin-left: 8px;
}

.chat-thread__item--user {
  background: linear-gradient(135deg, rgba(12, 34, 54, 0.08) 0%, rgba(12, 34, 54, 0.04) 100%);
  border-left: 3px solid var(--brand-navy);
}

.chat-thread__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.chat-thread__text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Detail Fields */
.detail-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.detail-field__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  min-width: 50px;
  flex-shrink: 0;
}

.detail-field__value {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.85rem;
  flex: 1;
}

/* Placeholder Cards */
.placeholder-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.placeholder-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-muted) 100%);
  transition: all 0.3s var(--transition);
}

.placeholder-card:hover {
  border-color: var(--brand-aqua);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 212, 200, 0.15);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg,
    var(--surface-muted) 25%,
    rgba(78, 212, 200, 0.1) 50%,
    var(--surface-muted) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 8px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-4 {
  margin-bottom: 16px;
}

/* Chat Sidebar Styles */
.chat-sidebar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  font-family: 'Manrope', sans-serif;
}

.chat-messages {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-day-group {
  margin-bottom: 16px;
}

.chat-day-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 12px;
  padding: 4px 12px;
  display: inline-block;
  background: rgba(12, 34, 54, 0.05);
  border-radius: 12px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.chat-message {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.chat-message.bot {
  align-items: flex-start;
}

.chat-message.user {
  align-items: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  word-wrap: break-word;
}

.chat-message.bot .message-bubble {
  background: rgba(78, 212, 200, 0.1);
  border: 1px solid rgba(78, 212, 200, 0.2);
  color: #0c2236;
}

/* Different background colors for different sender types */
.chat-message.bot.from-admin .message-bubble {
  background: linear-gradient(135deg, rgba(78, 212, 200, 0.15) 0%, rgba(78, 212, 200, 0.08) 100%);
  border: 1px solid rgba(78, 212, 200, 0.3);
  border-left: 3px solid var(--brand-aqua);
}

.chat-message.bot.from-system .message-bubble {
  background: linear-gradient(135deg, rgba(12, 34, 54, 0.08) 0%, rgba(12, 34, 54, 0.04) 100%);
  border: 1px solid rgba(12, 34, 54, 0.15);
  border-left: 3px solid var(--brand-navy);
}

.chat-message.bot.from-ai .message-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-left: 3px solid #7c3aed;
}

.chat-message.user .message-bubble {
  background: var(--brand-aqua);
  color: white;
}

.message-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Message action buttons */
.message-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-action-button {
  display: inline-block;
  padding: 8px 16px;
  background: var(--brand-aqua);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(78, 212, 200, 0.2);
}

.message-action-button:hover {
  background: var(--brand-aqua-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(78, 212, 200, 0.3);
}

.message-action-button:active {
  transform: translateY(0);
}

/* Action buttons in bot messages should blend with the message style */
.chat-message.bot .message-action-button {
  background: var(--brand-aqua);
}

.chat-message.bot.from-ai .message-action-button {
  background: #7c3aed;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

.chat-message.bot.from-ai .message-action-button:hover {
  background: #6d28d9;
  box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

.chat-message.bot.from-system .message-action-button {
  background: var(--brand-navy);
  box-shadow: 0 2px 4px rgba(12, 34, 54, 0.2);
}

.chat-message.bot.from-system .message-action-button:hover {
  background: #0a1929;
  box-shadow: 0 4px 8px rgba(12, 34, 54, 0.3);
}

/* User messages keep the aqua color for action buttons */
.chat-message.user .message-action-button {
  background: white;
  color: var(--brand-aqua);
}

.chat-input-section {
  padding: 12px 0 12px 0;
  border-top: 1px solid rgba(12, 34, 54, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.chat-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(12, 34, 54, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: var(--brand-aqua);
}

.chat-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--brand-aqua);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.chat-send:hover:not(:disabled) {
  background: #3bc4b8;
  transform: scale(1.05);
}

.chat-send:disabled {
  background: rgba(12, 34, 54, 0.2);
  cursor: not-allowed;
  transform: none;
}

.chat-send i {
  font-size: 0.9rem;
}

.error-detail {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--danger);
}


.chat-empty,
.chat-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-muted);
  font-style: italic;
}

/* Login Screen */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0a1929 100%);
  overflow: hidden;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(78, 212, 200, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(78, 212, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(56, 178, 172, 0.1) 0%, transparent 50%);
  animation: floatBackdrop 20s ease infinite;
}

@keyframes floatBackdrop {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 10px) scale(0.95); }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(78, 212, 200, 0.15);
  text-align: center;
  animation: slideInUp 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.login-logo img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(78, 212, 200, 0.3));
  animation: pulse 2s ease infinite;
}

.login-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.login-subtitle {
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-aqua) 0%, var(--brand-aqua-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: 0 4px 12px rgba(78, 212, 200, 0.3);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(78, 212, 200, 0.4);
  background: linear-gradient(135deg, #3bc4b8 0%, var(--brand-aqua) 100%);
}

.login-button:active {
  transform: translateY(0);
}

.login-button i {
  font-size: 18px;
}

.login-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(12, 34, 54, 0.08);
}

.login-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Auth Loading Screen (checking auth at startup) */
.auth-loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0a1929 100%);
  overflow: hidden;
  z-index: 9999;
}

.auth-loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 80%, rgba(78, 212, 200, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(56, 178, 172, 0.1) 0%, transparent 50%);
  animation: floatBackdrop 20s ease infinite;
}

.auth-loading-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 0 1px rgba(255, 255, 255, 0.3);
  text-align: center;
  animation: slideUp 0.6s var(--transition);
}

.auth-loading-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-loading-logo img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(78, 212, 200, 0.3));
  animation: pulse 2s ease infinite;
}

.auth-loading-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

.auth-loading-title.error {
  color: var(--danger);
}

.auth-loading-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Account Dropdown */
.account-dropdown-wrapper {
  position: relative;
}

.account-dropdown-menu {
  position: absolute;
  left: calc(100% + 12px);
  bottom: 0;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(12, 34, 54, 0.12);
  border-radius: 12px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 2001;
  animation: dropdownSlideIn 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.account-dropdown-menu::after {
  content: '';
  position: absolute;
  right: 100%;
  bottom: 16px;
  border: 6px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.98);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item i {
  width: 16px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.dropdown-item:hover {
  background: rgba(78, 212, 200, 0.1);
  color: var(--brand-aqua-dark);
}

.dropdown-item:hover i {
  color: var(--brand-aqua);
}

.dropdown-item:active {
  transform: scale(0.98);
}













.chat-profile-panel {
  display: flex;
  flex-direction: column;
}

.profile-section {
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.profile-section__header:hover {
  color: var(--brand-aqua);
}

.profile-section__title {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: inherit;
}

.profile-section__chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.profile-section__content {
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-contact__metrics {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.empty-state {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-booking-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.profile-booking {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-booking--condensed {
  padding: 8px 10px;
  gap: 4px;
}

.profile-booking__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.profile-booking__line--muted {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.profile-booking__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-booking__amount {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.profile-booking__meta,
.profile-booking__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-booking__service {
  color: var(--brand-aqua-dark);
  font-weight: 500;
}

.booking-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.booking-status--scheduled {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.booking-status--payment_confirmed {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

.booking-status--payment_pending {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

.booking-status--completed {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

/* Default status styling for any other status */
.booking-status:not([class*="--"]) {
  background: rgba(78, 212, 200, 0.12);
  border-color: rgba(78, 212, 200, 0.2);
  color: var(--brand-aqua-darker);
}

/* Status History Table */
.status-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 8px;
}

.status-history-table th {
  text-align: left;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.status-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.status-history-table tr:last-child td {
  border-bottom: none;
}

.status-history-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}



/* Settings */
.settings-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.settings-page-header {
  padding: 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.settings-page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.settings-page-header p {
  color: var(--text-secondary);
  max-width: 720px;
}

.settings-horizontal-nav {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.settings-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}


.settings-content {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  padding: 30px;
  background: var(--background);
}

.settings-view {
  max-width: 900px;
}

.settings-view-header {
  margin-bottom: 30px;
}

.settings-view-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.settings-view-header p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.settings-placeholder {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}

.settings-placeholder h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.settings-coming-soon {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}

.settings-coming-soon i {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section-header {
  margin-bottom: 20px;
}

.settings-section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.settings-section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(12, 34, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.settings-card-header h2,
.settings-card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.settings-card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.settings-form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-row {
  display: grid;
  gap: 10px;
}

.settings-row.double {
  grid-template-columns: 1fr 1fr;
}

.settings-row.triple {
  grid-template-columns: 2fr 1fr 1fr;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-field span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.7;
}

.settings-field input,
.settings-field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--surface-muted);
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.settings-field select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.settings-field input:focus,
.settings-field select:focus {
  outline: none;
  background: rgba(78, 212, 200, 0.06);
  box-shadow: 0 0 0 2px rgba(78, 212, 200, 0.2);
}

.settings-field input:hover,
.settings-field select:hover:not(:disabled) {
  background: rgba(78, 212, 200, 0.03);
  transform: translateY(-1px);
}

.settings-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.settings-field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--surface-muted);
}

.settings-inline-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--surface-muted);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.settings-inline-status.is-error,
.settings-inline-status.settings-error {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  border-left-color: var(--danger);
}

.settings-inline-status.settings-success {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  border-left-color: var(--success);
}

.settings-device-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.settings-status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.settings-status-dot.offline {
  background: var(--text-muted);
}

.settings-status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.settings-status-badge.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.settings-status-badge.offline {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.settings-battery {
  display: flex;
  align-items: center;
}

.settings-battery-level {
  font-weight: 600;
}

.settings-battery-level.low {
  color: var(--danger);
}

.settings-muted {
  color: var(--text-muted);
  opacity: 0.7;
}

.settings-table-wrapper {
  overflow-x: auto;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.settings-table th {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.settings-table tr:last-child td {
  border-bottom: none;
}

/* Horizontal tabs navigation (used in notifications and settings) */
.horizontal-tabs-container {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  position: relative;
}

.horizontal-tab-item {
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
  padding: 8px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.horizontal-tab-item:hover {
  background: rgba(78, 212, 200, 0.05);
}

.horizontal-tab-item.active {
  background: var(--brand-aqua-soft);
  color: var(--brand-aqua-dark);
}

/* Dropdown overlay for subcategories */
.settings-nav-dropdown-overlay {
  position: absolute;
  top: 100%;
  left: 20px;
  min-width: 200px;
  max-width: calc(100% - 40px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 4px;
  margin-top: 4px;
}

.settings-nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-nav-dropdown-item:hover {
  background: rgba(78, 212, 200, 0.1);
}

.settings-nav-dropdown-item.active {
  background: var(--brand-aqua-soft);
  color: var(--brand-aqua-dark);
  font-weight: 600;
}

@media (max-width: 960px) {
  .settings-horizontal-nav {
    padding: 0 16px;
  }

  .settings-nav-dropdown-overlay {
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .settings-content {
    padding: 20px;
  }

  .settings-row.triple {
    grid-template-columns: 1fr 1fr;
  }

  .settings-row.triple .settings-field:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .settings-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-actions {
    justify-content: flex-start;
  }

  .settings-row.double,
  .settings-row.triple {
    grid-template-columns: 1fr;
  }

  .settings-page-header {
    padding: 20px;
  }

  .settings-nav-subitem .settings-nav-item-content {
    padding-left: 32px;
  }
}
.robot-test-summary {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(12, 34, 54, 0.08);
}

.robot-test-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.robot-test-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.robot-test-header time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.robot-test-summary p {
  margin: 8px 0 16px;
  color: var(--text-secondary);
}

.robot-test-table {
  margin-top: 4px;
}

.robot-test-table th,
.robot-test-table td {
  font-size: 0.85rem;
  padding: 8px 12px;
}

.robot-test-error {
  margin-top: 16px;
  color: var(--danger);
  font-size: 0.9rem;
}
.detail-warning-list {
  margin: 12px 0;
  padding-left: 18px;
  color: var(--warning);
  font-size: 0.9rem;
}

.robot-map-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.robot-map-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  object-fit: contain;
}

.robot-map-raw {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: rgba(12, 34, 54, 0.05);
  font-family: "Fira Code", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.robot-map-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


.robot-test-table tbody tr {
  cursor: pointer;
}

.robot-test-table tbody tr:hover {
  background: rgba(12, 34, 54, 0.05);
}

.robot-test-table tbody tr.is-selected {
  background: rgba(78, 212, 200, 0.12);
}

/* Robot Detail Panel */
.robot-panel-header {
  padding: 0 0 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.robot-panel-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  word-break: break-word;
}

.robot-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.robot-info-section {
  margin-bottom: 20px;
}

.robot-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.robot-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.robot-field-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  min-width: 80px;
  flex-shrink: 0;
}

.robot-field-value {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-word;
  flex: 1;
}

.robot-field-value.monospace {
  font-family: "Fira Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.8rem;
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

.robot-status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.robot-status-badge i {
  font-size: 0.6rem;
}

.robot-status-badge.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.robot-status-badge.offline {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.robot-battery {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  flex-shrink: 0;
}

.robot-battery-level {
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 32px;
}

.robot-battery.low .robot-battery-level {
  color: var(--danger);
}

.robot-battery.medium .robot-battery-level {
  color: var(--warning);
}

.robot-battery.high .robot-battery-level {
  color: var(--success);
}

.robot-battery-bar {
  width: 40px;
  height: 6px;
  background: var(--surface-muted);
  border-radius: 3px;
  overflow: hidden;
}

.robot-battery-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.3s ease;
}

.robot-battery.low .robot-battery-fill {
  background: var(--danger);
}

.robot-battery.medium .robot-battery-fill {
  background: var(--warning);
}

.robot-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(78, 212, 200, 0.06);
  border: 1px solid rgba(78, 212, 200, 0.2);
  border-radius: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--brand-aqua-dark);
}

.robot-notice i {
  color: var(--brand-aqua);
}

.robot-loading,
.robot-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.robot-error {
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 8px;
}

.robot-error-detail {
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.robot-warnings {
  margin-top: 16px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
}

.robot-warnings h4 {
  margin: 0 0 8px 0;
  color: var(--warning);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.robot-warnings ul {
  margin: 0;
  padding-left: 16px;
  color: var(--warning);
  font-size: 0.85rem;
}

.robot-properties-grid {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.robot-property {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-muted);
  border-radius: 6px;
  align-items: start;
}

.robot-property-key {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  word-break: break-word;
}

.robot-property-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: "Fira Code", "SFMono-Regular", ui-monospace, monospace;
  word-break: break-all;
  background: var(--background);
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.robot-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.robot-history-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.robot-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.robot-history-status {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.robot-history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.robot-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.robot-history-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.robot-history-stats i {
  color: var(--text-muted);
  width: 12px;
}

.robot-telemetry-grid {
  display: grid;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.robot-telemetry-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-muted);
  border-radius: 6px;
  align-items: start;
}

.robot-telemetry-key {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  word-break: break-word;
}

.robot-telemetry-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: "Fira Code", "SFMono-Regular", ui-monospace, monospace;
  word-break: break-all;
  background: var(--background);
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  max-height: 100px;
  overflow-y: auto;
}

@media (max-width: 720px) {
  .robot-detail-status {
    justify-content: space-between;
  }

  .robot-field-label {
    min-width: 70px;
    font-size: 0.7rem;
  }

  .robot-field {
    font-size: 0.8rem;
  }

  .robot-property,
  .robot-telemetry-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .robot-history-header {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
}


.robot-active-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(12, 34, 54, 0.06);
  color: var(--text-secondary);
}

.robot-active-badge.is-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.robot-active-badge.is-inactive {
  background: rgba(220, 38, 38, 0.15);
  color: var(--danger);
}

.robot-test-table tbody tr {
  cursor: pointer;
}

.robot-test-table tbody tr:hover {
  background: rgba(12, 34, 54, 0.05);
}

.robot-test-table tbody tr.is-selected {
  background: rgba(78, 212, 200, 0.12);
}

.notifications-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notifications-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.notifications-header p {
  margin: 0;
  color: var(--text-secondary);
}

.notification-group {
  background: rgba(12, 34, 54, 0.03);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-group__header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(12, 34, 54, 0.08);
  background: var(--surface-100);
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 12px rgba(12, 34, 54, 0.05);
}

.notification-card--success {
  border-left: 4px solid var(--success);
}

.notification-card--info {
  border-left: 4px solid rgba(59, 130, 246, 0.7);
}

.notification-card--warning {
  border-left: 4px solid var(--warning);
}

.notification-card--critical {
  border-left: 4px solid var(--danger);
}

.notification-card__body h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.notification-card__body p {
  margin: 0;
  color: var(--text-secondary);
}

.notification-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notification-card__actions {
  display: flex;
  gap: 0.5rem;
}

.notifications-empty,
.notifications-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(12, 34, 54, 0.03);
  border-radius: 12px;
}

@media (max-width: 900px) {
  .notifications-view {
    padding: 1rem;
  }

  .notification-card {
    padding: 0.85rem 1rem;
  }

  .notification-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Inline Edit Field */
.inline-edit-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.inline-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.inline-edit-btn:hover {
  background: rgba(78, 212, 200, 0.1);
  color: var(--brand-aqua);
}

.inline-edit-btn:active {
  transform: scale(0.95);
}

.inline-edit-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.inline-edit-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: all 0.2s ease;
}

.inline-edit-input:focus {
  border-color: var(--brand-aqua);
  box-shadow: 0 0 0 2px rgba(78, 212, 200, 0.1);
}

.inline-edit-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface-muted);
}

.inline-edit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-edit-btn--save {
  color: var(--success);
}

.inline-edit-btn--save:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.inline-edit-btn--cancel {
  color: var(--danger);
}

.inline-edit-btn--cancel:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.inline-edit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/*# sourceMappingURL=main.6915463ef40cb0107d11.css.map*/