/* Mobile Inventory App Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --nav-height: 60px;
  --header-height: 56px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary: #818CF8;
  --primary-dark: #6366F1;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
  --bg: #0F172A;
  --surface: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --border: #334155;
}

/* Dark Mode Transition - Applied to specific elements only */
body,
.sidebar,
.app-header,
.stat-card,
.modal-content,
.form-input,
.form-select,
.search-input,
.inventory-table,
.data-table,
.nav-link {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Login Screen */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 20px;
}

.login-container {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  padding: 48px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-icon .material-icons {
  font-size: 32px;
  color: white;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.login-form-container {
  width: 100%;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-form .form-label .material-icons {
  font-size: 18px;
  color: var(--primary);
}

.login-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  background: var(--bg);
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-form .form-input:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--primary);
}

.password-toggle .material-icons {
  font-size: 20px;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-block .material-icons {
  font-size: 20px;
}

.error-message {
  background: #FEE2E2;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message::before {
  content: '⚠️';
  font-size: 18px;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

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

/* App Container */
.app-container {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .material-icons {
  font-size: 28px;
  color: var(--primary);
}

.custom-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #f79e02;
  flex: 1;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  display: none;
}

.sidebar-toggle:hover {
  background: var(--bg);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.nav-link .material-icons {
  font-size: 22px;
  color: #000000;
}

.nav-link-text {
  font-size: 14px;
}

/* Main Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 280px;
  overflow: hidden;
}

.sidebar-toggle-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  margin-right: 12px;
}

.sidebar-toggle-btn:hover {
  background: var(--bg);
}

.sidebar-toggle-btn .material-icons {
  font-size: 24px;
}

/* Header */
.app-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  gap: 16px;
}

.app-header h1 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.icon-btn:active {
  background: var(--bg);
  transform: scale(0.95);
}

.icon-btn .material-icons {
  font-size: 22px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.user-menu {
  position: relative;
}

#user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  width: auto;
  min-width: 40px;
}

.user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-wrapper {
  position: relative;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.user-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.user-email-display {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.user-role {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

.logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: var(--bg);
}

.logout-btn .material-icons {
  font-size: 18px;
}

/* Responsive Header Styles */
@media (max-width: 1024px) {
  .user-email {
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 12px;
    gap: 8px;
  }
  
  .app-header h1 {
    font-size: 18px;
  }
  
  .header-actions {
    gap: 2px;
  }
  
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  
  .icon-btn .material-icons {
    font-size: 20px;
  }
  
  #user-menu-btn {
    padding: 0 8px;
  }
  
  .user-email {
    display: none;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0 8px;
  }
  
  .app-header h1 {
    font-size: 16px;
  }
  
  .header-actions {
    gap: 0;
  }
  
  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* Notifications Dropdown */
.notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 380px;
  max-width: 90vw;
  max-height: 500px;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  gap: 12px;
  align-items: start;
}

.notification-item:hover {
  background: var(--bg);
}

.notification-item.unread {
  background: #F0F9FF;
  border-left: 3px solid var(--primary);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.notification-icon.success {
  background: #ECFDF5;
  color: #10B981;
}

.notification-icon.warning {
  background: #FFF7ED;
  color: #F59E0B;
}

.notification-icon.error {
  background: #FEF2F2;
  color: #EF4444;
}

.notification-icon.info {
  background: #EFF6FF;
  color: #3B82F6;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notification-time {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.notifications-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.notifications-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.notifications-empty .material-icons {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 12px;
}

.text-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.text-btn:hover {
  opacity: 0.7;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  z-index: 10;
  line-height: 1;
  border: 2px solid var(--surface);
}

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

@media (max-width: 768px) {
  .notifications-dropdown {
    width: 320px;
    right: -8px;
  }
  
  .notification-badge {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    padding: 2px 5px;
  }
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background: var(--bg);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s;
}

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Black Card Variant */
.stat-card.card-black {
  background: #000000;
  color: white;
}

.stat-card.card-black .stat-value,
.stat-card.card-black .stat-label,
.stat-card.card-black .stat-description {
  color: white;
}

.stat-card.card-black .stat-icon {
  background: white !important;
}

.stat-card.card-black .stat-icon .material-icons {
  color: #000000;
}

/* Dark Orange Card Variant */
.stat-card.card-orange {
  background: #C2410C;
  color: white;
}

.stat-card.card-orange .stat-value,
.stat-card.card-orange .stat-label,
.stat-card.card-orange .stat-description {
  color: white;
}

.stat-card.card-orange .stat-icon {
  background: white !important;
}

.stat-card.card-orange .stat-icon .material-icons {
  color: #000000;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon .material-icons {
  font-size: 28px;
  color: white;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-description {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.4;
  margin-top: 4px;
}

/* Section */
.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* Search Bar */
.search-bar {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 20px;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Product List */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  margin-right: 8px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.product-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.product-status.in-stock {
  background: #D1FAE5;
  color: #065F46;
}

.product-status.out-of-stock {
  background: #FEE2E2;
  color: #991B1B;
}

/* Category List */
.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.category-card:active {
  transform: scale(0.95);
}

.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Settings */
.settings-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.connected {
  background: #D1FAE5;
  color: #065F46;
}

.status-badge.disconnected {
  background: #FEE2E2;
  color: #991B1B;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-area-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: var(--safe-area-bottom);
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item .material-icons {
  font-size: 24px;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
}

.empty-state .material-icons {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-state-subtext {
  font-size: 14px;
  opacity: 0.7;
}

/* Filter Bar */
.filter-bar {
  margin-bottom: 16px;
}

.filter-select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Order List */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.order-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.order-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.order-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.order-details {
  margin-bottom: 12px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.order-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.order-value {
  color: var(--text-primary);
  font-weight: 500;
}

.order-value.tracking {
  font-family: monospace;
  font-size: 13px;
}

.order-summary {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.order-summary-row.total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-status,
.fulfillment-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.payment-status.paid {
  background: #D1FAE5;
  color: #065F46;
}

.payment-status.pending {
  background: #FEF3C7;
  color: #92400E;
}

.fulfillment-status {
  background: #EFF6FF;
  color: #1E40AF;
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.welcome-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.welcome-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.welcome-card p {
  font-size: 14px;
  opacity: 0.9;
  color: white;
}

/* Action Bar */
.action-bar {
  margin-bottom: 16px;
}

/* Analytics Section */
.analytics-section {
  margin-bottom: 24px;
}

.analytics-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.analytics-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.analytics-item:last-child {
  border-bottom: none;
}

.analytics-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.analytics-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.inventory-status {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-primary);
}

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

.status-item strong {
  font-weight: 700;
  color: var(--text-primary);
}

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

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.icon-btn {
  position: relative;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-action-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #FF7B45 0%, #FFA31E 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.quick-action-btn:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, #FF5B25 0%, #E7830E 100%);
}

.quick-action-btn .material-icons {
  font-size: 32px;
  color: #FFFFFF;
  opacity: 0.95;
}

.quick-action-btn span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Action Bar */
.action-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.action-bar .search-bar {
  flex: 1;
  margin-bottom: 0;
}

.action-bar .btn {
  white-space: nowrap;
}

/* Filter Bar Enhancements */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Stats Grid Enhanced */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
  }
  
  .sidebar-toggle,
  .sidebar-toggle-btn {
    display: flex;
  }
  
  .main-wrapper {
    margin-left: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .category-list {
    grid-template-columns: 1fr;
  }
  
  .app-header {
    padding: 0 16px;
  }
  
  .main-content {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    width: 260px;
  }
}

/* Analytics Page Styles */
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.analytics-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.time-range-selector {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.time-range-btn {
  padding: 8px 16px;
  border: none;
  background: #d6298e;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.time-range-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.time-range-btn.active {
  background: #082e96;
  color: #f70777;
  font-weight: 600;
}

/* Button color variants */
.time-range-btn:nth-child(1) {
  background: #d6298e;
}

.time-range-btn:nth-child(2) {
  background: #10540d;
}

.time-range-btn:nth-child(3) {
  background: #3a0566;
}

.time-range-btn:nth-child(4) {
  background: #7d0571;
}

.time-range-btn:nth-child(5) {
  background: #ed5102;
}

.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.metric-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-period {
  font-size: 12px;
  color: var(--text-secondary);
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-subtext {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.analytics-chart-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.analytics-chart-section .section-title {
  color: #000000;
}

.chart-container {
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.revenue-chart {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
}

.chart-placeholder {
  color: #000000;
  font-size: 14px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.analytics-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-card-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.analytics-card-section .section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Top Products List */
.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.product-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.product-revenue {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

/* Customer Analytics Grid */
.customer-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.customer-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
}

.customer-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.customer-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Geographic Sales */
.geographic-sales-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.geographic-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.geographic-location {
  font-weight: 600;
  color: var(--text-primary);
}

.geographic-count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Low Stock Alert */
.low-stock-alert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
}

.stock-alert-info {
  flex: 1;
}

.stock-alert-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stock-alert-sku {
  font-size: 12px;
  color: var(--text-secondary);
}

.stock-alert-quantity {
  font-weight: 700;
  color: #F59E0B;
  font-size: 18px;
}

/* Traffic Sources */
.traffic-sources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.traffic-source-item {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

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

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

.traffic-source-percentage {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.traffic-source-visits {
  font-size: 13px;
  color: var(--text-secondary);
}

.traffic-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.traffic-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Top Customers */
.top-customers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-customer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.customer-info {
  flex: 1;
}

.customer-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.customer-email {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

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

.customer-revenue {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

/* Recent Sales */
.recent-sales-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-sale-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.recent-sale-item:hover {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sale-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.sale-info {
  flex: 1;
}

.sale-order-number {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sale-customer-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.sale-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.sale-status.pending {
  background: #FEF3C7;
  color: #92400E;
}

.sale-status.completed {
  background: #D1FAE5;
  color: #065F46;
}

.sale-status.processing {
  background: #DBEAFE;
  color: #1E40AF;
}

.sale-amount {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 18px;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.quick-action-card:hover {
  background: linear-gradient(135deg, #FF7B45 0%, #FFA31E 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.quick-action-card .material-icons {
  font-size: 32px;
  color: #FFFFFF;
  opacity: 0.95;
}

.quick-action-title {
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
  font-size: 16px;
}

.quick-action-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* Revenue Chart Bars */
.revenue-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 250px;
  padding: 20px;
  background: white;
}

.revenue-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.revenue-bar-value {
  color: #000000;
  font-weight: 600;
}

.revenue-bar-label {
  color: #000000;
}

.revenue-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.revenue-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.05);
}

.revenue-bar-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

.revenue-bar-value {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .customer-analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  overflow-y: auto;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Larger modals for forms with more content */
#product-modal .modal-content,
#order-modal .modal-content {
  max-width: 1100px;
  max-height: 95vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.modal-close:active {
  background: var(--bg);
  transform: scale(0.95);
}

.modal-close .material-icons {
  font-size: 24px;
}

.modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(95vh - 140px);
}

/* Extra padding for product and order modals */
#product-modal .modal-body,
#order-modal .modal-body {
  padding: 32px 40px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

/* Better spacing in product and order modals */
#product-modal .form-group,
#order-modal .form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select[multiple] {
  min-height: 120px;
  padding: 8px;
  overflow-y: auto;
}

.form-select[multiple] option {
  padding: 8px 12px;
  cursor: pointer;
}

.form-select[multiple] option:hover {
  background-color: var(--primary);
  color: white;
}

.form-select[multiple] option:checked {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Better spacing for larger modals */
#product-modal .form-row,
#order-modal .form-row {
  gap: 20px;
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:active {
  background: var(--border);
}

/* Custom Button Color Variants */
.btn-color-1 {
  background: #d6298e !important;
  color: white !important;
  border: none !important;
}

.btn-color-1:hover {
  background: #b71f75 !important;
  transform: translateY(-1px);
}

.btn-color-2 {
  background: #10540d !important;
  color: white !important;
  border: none !important;
}

.btn-color-2:hover {
  background: #0d420b !important;
  transform: translateY(-1px);
}

.btn-color-3 {
  background: #3a0566 !important;
  color: white !important;
  border: none !important;
}

.btn-color-3:hover {
  background: #2d0450 !important;
  transform: translateY(-1px);
}

.btn-color-4 {
  background: #7d0571 !important;
  color: white !important;
  border: none !important;
}

.btn-color-4:hover {
  background: #64045a !important;
  transform: translateY(-1px);
}

.btn-color-5 {
  background: #ed5102 !important;
  color: white !important;
  border: none !important;
}

.btn-color-5:hover {
  background: #c94402 !important;
  transform: translateY(-1px);
}

/* Product Details in Modal */
.product-detail-section {
  margin-bottom: 32px;
}

.product-detail-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.product-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.product-detail-item:last-child {
  border-bottom: none;
}

.product-detail-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.product-detail-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* Order Details in Modal */
.order-detail-section {
  margin-bottom: 32px;
}

.order-detail-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.order-items-list {
  margin-top: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 8px;
}

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

.order-item-qty {
  color: var(--text-secondary);
  font-size: 14px;
}

.order-item-price {
  font-weight: 700;
  color: var(--primary);
}

/* Inventory Management Styles */
.inventory-header {
  margin-bottom: 24px;
}

.inventory-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.inventory-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.inventory-table-container {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  overflow-x: auto;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.inventory-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.inventory-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inventory-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.inventory-table tbody tr {
  transition: background 0.2s;
}

.inventory-table tbody tr:hover {
  background: var(--bg);
}

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

.btn-icon {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--bg);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge.in-stock {
  background: #10B98120;
  color: #10B981;
}

.status-badge.low-stock {
  background: #F59E0B20;
  color: #F59E0B;
}

.status-badge.out-of-stock {
  background: #EF444420;
  color: #EF4444;
}

@media (max-width: 768px) {
  .inventory-table {
    font-size: 12px;
  }
  
  .inventory-table th,
  .inventory-table td {
    padding: 12px 8px;
  }
  
  .inventory-filters {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .inventory-table-container {
    overflow-x: scroll;
  }
  
  .inventory-table td:last-child {
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .inventory-table th:nth-child(2),
  .inventory-table td:nth-child(2) {
    display: none; /* Hide SKU on very small screens */
  }
}

/* Inventory History Styles */
.history-table-container {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.history-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.history-table tbody tr {
  transition: background 0.2s;
}

.history-table tbody tr:hover {
  background: var(--bg);
}

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

.history-row td:first-child {
  min-width: 150px;
}

.history-row td:nth-child(2) {
  min-width: 120px;
}

.history-row td:nth-child(3) {
  min-width: 80px;
}

.history-row td:nth-child(4) {
  min-width: 100px;
}

.history-row td:last-child {
  min-width: 200px;
}

@media (max-width: 768px) {
  .history-table {
    font-size: 12px;
  }
  
  .history-table th,
  .history-table td {
    padding: 8px 12px;
  }
  
  .history-table-container {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .history-table th:last-child,
  .history-table td:last-child {
    display: none; /* Hide Notes on very small screens */
  }
  
  .login-container {
    padding: 32px 24px;
  }
  
  .login-title {
    font-size: 24px;
  }
}

/* ===============================================
   SHIPPING ADDRESSES TABLE STYLES
   =============================================== */

/* Shipping addresses table container */
#shipping-section-addresses .table-container {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Shipping addresses table */
#shipping-addresses-table-body tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

#shipping-addresses-table-body tr:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#shipping-addresses-table-body tr:last-child {
  border-bottom: none;
}

/* Order number styling */
#shipping-addresses-table-body td:first-child > div {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Address cells styling */
#shipping-addresses-table-body td:nth-child(2) > div,
#shipping-addresses-table-body td:nth-child(3) > div {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-right: 8px;
  max-width: 100%;
}

/* Carrier badge styling */
#shipping-addresses-table-body td:nth-child(4) span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#shipping-addresses-table-body td:nth-child(4) span:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Specific carrier colors */
.carrier-usps {
  background: linear-gradient(135deg, #0071CE, #005BA8);
  color: white;
}

.carrier-ups {
  background: linear-gradient(135deg, #351C15, #2B1711);
  color: #FFB500;
}

.carrier-fedex {
  background: linear-gradient(135deg, #4D148C, #3D0F6E);
  color: white;
}

.carrier-dhl {
  background: linear-gradient(135deg, #FFCC00, #E6B800);
  color: #D40511;
}

/* Tracking number container */
#shipping-addresses-table-body td:nth-child(5) {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

#shipping-addresses-table-body td:nth-child(5) > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Copy tracking button */
#shipping-addresses-table-body td:nth-child(5) button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0;
}

#shipping-addresses-table-body tr:hover td:nth-child(5) button {
  opacity: 1;
}

#shipping-addresses-table-body td:nth-child(5) button:hover {
  background: var(--primary);
}

#shipping-addresses-table-body td:nth-child(5) button:hover .material-icons {
  color: white;
}

#shipping-addresses-table-body td:nth-child(5) button:active {
  transform: scale(0.95);
}

#shipping-addresses-table-body td:nth-child(5) button .material-icons {
  font-size: 18px;
  color: var(--primary);
  transition: all 0.2s ease;
}

/* Action buttons container */
#shipping-addresses-table-body td:last-child {
  padding: 12px 16px;
}

#shipping-addresses-table-body td:last-child > div {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* Individual action buttons */
#shipping-addresses-table-body .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

#shipping-addresses-table-body .action-btn .material-icons {
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

#shipping-addresses-table-body .action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#shipping-addresses-table-body .action-btn:hover .material-icons {
  color: white;
}

#shipping-addresses-table-body .action-btn:active {
  transform: translateY(0);
}

/* Search and filter bar for shipping addresses */
#shipping-section-addresses .action-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

#shipping-section-addresses .search-bar {
  flex: 1;
  min-width: 250px;
  position: relative;
}

#shipping-section-addresses .search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 20px;
  pointer-events: none;
}

#shipping-section-addresses .search-bar input {
  width: 100%;
  padding: 10px 12px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

#shipping-section-addresses .search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#shipping-section-addresses .filter-select {
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

#shipping-section-addresses .filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#shipping-section-addresses .filter-select:hover {
  border-color: var(--primary);
}

/* Empty state styling for shipping addresses */
#shipping-addresses-table-body .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

#shipping-addresses-table-body .empty-state .material-icons {
  font-size: 64px;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-bottom: 16px;
}

#shipping-addresses-table-body .empty-state-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

#shipping-addresses-table-body .empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive design for shipping addresses */
@media (max-width: 1200px) {
  #shipping-addresses-table-body td:nth-child(2) > div,
  #shipping-addresses-table-body td:nth-child(3) > div {
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  #shipping-section-addresses .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  #shipping-section-addresses .search-bar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Stack table for mobile */
  #shipping-addresses-table-body tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  
  #shipping-addresses-table-body td {
    display: block;
    text-align: left !important;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  
  #shipping-addresses-table-body td:last-child {
    border-bottom: none;
  }
  
  #shipping-addresses-table-body td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  #shipping-addresses-table-body td:last-child > div {
    justify-content: flex-start;
  }
  
  #shipping-addresses-table-body .action-btn {
    width: 42px;
    height: 42px;
  }
}

/* Loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Smooth transitions */
#shipping-addresses-table-body * {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   USPS PRINT SECTION STYLES
   =============================================== */

/* USPS Header */
.usps-header {
  background: linear-gradient(135deg, #0071CE 0%, #003E7E 100%);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 113, 206, 0.2);
}

.usps-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.usps-logo-icon {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.usps-logo-icon .material-icons {
  font-size: 48px;
  color: #0071CE;
}

.usps-logo-text h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.usps-logo-text p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Quick Start Guide */
.usps-quick-start {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.usps-guide-list {
  margin: 0;
  padding-left: 24px;
  list-style: none;
  counter-reset: guide-counter;
}

.usps-guide-list li {
  counter-increment: guide-counter;
  position: relative;
  padding-left: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

.usps-guide-list li:last-child {
  margin-bottom: 0;
}

.usps-guide-list li::before {
  content: counter(guide-counter);
  position: absolute;
  left: -28px;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #0071CE, #005BA8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* USPS Account Card */
.usps-account-card {
  background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid var(--border);
}

.usps-account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.usps-account-header .material-icons {
  font-size: 32px;
  color: var(--primary);
}

.usps-account-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.usps-account-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usps-account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usps-account-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.usps-account-field span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Main Action Button */
.usps-main-action {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.btn-usps-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0071CE 0%, #005BA8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 113, 206, 0.3);
  letter-spacing: 0.3px;
}

.btn-usps-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 113, 206, 0.4);
}

.btn-usps-primary:active {
  transform: translateY(0);
}

.btn-usps-primary .material-icons {
  font-size: 24px;
}

/* USPS Features Grid */
.usps-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.usps-feature-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.usps-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.usps-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.usps-feature-icon .material-icons {
  font-size: 32px;
  color: white;
}

.usps-feature-card h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.usps-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Responsive Design for USPS Section */
@media (max-width: 768px) {
  .usps-header {
    padding: 24px;
  }
  
  .usps-logo {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .usps-logo-text h2 {
    font-size: 22px;
  }
  
  .usps-logo-text p {
    font-size: 14px;
  }
  
  .usps-quick-start {
    padding: 20px;
  }
  
  .usps-account-card {
    padding: 20px;
  }
  
  .btn-usps-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
  
  .usps-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .usps-logo-icon {
    width: 64px;
    height: 64px;
  }
  
  .usps-logo-icon .material-icons {
    font-size: 40px;
  }
  
  .usps-guide-list {
    padding-left: 32px;
  }
  
  .usps-guide-list li {
    font-size: 13px;
  }
  
  .usps-account-field span {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ===============================================
   SHIPPING LABELS TABLE STYLES
   =============================================== */

/* Ensure shipping section tables are full width */
.shipping-section .table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
}

/* Horizontal scroll for shipping tables */
.shipping-section .table-container {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: white;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Scroll shadow indicators */
.shipping-section .table-container::before,
.shipping-section .table-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 20px;
  width: 30px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}

.shipping-section .table-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.shipping-section .table-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

/* Custom scrollbar styling */
.shipping-section .table-container::-webkit-scrollbar {
  height: 10px;
}

.shipping-section .table-container::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 5px;
  margin: 0 4px;
}

.shipping-section .table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a0a0a0 0%, #888 100%);
  border-radius: 5px;
  border: 2px solid #f8f9fa;
}

.shipping-section .table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #888 0%, #666 100%);
}

.shipping-section .table-container::-webkit-scrollbar-thumb:active {
  background: #555;
}

.shipping-section .data-table {
  width: 100%;
  min-width: 900px; /* Ensure table has minimum width to trigger scroll */
  table-layout: auto;
  border-collapse: collapse;
}

.shipping-section .data-table th,
.shipping-section .data-table td {
  padding: 14px 16px;
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.shipping-section .data-table th:last-child,
.shipping-section .data-table td:last-child {
  text-align: center;
}

/* Override specific widths for better distribution */
#shipping-section-labels .data-table th:nth-child(1),
#shipping-section-labels .data-table td:nth-child(1) {
  width: 12%;
  min-width: 120px;
}

#shipping-section-labels .data-table th:nth-child(2),
#shipping-section-labels .data-table td:nth-child(2) {
  width: 12%;
  min-width: 100px;
}

#shipping-section-labels .data-table th:nth-child(3),
#shipping-section-labels .data-table td:nth-child(3) {
  width: 25%;
  min-width: 180px;
  white-space: normal;
}

#shipping-section-labels .data-table th:nth-child(4),
#shipping-section-labels .data-table td:nth-child(4) {
  width: 15%;
  min-width: 120px;
}

#shipping-section-labels .data-table th:nth-child(5),
#shipping-section-labels .data-table td:nth-child(5) {
  width: 10%;
  min-width: 80px;
}

#shipping-section-labels .data-table th:nth-child(6),
#shipping-section-labels .data-table td:nth-child(6) {
  width: 16%;
  min-width: 150px;
}

/* Shipping addresses table column widths */
#shipping-section-addresses .data-table th:nth-child(1),
#shipping-section-addresses .data-table td:nth-child(1) {
  width: 10%;
  min-width: 100px;
  white-space: nowrap;
}

#shipping-section-addresses .data-table th:nth-child(2),
#shipping-section-addresses .data-table td:nth-child(2) {
  width: 20%;
  min-width: 180px;
  white-space: normal;
  word-wrap: break-word;
}

#shipping-section-addresses .data-table th:nth-child(3),
#shipping-section-addresses .data-table td:nth-child(3) {
  width: 28%;
  min-width: 250px;
  white-space: normal;
  word-wrap: break-word;
  font-weight: 500;
}

#shipping-section-addresses .data-table th:nth-child(4),
#shipping-section-addresses .data-table td:nth-child(4) {
  width: 10%;
  min-width: 100px;
  white-space: nowrap;
}

#shipping-section-addresses .data-table th:nth-child(5),
#shipping-section-addresses .data-table td:nth-child(5) {
  width: 18%;
  min-width: 150px;
  white-space: normal;
}

#shipping-section-addresses .data-table th:nth-child(6),
#shipping-section-addresses .data-table td:nth-child(6) {
  width: 14%;
  min-width: 120px;
  white-space: nowrap;
}

/* Shipping labels table rows */
.shipping-label-row {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
}

.shipping-label-row:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shipping-label-row:last-child {
  border-bottom: none;
}

/* Slip button styling */
.slip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.slip-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.slip-btn:active {
  transform: translateY(0) scale(1);
}

.slip-btn .material-icons {
  font-size: 20px;
  color: white;
}

/* Tracking number copy button specific to labels */
#shipping-labels-table-body td button[title="Copy tracking number"] {
  opacity: 0;
  transition: all 0.2s ease;
}

