/* starter/styles.css - Modern POS theme */

/* Base styles */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #1a202c;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
}

/* Header */
.h3 {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards */
.card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-body {
  padding: 1.5rem;
}

/* Quick-add buttons */
.quick-add-btn {
  border-radius: 12px;
  transition: all 0.2s ease;
  background: #fff;
  min-width: 100px;
}

.quick-add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: #f8f9fa;
}

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

/* Tables */
.table-sm td, .table-sm th {
  vertical-align: middle;
  padding: 0.75rem 0.5rem;
}

.table thead th {
  background: #667eea;
  color: #fff;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-light {
  background-color: #f8f9fa !important;
}

/* Allow bill color rows to override table styles */
.table tbody tr[style*="background-color"] td {
  background-color: inherit !important;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #0e8073 0%, #2dd96a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,153,142,0.4);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
  transform: translateY(-1px);
}

/* Modal */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 16px 16px 0 0;
  border: none;
}

.modal-title {
  font-weight: 600;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* Sugar buttons (btn-check) */
.btn-check:checked + .btn-outline-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
}

/* Summary card */
.bg-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
  border-radius: 6px;
}

/* Toast/Alert area */
#toast-area .alert {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Download buttons and outline secondary */
.btn-outline-secondary {
  color: #495057;
  border-color: #6c757d;
  background: #fff;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

/* Special styling for header download buttons */
.mb-4 .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.mb-4 .btn-outline-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Form controls */
.form-control:focus,
.form-check-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102,126,234,0.25);
}

.form-control-lg {
  border-radius: 8px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }
  
  .quick-add-btn {
    min-width: 85px;
  }
}
