/**
 * Enhanced QR Scanner Styles
 * Version: 1.0.0
 */

/* Base text colors and styling */
.qr-result-container,
.qr-result-container * {
  color: #333; /* Default text color for all elements */
}

/* Result container */
.qr-result-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Order header */
.qr-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.qr-result-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

/* Section styling */
.qr-result-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.qr-result-section h4 {
  font-size: 18px;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
  color: #333;
}

/* Status badges */
.order-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  color: white !important; /* Force white text with !important */
  background-color: #6c757d;
}

.order-status.completed {
  background-color: #28a745;
}

.order-status.processing {
  background-color: #007bff;
}

.order-status.on-hold {
  background-color: #ffc107;
  color: #000 !important; /* Force black text with !important for light backgrounds */
}

.order-status.cancelled {
  background-color: #dc3545;
}

.order-status.refunded {
  background-color: #6f42c1;
}

/* Customer info */
.customer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.customer-detail {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}

.customer-detail strong {
  display: block;
  margin-bottom: 4px;
  color: #555;
}

.customer-detail span {
  color: #333;
}

/* Product list */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid #2271b1;
  background: #f9f9f9;
  border-radius: 4px;
}

.product-name {
  flex-grow: 1;
  font-weight: 500;
  color: #333;
}

.product-quantity {
  color: #666;
  font-weight: 500;
}

/* Product badges */
.product-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: white !important; /* Force white text with !important */
}

/* Meta items */
.product-meta {
  width: 100%;
  margin-top: 5px;
  font-size: 12px;
}

.meta-item {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 5px;
  background: #f0f0f0;
  border-radius: 3px;
  color: #555;
}

/* Ticket type badges */
.badge-standard {
  background-color: #007bff;
}

.badge-general {
  background-color: #28a745;
}

.badge-vip {
  background-color: #dc3545;
}

.badge-volunteer {
  background-color: #795548;
}

.badge-concession {
  background-color: #fd7e14;
}

.badge-youth {
  background-color: #6f42c1;
}

.badge-senior {
  background-color: #20c997;
}

.badge-child {
  background-color: #17a2b8;
}

.badge-family {
  background-color: #6610f2;
}

.badge-special-guest {
  background-color: #9c27b0;
}

/* Zone badges */
.zone-other {
  background-color: #6c757d;
}

.zone-camping {
  background-color: #c0392b;
}

.zone-e1,
.zone-event1 {
  background-color: #8e44ad;
}

.zone-e2,
.zone-event2 {
  background-color: #d35400;
}

.zone-e3,
.zone-event3 {
  background-color: #27ae60;
}

.zone-e4,
.zone-event4 {
  background-color: #2980b9;
}

.zone-accessibility {
  background-color: #9b59b6;
}

/* Character list */
.character-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.character-list li {
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 4px;
  border-left: 4px solid #9c27b0;
}

.character-list li strong {
  color: #333;
}

.char-id,
.char-status {
  color: #555;
  font-size: 13px;
}

/* Order notes */
.order-notes {
  background: #fff8dc;
  padding: 15px;
  border-radius: 6px;
}

.note-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

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

.note-content {
  margin-bottom: 5px;
  color: #333;
}

.note-date {
  font-size: 12px;
  color: #777;
}

/* Check-in info */
.checkin-info {
  background: #f0f7ff;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.checkin-detail {
  margin-bottom: 5px;
  color: #333;
}

/* Check-in history styling */
.checkin-history {
  margin-top: 10px;
}

.checkin-history-list {
  margin-top: 15px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

.checkin-history-list h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.checkin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.checkin-table th {
  background: #2271b1;
  color: white;
  text-align: left;
  padding: 8px;
}

.checkin-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.checkin-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.checkin-table tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Navigation buttons */
.scanner-navigation {
  margin-top: 20px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2271b1;
  color: #fff !important; /* Force white text with !important */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.button:hover {
  background-color: #135e96;
}

.return-to-scanner {
  background-color: #6c757d;
}

.return-to-scanner:hover {
  background-color: #5a6268;
}

/* Order meta info */
.order-meta {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
}

.meta-label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

/* Message styling */
.message {
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  text-align: center;
  color: #333;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Address info */
.address-info p {
  margin: 5px 0;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .customer-info {
    grid-template-columns: 1fr;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-badge {
    margin-top: 5px;
  }

  .checkin-table {
    font-size: 12px;
  }

  .checkin-table th,
  .checkin-table td {
    padding: 6px 4px;
  }
}