#shipping-labels-table-body tr:hover td button[title="Copy tracking number"] {
  opacity: 1;
}

/* Action buttons in shipping labels */
#shipping-labels-table-body .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

#shipping-labels-table-body .action-btn .material-icons {
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

#shipping-labels-table-body .action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

#shipping-labels-table-body .action-btn:hover .material-icons {
  color: white;
}

#shipping-labels-table-body .action-btn:active {
  transform: translateY(0);
}

/* Specific action button styles */
#shipping-labels-table-body .action-btn[title="Print Label"]:hover {
  background: linear-gradient(135deg, #0071CE, #005BA8);
  border-color: #0071CE;
}

#shipping-labels-table-body .action-btn[title="Download Label"]:hover {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: #10B981;
}

/* Search and filter bar styling for labels */
#shipping-section-labels .action-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

#shipping-section-labels .search-bar {
  flex: 1;
  min-width: 250px;
  position: relative;
}

#shipping-section-labels .search-bar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 20px;
  pointer-events: none;
}

#shipping-section-labels .search-bar input {
  width: 100%;
  padding: 10px 12px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

#shipping-section-labels .search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#shipping-section-labels .filter-select {
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

#shipping-section-labels .filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#shipping-section-labels .filter-select:hover {
  border-color: var(--primary);
}

