/**
 * Enterprise Cafeteria POS System
 * Toolbar CSS - Windows-Style Top Toolbar & Bottom Status Bar
 */

/* =============================================================================
   1. Top Main Toolbar (2010-2015 Windows Chrome Ribbon)
   ============================================================================= */
.app-toolbar {
  height: 52px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--border-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 0 #ffffff;
  z-index: var(--z-sticky);
  gap: var(--space-md);
}

.toolbar-left, .toolbar-center, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: var(--font-size-lg);
  color: #1a232b;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 0 #ffffff;
  margin-right: 6px;
}

.brand-badge {
  background: var(--color-primary);
  color: #ffffff;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Order Type Button Segment */
.order-type-selector {
  display: flex;
  background: #d8dde4;
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid #a6aeb8;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.order-type-btn {
  padding: 5px 12px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  border: none;
  background: transparent;
  color: #495057;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s ease;
}

.order-type-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 #ffffff;
}

.order-type-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: #212529;
}

/* Custom Channel Dropdown */
.custom-channel-dropdown {
  position: relative;
}

.channel-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--border-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  min-width: 170px;
  display: none;
  flex-direction: column;
  z-index: var(--z-dropdown);
  padding: 4px 0;
}

.custom-channel-dropdown.open .channel-menu {
  display: flex;
}

.channel-menu-item {
  padding: 7px 12px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-menu-item:hover {
  background-color: #eaf1fa;
  color: var(--color-primary);
}

.channel-menu-item.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
}

/* Toolbar Metrics & Badges */
.toolbar-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #b5bcc6;
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.metric-label {
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-value {
  color: var(--text-heading);
  font-size: var(--font-size-sm);
}

.metric-value.highlight-green {
  color: var(--color-primary);
}

.metric-value.highlight-red {
  color: #c62828;
}

/* Shift and User Info */
.user-shift-info {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.15;
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-heading);
}

.shift-badge {
  font-size: 10px;
  font-weight: 700;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.shift-status-dot {
  width: 6px;
  height: 6px;
  background-color: #4caf50;
  border-radius: 50%;
  box-shadow: 0 0 4px #4caf50;
}

/* Real-Time Digital Clock */
.toolbar-clock {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  font-weight: 700;
  padding: 4px 10px;
  background: #232b32;
  color: #4ade80;
  border-radius: var(--radius-sm);
  border: 1px solid #141a1f;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.8px;
}

/* =============================================================================
   2. Bottom Status Bar (Windows Style Utility & Hotkey Cheatsheet)
   ============================================================================= */
.app-statusbar {
  height: 26px;
  background: var(--bg-statusbar);
  border-top: 1px solid var(--border-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-sm);
  font-size: var(--font-size-xs);
  color: #495057;
  box-shadow: inset 0 1px 0 #ffffff;
  z-index: var(--z-sticky);
}

.statusbar-left, .statusbar-center, .statusbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.statusbar-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-online {
  background-color: #388e3c;
  box-shadow: 0 0 4px #4caf50;
}

.status-offline {
  background-color: #f57c00;
  box-shadow: 0 0 4px #ffa726;
}

.hotkey-tag {
  background: #ffffff;
  border: 1px solid #aeb5bf;
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #1f2937;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
