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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 50%, #020617 100%);
  color: white;
  padding: 24px;
  position: fixed;
  top: 40px; /* Account for demo banner */
  left: -280px; /* Hidden by default */
  height: calc(100vh - 40px);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 32px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
}

.logo-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.nav-item.active {
  background: rgba(16, 185, 129, 0.2);
  border-left: 4px solid #10b981;
  padding-left: 12px;
}

.nav-item.active .nav-text {
  color: #10b981;
  font-weight: 600;
}

.nav-item:not(.active) {
  opacity: 0.7;
}

.nav-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nav-item.active .nav-icon {
  background: #10b981;
}

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

.nav-badge {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  margin-left: auto;
}

/* Main Content */
.main-content {
  width: 100%;
  margin-left: 0; /* No margin by default */
  padding: 0;
  transition: margin-left 0.3s ease;
}

.header {
  background: white;
  padding: 24px 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e2e8f0;
}

.header-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.header-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
}

.header-meta {
  font-size: 12px;
  color: #94a3b8;
}

.header-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
}

.notification-icon {
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: 600;
}

.content {
  padding: 32px;
}

/* User Profile */
.user-profile {
  margin-top: auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.user-role {
  font-size: 11px;
  color: #94a3b8;
}

.online-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

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

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

/* Cards */
.card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.section-icon {
  width: 40px;
  height: 40px;
  background: #f0f9ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 12px;
  color: #64748b;
}

/* Tables */
.table-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.table-header {
  padding: 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.table-content {
  overflow-x: auto;
}

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

.table-head {
  background: #f8fafc;
}

.table-head th {
  padding: 12px 24px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-row {
  border-bottom: 1px solid #f1f5f9;
}

.table-row:hover {
  background: #f8fafc;
}

.table-cell {
  padding: 16px 24px;
  font-size: 13px;
}

/* Status Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.cooking {
  background: #fed7d7;
  color: #c53030;
}

.status-badge.ready {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge.delivery {
  background: #d1fae5;
  color: #1e40af;
}

.status-badge.completed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-dot.pending { background: #f59e0b; }
.status-dot.cooking { background: #ef4444; }
.status-dot.ready { background: #6366f1; }
.status-dot.delivery { background: #3b82f6; }
.status-dot.completed { background: #16a34a; }
.status-dot.cancelled { background: #dc2626; }

/* Customer Info */
.customer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.customer-name {
  font-weight: 500;
  color: #0f172a;
}

.customer-phone {
  font-size: 11px;
  color: #64748b;
}

/* Toggle Switches - Improved */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.toggle-group:last-child {
  border-bottom: none;
}

.toggle-info {
  flex: 1;
}

.toggle-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 2px;
}

.toggle-description {
  font-size: 12px;
  color: #64748b;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: all 0.3s ease;
  border-radius: 28px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle-input:checked + .toggle-slider {
  background-color: #10b981;
  box-shadow: inset 0 2px 4px rgba(16, 185, 129, 0.2);
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(24px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-slider:hover {
  background-color: #cbd5e1;
}

.toggle-input:checked + .toggle-slider:hover {
  background-color: #059669;
}

/* Filters */
.filters-section {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.filters-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0f172a;
}

.filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: #d1fae5;
  color: #1d4ed8;
}

.filter-pill:not(.active) {
  background: #f1f5f9;
  color: #64748b;
}

.search-box {
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  width: 300px;
}

/* Action Buttons */
.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 10px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
}

.action-btn.view {
  background: #f0f9ff;
  color: #0369a1;
}

.action-btn.edit {
  background: #fffbeb;
  color: #d97706;
}

.action-btn.cancel {
  background: #fef2f2;
  color: #dc2626;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* ======================
   DASHBOARD-SPECIFIC STYLES
   ====================== */

/* Dashboard-specific styles */
.header-top {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: clamp(16px, 3vw, 24px);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0; /* Prevent overflow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-header {
  display: flex;
  align-items: center;
  margin-bottom: clamp(12px, 2vw, 16px);
}

.stat-icon {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 3vw, 20px);
  margin-right: clamp(12px, 2vw, 16px);
  flex-shrink: 0;
}

.stat-icon.orders { background: #d1fae5; color: #10b981; }
.stat-icon.revenue { background: #dcfce7; color: #16a34a; }
.stat-icon.time { background: #fef3c7; color: #d97706; }
.stat-icon.bot { background: #f0fdf4; color: #16a34a; }

.stat-meta {
  font-size: clamp(10px, 1.5vw, 11px);
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.stat-value {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: #0f172a;
  margin: clamp(6px, 1vw, 8px) 0;
  line-height: 1.1;
}

.stat-change {
  font-size: 12px;
  font-weight: 500;
  color: #10b981;
}

.stat-target {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chart-header {
  margin-bottom: 16px;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.chart-subtitle {
  font-size: 12px;
  color: #64748b;
}

.chart-value {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  margin: 8px 0;
}

.chart-change {
  font-size: 12px;
  color: #10b981;
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 60px;
  margin-top: 16px;
}

.chart-bar {
  background: linear-gradient(to top, #10b981, #34d399);
  border-radius: 2px;
  width: 12px;
  opacity: 0.8;
}

.chart-bar.today {
  background: linear-gradient(to top, #10b981, #34d399);
  opacity: 1;
}

.activity-feed {
  margin-top: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.activity-dot.green { background: #10b981; }
.activity-dot.blue { background: #3b82f6; }
.activity-dot.orange { background: #f59e0b; }

.activity-text {
  font-size: 11px;
  color: #0f172a;
}

.orders-table {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.table-link {
  font-size: 12px;
  color: #10b981;
  text-decoration: none;
}

.table-filters {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
}

.order-details {
  color: #64748b;
}

.order-extras {
  font-size: 11px;
  color: #94a3b8;
}

.order-total {
  font-weight: 600;
  color: #0f172a;
}

.order-time {
  color: #64748b;
}

.order-time-relative {
  font-size: 10px;
  color: #94a3b8;
}

/* ======================
   PEDIDOS-SPECIFIC STYLES
   ====================== */

/* Pedidos-specific styles */
.order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin-bottom: 32px;
}

.stat-icon.pending { background: #fef3c7; color: #d97706; }
.stat-icon.cooking { background: #fed7d7; color: #e53e3e; }
.stat-icon.delivery { background: #d1fae5; color: #10b981; }
.stat-icon.completed { background: #dcfce7; color: #16a34a; }

.orders-count {
  font-size: 12px;
  color: #64748b;
  margin-left: 8px;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.table-head th {
  padding: 16px 24px;
}

.table-cell {
  padding: 20px 24px;
  vertical-align: top;
}

.order-id {
  font-weight: 600;
  color: #10b981;
}

.customer-name {
  margin-bottom: 2px;
}

.order-items {
  max-width: 250px;
}

.order-main-item {
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 4px;
}

.payment-method {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.status-badge.ready {
  background: #e0e7ff;
  color: #3730a3;
}

.status-dot.ready { background: #6366f1; }

.delivery-time {
  font-size: 11px;
  color: #059669;
  margin-top: 2px;
}

.table-actions-cell {
  text-align: center;
}

/* ======================
   PERFIL-SPECIFIC STYLES
   ====================== */

/* Profile Layout */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

/* Profile Card */
.profile-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 32px;
}

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

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  margin: 0 auto 16px;
  position: relative;
  overflow: hidden;
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 3px solid white;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #dcfce7;
  color: #166534;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Settings Sections */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Security Section */
.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.security-info {
  flex: 1;
}

.security-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 2px;
}

.security-status {
  font-size: 12px;
  color: #64748b;
}

.security-status.secure {
  color: #059669;
}

.security-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.security-action.change {
  background: #fef3c7;
  color: #92400e;
}

.security-action.enable {
  background: #dcfce7;
  color: #166534;
}

/* Activity Log */
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.activity-icon.login { background: #dcfce7; color: #166534; }
.activity-icon.settings { background: #fef3c7; color: #92400e; }
.activity-icon.order { background: #d1fae5; color: #047857; }
.activity-icon.logout { background: #fee2e2; color: #991b1b; }

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 2px;
}

.activity-description {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.activity-time {
  font-size: 11px;
  color: #94a3b8;
}

/* ======================
   MENU-SPECIFIC STYLES
   ====================== */

/* Search and Filter Bar */
.search-bar {
  background: white;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #10b981;
  background: white;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.filter-btn:not(.active) {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Category Tabs */
.category-tabs {
  background: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.category-tab {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab.active {
  background: #10b981;
  color: white;
}

.category-tab:not(.active) {
  background: #f1f5f9;
  color: #64748b;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.product-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.product-image.pizza {
  background: #fed7aa;
}

.product-image.burger {
  background: #fecaca;
}

.product-image.drink {
  background: #ddd6fe;
}

.product-image.fries {
  background: #fef3c7;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.product-description {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #059669;
}

.product-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
}

.badge.stock {
  background: #dcfce7;
  color: #166534;
}

.badge.low-stock {
  background: #fee2e2;
  color: #991b1b;
}

.badge.popular {
  background: #fef3c7;
  color: #92400e;
}

.badge.out-stock {
  background: #f3f4f6;
  color: #6b7280;
}

.product-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active .toggle-handle {
  transform: translateX(20px);
}

.product-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.status-available {
  color: #059669;
}

.status-unavailable {
  color: #dc2626;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.action-btn.restock {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.action-btn.menu {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* Stats Bar */
.stats-bar {
  background: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 16px;
}

.stat-pill {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.stat-pill.active {
  background: #e0f2fe;
  color: #0369a1;
}

.stat-pill.low {
  background: #fef3c7;
  color: #d97706;
}

.stat-pill.out {
  background: #fee2e2;
  color: #dc2626;
}

.stat-pill.bestseller {
  background: #f0fdf4;
  color: #166534;
}

.stat-pill.revenue {
  background: #fdf4ff;
  color: #a855f7;
}

/* ======================
   CONFIG-SPECIFIC STYLES
   ====================== */

/* Tab Navigation */
.tab-navigation {
  background: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active {
  background: #10b981;
  color: white;
}

.tab-btn:not(.active) {
  background: #f1f5f9;
  color: #64748b;
}

/* Main Configuration Panel */
.config-panel {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.btn-settings {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* Bot Status Section */
.status-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 32px;
}

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

.status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-details h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
}

.status-details p {
  font-size: 12px;
  color: #059669;
}

.status-meta {
  font-size: 11px;
  color: #16a34a;
  margin-top: 4px;
}

.master-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  background: #10b981;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

/* Personality Section */
.personality-section {
  margin-bottom: 32px;
}

.personality-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.personality-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.tone-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 12px;
}

.tone-options {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.tone-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tone-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tone-btn:not(.active) {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Feature Toggles */
.features-section {
  margin-bottom: 32px;
}

.features-title {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.feature-info {
  flex: 1;
  margin-right: 16px;
}

.feature-name {
  font-size: 12px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 4px;
}

.feature-description {
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
}

.toggle-switch.enabled {
  background: #10b981;
}

.toggle-switch .toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch.enabled .toggle-knob {
  transform: translateX(24px);
}

/* Advanced Settings */
.advanced-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  margin-top: 24px;
}

.advanced-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advanced-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.advanced-item:last-child {
  margin-bottom: 0;
}

.advanced-label {
  font-size: 11px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  width: 16px;
  height: 16px;
  background: #f3f4f6;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #6b7280;
  cursor: help;
}

.select-input {
  padding: 6px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 10px;
  color: #374151;
  min-width: 100px;
}

/* Performance Indicators */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.performance-card {
  text-align: center;
  padding: 16px 12px;
  border-radius: 12px;
}

.performance-card.blue {
  background: #e0f2fe;
}

.performance-card.green {
  background: #f0fdf4;
}

.performance-card.orange {
  background: #fef3c7;
}

.performance-card.purple {
  background: #fdf4ff;
}

.performance-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.performance-value.blue { color: #0369a1; }
.performance-value.green { color: #059669; }
.performance-value.orange { color: #d97706; }
.performance-value.purple { color: #a855f7; }

.performance-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}

.performance-label.blue { color: #0369a1; }
.performance-label.green { color: #059669; }
.performance-label.orange { color: #d97706; }
.performance-label.purple { color: #a855f7; }

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  margin-left: 4px;
}

.bot-status-widget {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.status-title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-text {
  font-size: 11px;
  color: #6ee7b7;
}

.status-metric {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 2px;
}

/* ======================
   ANALYTICS-SPECIFIC STYLES
   ====================== */

/* Charts Layout */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.chart-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Revenue Chart */
.revenue-chart {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 20px;
  padding: 0 8px;
}

.chart-bar {
  border-radius: 4px 4px 0 0;
  transition: all 0.2s;
  position: relative;
  cursor: pointer;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-bar.day-1 { width: 18px; height: 45px; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.chart-bar.day-2 { width: 18px; height: 60px; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.chart-bar.day-3 { width: 18px; height: 75px; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.chart-bar.day-4 { width: 18px; height: 55px; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.chart-bar.day-5 { width: 18px; height: 85px; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.chart-bar.day-6 { width: 18px; height: 70px; background: linear-gradient(to top, #3b82f6, #60a5fa); }
.chart-bar.day-7 { width: 18px; height: 95px; background: linear-gradient(to top, #10b981, #34d399); box-shadow: 0 0 12px rgba(16, 185, 129, 0.3); }

.chart-labels {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  padding: 0 8px;
}

.chart-label {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  width: 18px;
}

.chart-label.today {
  color: #10b981;
  font-weight: 600;
}

/* Top Products */
.top-products {
  margin-top: 20px;
}

.product-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.rank-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.rank-1 { background: #f59e0b; }
.rank-2 { background: #6b7280; }
.rank-3 { background: #d97706; }
.rank-4 { background: #94a3b8; }
.rank-5 { background: #cbd5e1; color: #000; }

.product-count {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.count-1 { background: #10b981; }
.count-2 { background: #3b82f6; }
.count-3 { background: #ef4444; }
.count-4 { background: #fbbf24; color: #000; }
.count-5 { background: #9ca3af; }

/* Hourly Chart */
.hourly-chart {
  height: 80px;
  display: flex;
  align-items: end;
  gap: 4px;
  margin-top: 16px;
}

.hour-bar {
  width: 12px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #8b5cf6, #a78bfa);
}

.hour-bar.peak {
  background: linear-gradient(to top, #10b981, #34d399);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.hour-bar.high {
  background: linear-gradient(to top, #f59e0b, #fbbf24);
}

.hour-labels {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.hour-label {
  font-size: 8px;
  color: #94a3b8;
  text-align: center;
  width: 12px;
}

.hour-label.peak {
  color: #10b981;
  font-weight: 600;
}

.hour-label.high {
  color: #f59e0b;
  font-weight: 600;
}

/* Customer Satisfaction */
.satisfaction-display {
  text-align: center;
  margin-top: 20px;
}

.satisfaction-score {
  font-size: 48px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 8px;
}

.satisfaction-stars {
  font-size: 24px;
  color: #fbbf24;
  margin-bottom: 8px;
}

.satisfaction-reviews {
  font-size: 12px;
  color: #64748b;
}

/* Bot Metrics */
.bot-metrics {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.metrics-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.metrics-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 20px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  text-align: center;
  padding: 16px 12px;
  border-radius: 12px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
  margin-left: 4px;
}

.sidebar-summary {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.summary-title {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.summary-item {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.summary-item.positive {
  color: #6ee7b7;
}

.summary-item.warning {
  color: #fbbf24;
}

/* Menu Page Specific Styles */
.menu-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.stat-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 16px;
}

.stat-icon.products { background: #d1fae5; color: #10b981; }
.stat-icon.categories { background: #dcfce7; color: #16a34a; }
.stat-icon.revenue { background: #fef3c7; color: #d97706; }
.stat-icon.popular { background: #f0fdf4; color: #166534; }

.stat-meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0;
}

.stat-change {
  font-size: 12px;
  font-weight: 500;
  color: #10b981;
}

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

.menu-item-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.menu-item-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
}

.menu-item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.menu-item-badge.available {
  background: #dcfce7;
  color: #166534;
}

.menu-item-badge.unavailable {
  background: #fee2e2;
  color: #991b1b;
}

.menu-item-content {
  padding: 20px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.menu-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.menu-item-category {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item-price {
  font-size: 20px;
  font-weight: 700;
  color: #16a34a;
}

.menu-item-description {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.menu-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.menu-item-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

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

.stock-indicator.high { background: #16a34a; }
.stock-indicator.medium { background: #f59e0b; }
.stock-indicator.low { background: #ef4444; }

.menu-item-orders {
  font-size: 12px;
  color: #64748b;
}

.menu-item-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.availability-switch {
  position: relative;
  width: 54px;
  height: 30px;
}

.availability-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: all 0.3s ease;
  border-radius: 30px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.availability-switch input:checked + .switch-slider {
  background-color: #16a34a;
  box-shadow: inset 0 2px 4px rgba(22, 163, 74, 0.2);
}

.availability-switch input:checked + .switch-slider:before {
  transform: translateX(24px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.switch-slider:hover {
  background-color: #cbd5e1;
}

.availability-switch input:checked + .switch-slider:hover {
  background-color: #15803d;
}

/* Add focus styles for accessibility */
.availability-switch input:focus + .switch-slider {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.toggle-switch input:focus + .toggle-slider {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.menu-item-actions {
  display: flex;
  gap: 8px;
}

.menu-action-btn {
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.menu-action-btn.edit {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #e0f2fe;
}

.menu-action-btn.edit:hover {
  background: #e0f2fe;
}

.menu-action-btn.delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fee2e2;
}

.menu-action-btn.delete:hover {
  background: #fee2e2;
}

.add-menu-item {
  background: white;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 200px;
}

.add-menu-item:hover {
  border-color: #10b981;
  background: #f8fafc;
}

.add-icon {
  width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #64748b;
  margin-bottom: 16px;
}

.add-text {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.add-description {
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* Analytics Page Specific Styles */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.chart-header {
  margin-bottom: 20px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.chart-subtitle {
  font-size: 12px;
  color: #64748b;
}

.chart-value {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  margin: 8px 0;
}

.chart-change {
  font-size: 12px;
  color: #10b981;
}

.chart-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-top: 16px;
}

.chart-container canvas {
  max-height: 100%;
}

/* Config Page Specific Styles */
.bot-status-widget {
  margin-top: auto;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.status-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  font-size: 13px;
  font-weight: 500;
  color: white;
}

.status-metric {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.tab-navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 16px;
}

.tab-btn {
  padding: 12px 20px;
  border: none;
  background: #f8fafc;
  color: #64748b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #10b981;
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #e2e8f0;
  color: #374151;
}

.config-panel {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 32px;
}

.status-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 32px;
}

.config-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f1f5f9;
}

.config-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.config-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-section-icon {
  font-size: 18px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.config-item-info {
  flex: 1;
}

.config-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 4px;
}

.config-item-description {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.config-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.config-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.config-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: all 0.3s ease;
  border-radius: 28px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.config-switch-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.config-switch input:checked + .config-switch-slider {
  background-color: #10b981;
  box-shadow: inset 0 2px 4px rgba(16, 185, 129, 0.2);
}

.config-switch input:checked + .config-switch-slider:before {
  transform: translateX(24px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.config-switch-slider:hover {
  background-color: #cbd5e1;
}

.config-switch input:checked + .config-switch-slider:hover {
  background-color: #059669;
}

.config-switch input:focus + .config-switch-slider {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Additional styles for menu page */
.product-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.product-status.status-available {
  color: #16a34a;
}

.product-status.status-unavailable {
  color: #dc2626;
}

.menu-item-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.product-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.edit {
  background: #f0f9ff;
  color: #0369a1;
}

.action-btn.menu {
  background: #f8fafc;
  color: #64748b;
}

/* Mobile-First Responsive Design */

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 60px;
  left: 20px;
  z-index: 9999; /* Just below demo banner but above sidebar */
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn:hover {
  background: #059669;
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
  /* Base adjustments for very small screens */
  .container {
    padding: 0 10px;
  }

  .demo-banner {
    padding: 6px 8px;
    font-size: 11px;
    flex-direction: row;
    justify-content: space-between;
    height: 35px; /* Fixed height to prevent expansion */
  }

  .demo-banner-text {
    flex-direction: row;
    gap: 6px;
    text-align: left;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .demo-banner-btn {
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  body {
    padding-top: 35px; /* Reduced to match banner height */
  }

  /* Sidebar adjustments */
  .sidebar {
    width: 100%;
    position: fixed;
    top: 35px; /* Adjusted for smaller banner */
    left: -100%;
    height: calc(100vh - 35px);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 20px 15px;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
    top: 42px; /* Positioned just below the smaller banner */
    left: 15px;
    z-index: 9999;
  }

  /* Main content adjustments */
  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 20px 15px;
  }

  /* Header adjustments */
  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }

  .content-header h2 {
    font-size: 20px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  /* Stats grid - force single column on very small screens */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: clamp(12px, 2vw, 16px);
  }

  /* Filters and search */
  .filters-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .search-box,
  .filter-select {
    width: 100%;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }


  /* Charts adjustments */
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .chart-card {
    padding: 15px;
  }

  /* Menu specific */
  .menu-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 15px;
  }

  /* Config specific */
  .config-grid {
    grid-template-columns: 1fr;
  }

  .config-section {
    padding: 15px;
  }

  /* Tab navigation */
  .tab-navigation {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Form elements */
  .form-input,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Responsive table for screens under 700px */
@media (max-width: 700px) {
  /* Table responsive - Card layout for mobile */
  .table-content {
    overflow: visible;
  }

  .table-content table,
  .table-content tbody,
  .table-head,
  .table-row {
    display: block;
    width: 100%;
  }

  .table-head {
    display: none; /* Hide header on mobile */
  }

  .table-content tbody {
    width: 100%;
  }

  .table-row {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    width: 100%;
    display: block;
  }

  .table-row:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .table-cell {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    border: none;
    text-align: left;
    width: 100%;
  }

  .table-cell:before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }

  /* Specific mobile table styles for order data */
  .order-id {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
  }

  .customer-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
  }

  .order-items {
    margin-bottom: 8px;
  }

  .order-total {
    font-size: 16px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 8px;
  }

  .status-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 8px;
  }

  .order-time {
    font-size: 14px;
    color: #64748b;
  }

  .order-time-relative {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
  }

  /* Action buttons in mobile cards */
  .table-actions-cell {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
  }

  .action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
  }

  .action-btn.view {
    background: #eff6ff;
    color: #1e40af;
  }

  .action-btn.edit {
    background: #f0fdf4;
    color: #166534;
  }

  .action-btn.cancel {
    background: #fef2f2;
    color: #dc2626;
  }

  .action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Search bar responsive */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .search-input {
    width: 100%;
    order: 1;
  }

  .filter-btn {
    padding: 10px 14px;
    font-size: 13px;
    min-width: auto;
    flex: 1;
  }

  /* Category tabs responsive */
  .category-tabs {
    padding: 12px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
  }

  /* Charts responsive */
  .charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .chart-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .chart-container {
    height: clamp(150px, 25vh, 200px);
    margin-top: 12px;
  }

  .chart-header {
    margin-bottom: 12px;
  }

  .chart-title {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .chart-subtitle {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .chart-value {
    font-size: 18px;
    margin: 6px 0;
  }

  .chart-change {
    font-size: 11px;
  }

  .chart-meta {
    font-size: 10px;
    margin-top: 3px;
  }

  /* Profile layout responsive */
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-card {
    position: static;
    top: auto;
    padding: 20px;
    margin-bottom: 20px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .settings-container {
    gap: 16px;
  }

  .settings-section {
    padding: 16px;
  }

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

/* Mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }

  /* Stats grid - allow 2 columns max on mid-size mobile */
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(15px, 2.5vw, 20px);
  }

  /* Menu stats - 2 columns */
  .menu-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Menu grid - 2 columns */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Charts - single column */
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: clamp(180px, 30vh, 240px);
  }

  /* Profile layout for medium screens */
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-card {
    position: static;
    padding: 24px;
  }

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

  /* Filters row */
  .filters-row {
    flex-direction: column;
    gap: 15px;
  }

  .search-box {
    width: 100%;
  }

  /* Note: Table styling handled by 700px media query */

  /* Config grid */
  .config-grid {
    grid-template-columns: 1fr;
  }

  /* Tab navigation */
  .tab-navigation {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    width: 240px;
    left: -240px; /* Hidden by default on tablets */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

  /* Stats grid - allow 3 columns max on tablets */
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(16px, 2vw, 20px);
  }

  /* Menu grid - 2 columns */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Charts - 2 columns max */
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-container {
    height: clamp(200px, 35vh, 280px);
  }

  /* Profile layout for tablets */
  .profile-layout {
    grid-template-columns: 1fr 1.5fr;
    gap: 28px;
  }

  .profile-card {
    padding: 28px;
  }

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

  /* Menu stats - 3 columns */
  .menu-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1025px+) - Show sidebar automatically */
@media (min-width: 1025px) {
  .mobile-menu-btn {
    display: none;
  }

  .sidebar {
    left: 0; /* Show sidebar automatically */
  }

  .main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
  }

  .main-content .content {
    padding: 32px !important;
  }

  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Large screens (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }

  .charts-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }

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

/* Print styles */
@media print {
  .sidebar,
  .mobile-menu-btn,
  .demo-banner {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .chart-card {
    break-inside: avoid;
  }
}

/* Dark mode support (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
  /* This can be expanded later for dark mode support */
}

/* DEMO BANNER */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #10b981, #047857);
  color: white;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000; /* Increased to be above everything */
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.demo-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-banner-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-banner-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Adjust body padding to account for demo banner */
body {
  padding-top: 40px;
}

/* SPECIFIC STYLES FOR MENU PAGE SWITCHES - OVERRIDE ANY CONFLICTS */
.product-card .config-switch {
  position: relative;
  width: 52px !important;
  height: 28px !important;
}

.product-card .config-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.product-card .config-switch-slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 52px !important;
  height: 28px !important;
  background-color: #e2e8f0 !important;
  transition: all 0.3s ease !important;
  border-radius: 28px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: block !important;
}

.product-card .config-switch-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 24px !important;
  width: 24px !important;
  left: 2px !important;
  bottom: 2px !important;
  background-color: white !important;
  transition: all 0.3s ease !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.product-card .config-switch input[type="checkbox"]:checked + .config-switch-slider,
.product-card label.config-switch input:checked + span.config-switch-slider {
  background-color: #10b981 !important;
  box-shadow: inset 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

.product-card .config-switch input:checked + .config-switch-slider:before {
  transform: translateX(24px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.product-card .config-switch-slider:hover {
  background-color: #cbd5e1 !important;
}

.product-card .config-switch input:checked + .config-switch-slider:hover {
  background-color: #059669 !important;
}