/* Responsive design for shipping labels */
@media (max-width: 992px) {
  #shipping-section-labels .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  #shipping-section-labels .search-bar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Stack table for mobile */
  .shipping-label-row {
    display: block;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .shipping-label-row td {
    display: block;
    text-align: left !important;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .shipping-label-row td:last-child {
    border-bottom: none;
  }
  
  .shipping-label-row td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .shipping-label-row td:last-child > div {
    justify-content: flex-start;
  }
  
  #shipping-labels-table-body .action-btn {
    width: 42px;
    height: 42px;
  }
  
  .slip-btn {
    width: 44px;
    height: 44px;
  }
  
  /* Better scroll experience on mobile */
  .shipping-section .table-container {
    margin: 0 -16px; /* Extend to edges on mobile */
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .shipping-section .data-table {
    min-width: 1000px; /* Wider on mobile to ensure scroll */
  }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1200px) {
  .shipping-section .table-container {
    overflow-x: auto;
  }
  
  .shipping-section .data-table {
    min-width: 1100px;
  }
  
  /* Show scroll hint on tablets */
  .shipping-section .table-container::after {
    opacity: 0.5;
  }
}

/* Add scroll hint indicator */
.shipping-section .table-container[data-scrollable="true"]::after {
  content: '→';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary);
  animation: scrollHint 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes scrollHint {
  0%, 100% {
    right: 10px;
    opacity: 0.7;
  }
  50% {
    right: 20px;
    opacity: 1;
  }
}

/* Hide scroll hint when scrolled */
.shipping-section .table-container.scrolled::after {
  display: none;
}

/* ===============================================
   TEAM SECTION TABLE STYLES
   =============================================== */

/* Team section tables full width with horizontal scroll */
.team-section .table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: white;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin: 0;
}

/* Scroll shadow indicators for team tables */
.team-section .table-container::before,
.team-section .table-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 20px;
  width: 30px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s;
}

