/* Order Management Styles */

/* Workflow Timeline Styles */
.workflow-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.workflow-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.workflow-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
}

.workflow-header .order-info {
  margin-top: 15px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.workflow-header .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.workflow-header .info-item i {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Workflow Instructions */
.workflow-instructions {
  margin-bottom: 30px;
}

.workflow-instructions .alert {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workflow-instructions .alert-info {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-left: 4px solid #2196f3;
}

.workflow-instructions .alert-heading {
  color: #1976d2;
  font-weight: 600;
}

/* Timeline Styles */
.timeline-container {
  position: relative;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  margin-bottom: 40px;
  padding-left: 120px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.step-circle.completed {
  background: linear-gradient(135deg, #4caf50, #45a049);
}

.step-circle.current {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  animation: pulse 2s infinite;
}

.step-circle.pending {
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.step-content {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.step-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.step-status.completed {
  background: #e8f5e8;
  color: #2e7d32;
}

.step-status.current {
  background: #fff3e0;
  color: #e65100;
}

.step-status.pending {
  background: #f5f5f5;
  color: #757575;
}

.step-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.step-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-step {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-step:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-start {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.btn-start:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-complete {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
}

.btn-complete:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.btn-next {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

/* Employee Selection Modal */
.employee-selection {
  margin-top: 20px;
}

.employee-selection h6 {
  margin-bottom: 15px;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-info-header {
  text-align: center;
  margin-bottom: 20px;
}

.step-info-header h6 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.employee-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #f8f9fa;
}

.employee-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.employee-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.employee-card.selected {
  border-color: #667eea;
  background: #f0f4ff;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.employee-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.employee-info {
  flex: 1;
}

.employee-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.employee-role {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.employee-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.employee-select {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #667eea;
  font-size: 1.2rem;
}

.employee-card.selected .employee-select {
  opacity: 1;
}

/* No Employees Message */
.no-employees-message {
  margin: 20px 0;
}

.no-employees-message .alert {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-employees-message .alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-left: 4px solid #ffc107;
}

.no-employees-message h6 {
  color: #856404;
  font-weight: 600;
}

.no-employees-message p {
  color: #856404;
  font-size: 0.9rem;
}

/* Order Details */
.order-details {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.order-details h3 {
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-summary {
  margin-bottom: 25px;
}

.info-group {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

.info-group h5 {
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  font-weight: 500;
  color: #666;
}

.info-item .value {
  font-weight: 600;
  color: #333;
}

.info-item .value.total-amount {
  color: #e74c3c;
  font-size: 1.1rem;
}

.order-items {
  margin-top: 20px;
}

.order-items h5 {
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  margin-bottom: 10px;
}

.item-info {
  flex: 1;
}

.item-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.item-quantity {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.item-type {
  color: #888;
  font-size: 0.85rem;
  font-style: italic;
}

.item-price {
  font-weight: 600;
  color: #667eea;
}

/* Step Details in Timeline */
.order-details-step {
  background: #f0f4ff;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #667eea;
}

.order-details-step h6 {
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.detail-label {
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
}

.detail-value {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

/* Step Time Information */
.step-time-info {
  margin: 15px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #17a2b8;
}

.time-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.time-item:last-child {
  margin-bottom: 0;
}

.time-item i {
  color: #17a2b8;
  width: 16px;
}

/* Step Notes and Status */
.step-note {
  margin-top: 10px;
  padding: 8px 12px;
  background: #e3f2fd;
  border-radius: 6px;
  border-left: 3px solid #2196f3;
}

.step-completed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #e8f5e8;
  border-radius: 8px;
  border-left: 3px solid #4caf50;
}

.step-pending {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 3px solid #9e9e9e;
}

/* Step Start Indicator */
.step-start-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.step-start-indicator i {
  font-size: 1rem;
}

/* Order Cards for Pending Orders List */
.orders-list {
  margin-top: 20px;
}

.order-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.order-id {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.order-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.order-type.takeaway {
  background: #fff3cd;
  color: #856404;
}

.order-type.dine-in {
  background: #d1ecf1;
  color: #0c5460;
}

.order-status {
  margin-bottom: 15px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-preparing {
  background: #cce5ff;
  color: #004085;
}

.status-ready {
  background: #d1ecf1;
  color: #0c5460;
}

.status-served {
  background: #e2e3e5;
  color: #383d41;
}

.order-details {
  margin-bottom: 15px;
}

.order-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #666;
}

.order-detail i {
  width: 16px;
  color: #667eea;
}

.order-items {
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.9rem;
}

.customer-info {
  margin-bottom: 15px;
  padding: 10px;
  background: #f0f4ff;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.customer-info strong {
  color: #333;
  font-size: 0.9rem;
}

.order-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-actions .btn {
  flex: 1;
  min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  .workflow-header .order-info {
    flex-direction: column;
    gap: 10px;
  }

  .timeline-step {
    padding-left: 80px;
  }

  .step-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .timeline-line {
    left: 30px;
  }

  .employee-list {
    grid-template-columns: 1fr;
  }

  .order-actions {
    flex-direction: column;
  }

  .order-actions .btn {
    min-width: auto;
  }
}
.step-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.step-header {
  text-align: center;
  margin-bottom: 30px;
}

.step-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.step-header p {
  color: #7f8c8d;
  font-size: 16px;
}

.step-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #ecf0f1;
}

.step-tab {
  padding: 15px 30px;
  margin: 0 10px;
  background: #ecf0f1;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #7f8c8d;
}

.step-tab.active {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
}

.step-tab:hover:not(.active) {
  background: #bdc3c7;
  color: white;
}

.step-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  min-height: 500px;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.form-section {
  margin-bottom: 25px;
}

.form-section h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #2c3e50;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 2px solid #ecf0f1;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #229954;
  transform: translateY(-1px);
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-warning:hover {
  background: #e67e22;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
  transform: translateY(-1px);
}

.order-card {
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.order-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.order-id {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}

.order-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.order-type.dine-in {
  background: #e8f5e8;
  color: #27ae60;
}

.order-type.takeaway {
  background: #fff3cd;
  color: #f39c12;
}

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.order-detail {
  display: flex;
  align-items: center;
}

.order-detail i {
  margin-right: 8px;
  color: #7f8c8d;
  width: 16px;
}

.order-items {
  margin-bottom: 15px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ecf0f1;
}

.order-item:last-child {
  border-bottom: none;
}

.order-actions {
  display: flex;
  gap: 10px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #d4edda;
  color: #155724;
}

.status-processing {
  background: #cce5ff;
  color: #004085;
}

.status-completed {
  background: #d1ecf1;
  color: #0c5460;
}

.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.menu-item {
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item:hover {
  border-color: #3498db;
  transform: translateY(-2px);
}

.menu-item.selected {
  border-color: #27ae60;
  background: #e8f5e8;
}

.menu-item h6 {
  margin: 0 0 8px 0;
  color: #2c3e50;
}

.menu-item .price {
  color: #e74c3c;
  font-weight: bold;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #bdc3c7;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #ecf0f1;
}

.quantity-input {
  width: 50px;
  text-align: center;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  padding: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .step-container {
    padding: 10px;
  }

  .step-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .step-tab {
    margin: 0;
    border-radius: 8px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .order-details {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .order-actions {
    flex-direction: column;
  }
}
