/* public/css/common.css - 公共样式 */
.upload-area { border: 2px dashed #d1d5db; transition: all 0.3s ease; }
.upload-area:hover, .upload-area.dragover { border-color: #667eea; background-color: #f5f3ff; }
.modal-overlay { background-color: rgba(0, 0, 0, 0.5); }
.menu-btn { transition: all 0.3s ease; }
.menu-btn.active { background: white; color: #8b5cf6; }
.package-toggle svg { width: 14px; height: 14px; }
.package-toggle.expanded { transform: rotate(180deg); }

/* 骑手端样式 */
.nav-btn { border: 1px solid #8b5cf6; color: #8b5cf6; background: transparent; }
.nav-btn:hover { color: #8b5cf6db; }
.deliver-btn { background: #8b5cf6; }
.deliver-btn:hover { background: #7c3aed; }
.delete-btn { color: #ef4444; }
.tab-btn { transition: all 0.3s ease; position: relative; }
.tab-btn.active { background: white; color: #8b5cf6; }
.tab-btn.active .tab-text { font-weight: bold; }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: 0; left: 38%;
  transform: translateX(-50%); width: 28px; height: 3px;
  background: #8b5cf6; border-radius: 1.5px;
}
.upload-photo-btn {
  width: 72px; height: 72px; border: 1px dashed #d1d5db; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; cursor: pointer; transition: all 0.3s ease;
}
.photo-preview { position: relative; display: inline-block; }
.delete-photo {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
  background: #9ca3af; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.photo-upload-area {
  height: 200px; background: #4a494cff; position: relative;
  overflow: hidden; border-radius: 12px; cursor: pointer; transition: all 0.3s ease;
}
.photo-upload-area.dragover { border-color: #667eea; background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%); }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.photo-preview-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-item .barcode-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.7); color: white; font-size: 10px;
  padding: 2px 4px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.processing-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: white;
}

/* 下单页 select 样式 */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 5px center; background-size: 14px; padding-right: 24px;
}