.team-section .table-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

.team-section .table-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}

/* Custom scrollbar for team tables */
.team-section .table-container::-webkit-scrollbar {
  height: 10px;
}

.team-section .table-container::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 5px;
  margin: 0 4px;
}

.team-section .table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
  border: 2px solid #f8f9fa;
}

.team-section .table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2 0%, #667eea 100%);
}

.team-section .table-container::-webkit-scrollbar-thumb:active {
  background: #667eea;
}

/* Team section tables styling */
.team-section .data-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin: 0;
}

.team-section .data-table th {
  white-space: nowrap;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  background: #f8f9fa;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1;
}

.team-section .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-section .data-table tbody tr:hover {
  background: #f8f9fa;
  transition: background 0.2s ease;
}

/* Scroll hint for team tables */
.team-section .table-container[data-scrollable="true"]::after {
  content: '→';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #667eea;
  animation: teamScrollHint 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes teamScrollHint {
  0%, 100% {
    right: 10px;
    opacity: 0.7;
  }
  50% {
    right: 20px;
    opacity: 1;
  }
}

/* Hide scroll hint when scrolled */
.team-section .table-container.scrolled::after {
  display: none;
}

/* Mobile responsive for team tables */
@media (max-width: 768px) {
  .team-section .table-container {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .team-section .data-table {
    font-size: 13px;
  }
  
  .team-section .data-table th,
  .team-section .data-table td {
    padding: 10px 12px;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1200px) {
  .team-section .table-container::after {
    opacity: 0.5;
  }
}

/* ===========================
   LIVE CHAT STYLES
   =========================== */

.chat-status-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.chat-tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-tab-btn:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.chat-tab-btn.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.chat-tab-count {
  font-size: 12px;
  opacity: 0.8;
}

/* Chat table specific styles */
#live-chat-table tbody tr {
  transition: all 0.2s ease;
}

#live-chat-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Unread message row highlight */
#live-chat-table tbody tr[style*="border-left"] {
  animation: pulseUnread 2s ease-in-out infinite;
}

@keyframes pulseUnread {
  0%, 100% {
    background: rgba(59, 130, 246, 0.03);
  }
  50% {
    background: rgba(59, 130, 246, 0.08);
  }
}

/* Chat action buttons */
.btn-icon[title="Open Chat"] {
  background: #D97706 !important;
}

.btn-icon[title="Open Chat"]:hover {
  background: #B45309 !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.btn-icon[title="Mark as Read"] {
  background: #10B981 !important;
}

.btn-icon[title="Close Chat"] {
  background: #6B7280 !important;
}

.btn-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Unread count badge - Dark Green */
#live-chat-table td span[style*="background: #047857"] {
  animation: pulseNotificationGreen 1.5s ease-in-out infinite;
}

