/* 
 * 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;
  }
}

.waiter-interface .table-card,
.waiter-interface .generator-form,
.waiter-interface .generated-codes,
.waiter-interface .validator-form,
.waiter-interface .validation-result,
.waiter-interface .shift-card,
.waiter-interface .profile-form,
.waiter-interface .quick-actions,
.waiter-interface .modal-content,
.waiter-interface .settings-section,
.waiter-interface .setting-item,
.waiter-interface .password-section {
  color: #212121 !important;
}

.waiter-interface .table-card *,
.waiter-interface .generator-form *,
.waiter-interface .generated-codes *,
.waiter-interface .validator-form *,
.waiter-interface .validation-result *,
.waiter-interface .shift-card *,
.waiter-interface .profile-form *,
.waiter-interface .quick-actions *,
.waiter-interface .modal-content *,
.waiter-interface .settings-section *,
.waiter-interface .setting-item *,
.waiter-interface .password-section * {
  color: #212121 !important;
}

.waiter-interface .table-info p,
.waiter-interface .shift-details p,
.waiter-interface .performance-stats p,
.waiter-interface .setting-description,
.waiter-interface .modal-body p,
.waiter-interface .form-help,
.waiter-interface .help-text {
  color: #4b5563 !important;
}

.waiter-interface input,
.waiter-interface select,
.waiter-interface textarea,
.waiter-interface .form-control {
  color: #111827 !important;
  background-color: #ffffff !important;
}

.waiter-interface input::placeholder,
.waiter-interface textarea::placeholder {
  color: #6b7280 !important;
}

.waiter-interface .table-card.occupied .table-status,
.waiter-interface .table-card.available .table-status,
.waiter-interface .btn-waiter,
.waiter-interface .btn-waiter *,
.waiter-interface .btn-primary,
.waiter-interface .btn-primary *,
.waiter-interface .primary-button,
.waiter-interface .primary-button *,
.waiter-interface .action-btn,
.waiter-interface .action-btn *,
.waiter-interface .save-btn,
.waiter-interface .save-btn *,
.waiter-interface .danger-btn,
.waiter-interface .danger-btn *,
.waiter-interface .validation-success,
.waiter-interface .validation-success *,
.waiter-interface .validation-error,
.waiter-interface .validation-error *,
.waiter-interface .sidebar,
.waiter-interface .sidebar * {
  color: #ffffff !important;
}

.waiter-interface .code-item,
.waiter-interface .code-item * {
  color: #0f172a !important;
}

.waiter-interface .code-item .code {
  color: var(--waiter-primary) !important;
}

.waiter-interface #generate-takeout-code-btn,
.waiter-interface #generate-takeout-code-btn *,
.waiter-interface button#generate-takeout-code-btn.primary-button,
.waiter-interface button#generate-takeout-code-btn.primary-button * {
  color: #4c1d95 !important;
}

.waiter-interface #generate-takeout-code-btn {
  background: #ffffff !important;
}

.waiter-interface #takeout-code-modal .modal-body,
.waiter-interface #takeout-code-modal .modal-body *,
.waiter-interface #takeout-code-modal .code-card,
.waiter-interface #takeout-code-modal .code-card *,
.waiter-interface #takeout-code-modal .code-details,
.waiter-interface #takeout-code-modal .code-details *,
.waiter-interface #takeout-code-modal .code-instructions,
.waiter-interface #takeout-code-modal .code-instructions *,
.waiter-interface #takeout-code-modal .code-instructions li {
  color: #212121 !important;
}

.waiter-interface #takeout-code-modal .code-value {
  color: #667eea !important;
}

.waiter-interface #takeout-code-modal .code-details span,
.waiter-interface #takeout-code-modal .modal-header,
.waiter-interface #takeout-code-modal .modal-header *,
.waiter-interface #takeout-code-modal #takeout-code-gotit-btn,
.waiter-interface #takeout-code-modal #takeout-code-gotit-btn * {
  color: #ffffff !important;
}

body.dark-theme.waiter-interface .table-card,
body.dark-theme.waiter-interface .generator-form,
body.dark-theme.waiter-interface .generated-codes,
body.dark-theme.waiter-interface .validator-form,
body.dark-theme.waiter-interface .validation-result,
body.dark-theme.waiter-interface .shift-card,
body.dark-theme.waiter-interface .profile-form,
body.dark-theme.waiter-interface .quick-actions,
body.dark-theme.waiter-interface .modal-content,
body.dark-theme.waiter-interface .settings-section,
body.dark-theme.waiter-interface .setting-item,
body.dark-theme.waiter-interface .password-section {
  background-color: #16213e !important;
  color: #e5e7eb !important;
}

body.dark-theme.waiter-interface .table-card *,
body.dark-theme.waiter-interface .generator-form *,
body.dark-theme.waiter-interface .generated-codes *,
body.dark-theme.waiter-interface .validator-form *,
body.dark-theme.waiter-interface .validation-result *,
body.dark-theme.waiter-interface .shift-card *,
body.dark-theme.waiter-interface .profile-form *,
body.dark-theme.waiter-interface .quick-actions *,
body.dark-theme.waiter-interface .modal-content *,
body.dark-theme.waiter-interface .settings-section *,
body.dark-theme.waiter-interface .setting-item *,
body.dark-theme.waiter-interface .password-section * {
  color: #e5e7eb !important;
}
