/* 
 * Dunamis Growth - Waiter Dashboard Styles
 * Waiter-specific theme and components
 */

/* Waiter Theme Colors */
.waiter-interface {
  --theme-primary: var(--waiter-primary);
  --theme-secondary: var(--waiter-secondary);
  --theme-light: var(--waiter-light);
}

/* Waiter Theme Components */
.waiter-theme {
  background: linear-gradient(135deg, var(--waiter-primary), var(--waiter-secondary));
  color: white;
}

.waiter-theme .stat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.waiter-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

/* Waiter Buttons */
.btn-waiter {
  background: var(--waiter-primary);
  color: white;
  border: none;
}

.btn-waiter:hover {
  background: var(--waiter-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* Sidebar Styling for Waiter */
.waiter-interface .sidebar {
  background: linear-gradient(180deg, var(--waiter-primary) 0%, var(--waiter-secondary) 100%);
}

.waiter-interface .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.waiter-interface .nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.waiter-interface .nav-link:hover,
.waiter-interface .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Tables Grid */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.table-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--waiter-primary);
}

.table-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.table-card.occupied {
  border-left-color: var(--error);
}

.table-card.available {
  border-left-color: var(--success);
}

.table-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.table-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.table-card.occupied .table-status {
  background: var(--error);
  color: white;
}

.table-card.available .table-status {
  background: var(--success);
  color: white;
}

.table-info {
  margin-bottom: 1rem;
}

.table-info p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* Code Generator */
.code-generator {
  max-width: 600px;
  margin: 0 auto;
}

.generator-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.generated-codes {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.codes-list {
  margin: 1rem 0;
}

.code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--waiter-light);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.code-item .code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--waiter-primary);
}

.code-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Reward Validator */
.reward-validator {
  max-width: 600px;
  margin: 0 auto;
}

.validator-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.validation-result {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.validation-success {
  color: var(--success);
}

.validation-success i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.validation-error {
  color: var(--error);
}

.validation-error i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Shift Information */
.shift-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.shift-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--waiter-primary);
}

.shift-card h3 {
  color: var(--waiter-primary);
  margin-bottom: 1.5rem;
}

.shift-details p,
.performance-stats p {
  margin: 0.75rem 0;
  display: flex;
  justify-content: space-between;
}

.status.active {
  color: var(--success);
  font-weight: 600;
}

/* Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--waiter-primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Profile Form */
.profile-form {
  max-width: 500px;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
}

/* Quick Actions */
.quick-actions {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.quick-actions h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tables-grid {
    grid-template-columns: 1fr;
  }
  
  .shift-info {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .code-actions {
    flex-direction: column;
  }
  
  .table-actions {
    flex-direction: column;
  }
  
  .code-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .generator-form,
  .validator-form,
  .profile-form {
    padding: 1.5rem;
  }
  
  .shift-card {
    padding: 1.5rem;
  }
  
  .table-card {
    padding: 1rem;
  }
}