@keyframes pulseNotificationGreen {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(4, 120, 87, 0);
  }
}

/* Responsive adjustments for chat table */
@media (max-width: 768px) {
  .chat-status-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .chat-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  #live-chat-table {
    font-size: 12px;
  }
  
  #live-chat-table th,
  #live-chat-table td {
    padding: 8px 6px;
  }
}

/* ===========================
   CUSTOMER REQUESTS STYLES
   =========================== */

.request-status-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.request-tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.request-tab-btn:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.request-tab-btn.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.request-tab-count {
  font-size: 12px;
  opacity: 0.8;
}

/* Request table specific styles */
#customer-requests-table tbody tr {
  transition: all 0.2s ease;
}

#customer-requests-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Request action buttons */
#customer-requests-table .btn-icon[style*="background: #10B981"] {
  background: #10B981 !important;
}

#customer-requests-table .btn-icon[style*="background: #EF4444"] {
  background: #EF4444 !important;
}

#customer-requests-table .btn-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for requests table */
@media (max-width: 768px) {
  .request-status-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .request-tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  #customer-requests-table {
    font-size: 12px;
  }
  
  #customer-requests-table th,
  #customer-requests-table td {
    padding: 8px 6px;
  }
}

/* ===========================
   CHAT WINDOW MODAL STYLES
   =========================== */

#chat-window-modal .modal-content {
  height: 90vh;
}

#chat-messages-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

#chat-messages-container::-webkit-scrollbar {
  width: 8px;
}

#chat-messages-container::-webkit-scrollbar-track {
  background: transparent;
}

#chat-messages-container::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

#chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Chat message animations */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#chat-messages-container > div {
  animation: messageSlideIn 0.3s ease;
}

/* Admin reply message bubbles - Blue background */
#chat-messages-container div[style*="background: #3B82F6"] {
  background: #3B82F6 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  transition: all 0.2s ease;
}

#chat-messages-container div[style*="background: #3B82F6"]:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

/* Customer message bubbles - White background */
#chat-messages-container div[style*="background: white"][style*="border: 1px"] {
  transition: all 0.2s ease;
}

#chat-messages-container div[style*="background: white"][style*="border: 1px"]:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #D1D5DB !important;
}

/* Message input focus effect */
#chat-message-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Quick reply buttons */
#chat-send-form button[type="button"] {
  transition: all 0.2s ease;
}

#chat-send-form button[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Send button pulse on hover */
#chat-send-form button[type="submit"]:hover {
  animation: sendButtonPulse 0.5s ease;
}

@keyframes sendButtonPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Customer avatar in header */
#chat-customer-avatar {
  animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Message bubble hover effect */
#chat-messages-container > div:hover {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* Read receipt animation */
@keyframes readReceiptPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive chat modal */
@media (max-width: 768px) {
  #chat-window-modal .modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  
  #chat-message-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  #chat-send-form {
    flex-direction: column;
  }
  
  #chat-send-form button[type="submit"] {
    width: 100%;
    height: auto;
  }
}

/* Empty state styling */
#chat-messages-container .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Loading spinner in chat */
.loading-spinner {
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ===========================
   DATA REQUEST MODALS
   =========================== */

/* Notification animation */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Request modal styles */
#view-request-modal .modal-content {
  animation: modalFadeIn 0.3s ease;
}

#approve-request-modal .modal-content,
#reject-request-modal .modal-content {
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Request modal scrollbars */
#view-request-modal .modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

#view-request-modal .modal-body::-webkit-scrollbar {
  width: 8px;
}

#view-request-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

#view-request-modal .modal-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

#view-request-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* ===========================
   TEAM MANAGEMENT STYLES
   =========================== */

/* Team sub-navigation */
.team-subnav-btn {
  transition: all 0.2s ease;
}

.team-subnav-btn:hover {
  background: rgba(99, 102, 241, 0.05) !important;
  color: var(--primary-color) !important;
}

.team-subnav-btn.active {
  border-bottom: 3px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/* Team sections */
.team-section {
  animation: fadeIn 0.3s ease;
}

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

/* Team members table */
#team-members-table tbody tr {
  transition: all 0.2s ease;
}

#team-members-table tbody tr:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Activity log table */
#activity-log-table tbody tr {
  transition: all 0.2s ease;
}

#activity-log-table tbody tr:hover {
  background: #F9FAFB;
}

/* Department cards */
#team-lineup-grid > div {
  transition: all 0.3s ease;
}

#team-lineup-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-subnav {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .team-subnav-btn {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid var(--border-color) !important;
  }
  
  .team-subnav-btn.active {
    background: rgba(99, 102, 241, 0.1) !important;
    border-left: 4px solid var(--primary-color) !important;
  }
  
  #team-members-table tr,
  #activity-log-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  
  #team-members-table td,
  #activity-log-table td {
    display: block;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ===========================
   RIDERS / PICKUP REQUESTS STYLES
   =========================== */

/* Riders sub-navigation */
.riders-subnav-btn {
  transition: all 0.2s ease;
}

.riders-subnav-btn:hover {
  background: rgba(139, 92, 246, 0.05) !important;
  color: #8B5CF6 !important;
}

.riders-subnav-btn.active {
  border-bottom: 3px solid #8B5CF6 !important;
  color: #8B5CF6 !important;
  font-weight: 600 !important;
}

/* Riders sections */
.riders-section {
  animation: fadeIn 0.3s ease;
}

/* Pickup requests table */
#pickup-requests-table tbody tr,
#user-pickup-requests-table tbody tr {
  transition: all 0.2s ease;
}

#pickup-requests-table tbody tr:hover,
#user-pickup-requests-table tbody tr:hover {
  background: #F5F3FF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Pickup request modal */
#pickup-request-modal .form-group {
  margin-bottom: 16px;
}

#pickup-request-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}

#pickup-request-modal .form-group input,
#pickup-request-modal .form-group select,
#pickup-request-modal .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#pickup-request-modal .form-group input:focus,
#pickup-request-modal .form-group select:focus,
#pickup-request-modal .form-group textarea:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Pickup status colors */
.pickup-status-pending {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #D97706 !important;
}

.pickup-status-accepted {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #2563EB !important;
}

.pickup-status-arrived {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}

.pickup-status-completed {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4F46E5 !important;
}

/* Responsive for riders */
@media (max-width: 768px) {
  .riders-subnav {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .riders-subnav-btn {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid var(--border-color) !important;
  }
  
  .riders-subnav-btn.active {
    background: rgba(139, 92, 246, 0.1) !important;
    border-left: 4px solid #8B5CF6 !important;
  }
  
  #pickup-requests-table tr,
  #user-pickup-requests-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  
  #pickup-requests-table td,
  #user-pickup-requests-table td {
    display: block;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
  }
}

/* ===========================
   FOOD ORDERS STYLES
   =========================== */

/* Food orders table */
#food-orders-table tbody tr {
  transition: all 0.2s ease;
}

#food-orders-table tbody tr:hover {
  background: #FFFBEB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Food order modal */
#food-order-modal .form-group {
  margin-bottom: 16px;
}

#food-order-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}

#food-order-modal .form-group input,
#food-order-modal .form-group select,
#food-order-modal .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#food-order-modal .form-group input:focus,
#food-order-modal .form-group select:focus,
#food-order-modal .form-group textarea:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Food order status colors */
.food-status-pending {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #D97706 !important;
}

.food-status-preparing {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #2563EB !important;
}

.food-status-ready {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}

.food-status-delivered {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #4F46E5 !important;
}

/* Print button icon */
.btn-icon[title="Print Receipt"]:hover {
  background: #10B981 !important;
  color: white !important;
}

/* ===========================
   GUEST ORDERS STYLES
   =========================== */

/* Guest orders table */
#guest-orders-table tbody tr {
  transition: all 0.2s ease;
}

#guest-orders-table tbody tr:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Expired row styling */
#guest-orders-table tbody tr.expired-row {
  background: rgba(239, 68, 68, 0.05);
}

#guest-orders-table tbody tr.expired-row:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Status badge variations */
.status-success {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
}

.status-error {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #DC2626 !important;
}

/* Guest order modal form */
#guest-order-modal .form-group {
  margin-bottom: 16px;
}

#guest-order-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}

#guest-order-modal .form-group input,
#guest-order-modal .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#guest-order-modal .form-group input:focus,
#guest-order-modal .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===========================
   FOOD MENU MANAGEMENT STYLES
   =========================== */

/* Food sub-navigation */
.food-subnav-btn {
  transition: all 0.2s ease;
}

.food-subnav-btn:hover {
  background: rgba(99, 102, 241, 0.05) !important;
  color: var(--primary-color) !important;
}

.food-subnav-btn.active {
  border-bottom: 3px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
}

/* Food sections */
.food-section {
  animation: fadeIn 0.3s ease;
}

/* Food items table */
#food-items-table tbody tr,
#food-prices-table tbody tr,
#featured-items-table tbody tr,
#pickup-locations-table tbody tr,
#delivery-fees-table tbody tr {
  transition: all 0.2s ease;
}

#food-items-table tbody tr:hover,
#food-prices-table tbody tr:hover,
#featured-items-table tbody tr:hover,
#pickup-locations-table tbody tr:hover,
#delivery-fees-table tbody tr:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Button icon styles for food management */
.btn-icon-edit,
.btn-icon-delete {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-edit {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.btn-icon-edit:hover {
  background: var(--primary-color);
  color: white;
}

.btn-icon-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.btn-icon-delete:hover {
  background: #EF4444;
  color: white;
}

.btn-icon-edit .material-icons,
.btn-icon-delete .material-icons {
  font-size: 18px;
}

/* Food modal form styles */
#food-item-modal .form-group,
#food-price-modal .form-group,
#featured-item-modal .form-group,
#pickup-location-modal .form-group,
#delivery-fee-modal .form-group {
  margin-bottom: 16px;
}

#food-item-modal .form-group label,
#food-price-modal .form-group label,
#featured-item-modal .form-group label,
#pickup-location-modal .form-group label,
#delivery-fee-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}

#food-item-modal .form-group input,
#food-item-modal .form-group select,
#food-item-modal .form-group textarea,
#food-price-modal .form-group input,
#food-price-modal .form-group select,
#featured-item-modal .form-group input,
#featured-item-modal .form-group select,
#pickup-location-modal .form-group input,
#pickup-location-modal .form-group select,
#delivery-fee-modal .form-group input,
#delivery-fee-modal .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#food-item-modal .form-group input:focus,
#food-item-modal .form-group select:focus,
#food-item-modal .form-group textarea:focus,
#food-price-modal .form-group input:focus,
#food-price-modal .form-group select:focus,
#featured-item-modal .form-group input:focus,
#featured-item-modal .form-group select:focus,
#pickup-location-modal .form-group input:focus,
#pickup-location-modal .form-group select:focus,
#delivery-fee-modal .form-group input:focus,
#delivery-fee-modal .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments for food management */
@media (max-width: 768px) {
  .food-subnav {
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  .food-subnav-btn {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid var(--border-color) !important;
  }
  
  .food-subnav-btn.active {
    background: rgba(99, 102, 241, 0.1) !important;
    border-left: 4px solid var(--primary-color) !important;
  }
  
  #food-items-table tr,
  #food-prices-table tr,
  #featured-items-table tr,
  #pickup-locations-table tr,
  #delivery-fees-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  
  #food-items-table td,
  #food-prices-table td,
  #featured-items-table td,
  #pickup-locations-table td,
  #delivery-fees-table td {
    display: block;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
  }
  
  #team-members-table td:last-child,
  #activity-log-table td:last-child {
    border-bottom: none;
  }
  
  #team-lineup-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================
   TEAM MEMBER MODALS
   =========================== */

/* View Team Member Modal */
#view-team-member-modal .modal-content {
  animation: modalFadeIn 0.3s ease;
}

#view-team-member-modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

#view-team-member-modal-body::-webkit-scrollbar {
  width: 8px;
}

#view-team-member-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

#view-team-member-modal-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

#view-team-member-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Edit Team Member Modal */
#edit-team-member-modal .modal-content {
  animation: modalFadeIn 0.3s ease;
}

#edit-team-member-form .form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Team member action buttons in modals */
#team-member-modal-actions .btn {
  transition: all 0.2s ease;
}

#team-member-modal-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for team modals */
@media (max-width: 768px) {
  #view-team-member-modal .modal-content,
  #edit-team-member-modal .modal-content {
    max-width: 95%;
    margin: 20px;
  }
  
  #view-team-member-modal-body > div > div:first-child {
    flex-direction: column;
    text-align: center;
  }
  
  #edit-team-member-form > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===========================
   TEAM LINEUP CARDS
   =========================== */

.team-lineup-card {
  transition: all 0.3s ease;
}

.team-lineup-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

.team-lineup-card img {
  transition: transform 0.3s ease;
}

.team-lineup-card:hover img {
  transform: scale(1.05);
}

.team-lineup-card .btn-icon {
  transition: all 0.2s ease;
}

.team-lineup-card .btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.team-lineup-card .btn-icon:last-child:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Team lineup grid responsiveness */
@media (max-width: 1024px) {
  #team-lineup-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  #team-lineup-grid {
    grid-template-columns: 1fr !important;
  }
  
  .team-lineup-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .stat-card.card-black {
  background: #1a1a1a;
  border: 1px solid #333;
}

[data-theme="dark"] .stat-card.card-orange {
  background: #8B3A0A;
  border: 1px solid #A64A0C;
}

[data-theme="dark"] .login-container {
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .modal-content {
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .search-input,
[data-theme="dark"] .filter-input,
[data-theme="dark"] .filter-select {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .search-input:focus,
[data-theme="dark"] .filter-input:focus,
[data-theme="dark"] .filter-select:focus {
  border-color: var(--primary);
  background: var(--surface);
}

[data-theme="dark"] .inventory-table,
[data-theme="dark"] .data-table {
  background: var(--surface);
}

[data-theme="dark"] .inventory-table thead,
[data-theme="dark"] .data-table thead {
  background: var(--bg);
}

[data-theme="dark"] .inventory-table th,
[data-theme="dark"] .data-table th {
  color: var(--text-primary);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .inventory-table td,
[data-theme="dark"] .data-table td {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .inventory-table tbody tr:hover,
[data-theme="dark"] .data-table tbody tr:hover {
  background: var(--bg);
}

[data-theme="dark"] .sidebar {
  background: var(--surface);
  border-right-color: var(--border);
}

[data-theme="dark"] .nav-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .nav-link:hover {
  background: var(--bg);
  color: var(--text-primary);
}

[data-theme="dark"] .nav-link.active {
  background: var(--primary);
  color: white;
}

[data-theme="dark"] .nav-link .material-icons {
  color: #ffffff;
}

[data-theme="dark"] .app-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .section {
  background: transparent;
}

[data-theme="dark"] .card,
[data-theme="dark"] .analytics-card-section {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .empty-state {
  color: var(--text-secondary);
}

[data-theme="dark"] .status-badge {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .notifications-dropdown {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .user-dropdown {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .notification-item {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .notification-item:hover {
  background: var(--bg);
}

/* Dark mode styles for Revenue Trend chart */
[data-theme="dark"] .analytics-chart-section {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

[data-theme="dark"] .chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
}

[data-theme="dark"] .revenue-chart {
  background: var(--surface);
}

[data-theme="dark"] .revenue-chart-bars {
  background: var(--surface) !important;
}

[data-theme="dark"] .revenue-bar-value,
[data-theme="dark"] .revenue-bar-label {
  color: #ffffff !important;
}

[data-theme="dark"] .chart-placeholder {
  color: var(--text-primary);
}

[data-theme="dark"] .section-title {
  color: var(--text-primary);
}

/* Toast Notification Animations */
@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;
  }
}

/* AI Toggle Button Styles */
#ai-auto-reply-toggle {
  transition: all 0.2s ease;
}

#ai-auto-reply-toggle:hover {
  background: rgba(139, 92, 246, 0.25) !important;
  transform: scale(1.02);
}

#ai-auto-reply-toggle.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8B5CF6;
  color: #8B5CF6;
}

#ai-auto-reply-toggle.active .ai-pulse-indicator {
  background: #10B981;
  animation: pulse 2s infinite;
}

#ai-auto-reply-toggle:not(.active) {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-secondary);
}

#ai-auto-reply-toggle:not(.active) .ai-pulse-indicator {
  background: #9CA3AF;
  animation: none;
}

/* Pulse animation for AI indicator */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* AI Enhance Button Hover */
#ai-enhance-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

#ai-enhance-btn:active {
  transform: translateY(0);
}
