/* ===== Bulk Transfer Modal Styles ===== */

.bulk-transfer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.bulk-transfer-modal.active {
  display: block;
}

.bulk-transfer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.bulk-transfer-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a24;
  border: 1px solid #3a3a4a;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.bulk-transfer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #2a2a3a;
}

.bulk-transfer-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #e0e0e0;
}

.bulk-transfer-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bulk-transfer-close:hover {
  background: #2a2a3a;
  color: #fff;
}

.bulk-transfer-body {
  padding: 1.5rem;
  max-height: calc(85vh - 80px);
  overflow-y: auto;
}

/* Selected Items List */
.selected-items-header {
  margin-bottom: 1rem;
}

.selected-items-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.selected-items-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  background: #15151f;
}

.selected-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: #1a1a24;
  border: 1px solid #2a2a3a;
}

.selected-item:last-child {
  margin-bottom: 0;
}

.selected-item-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #2a2a3a;
}

.selected-item-info {
  flex: 1;
}

.selected-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.25rem;
}

.selected-item-collection {
  font-size: 0.85rem;
  color: #888;
}

/* Recipient Input */
.recipient-input-group {
  margin-bottom: 1.5rem;
}

.recipient-input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.recipient-input {
  width: 100%;
  padding: 0.75rem;
  background: #15151f;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s ease;
}

.recipient-input:focus {
  outline: none;
  border-color: #4299e1;
}

.input-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

/* Progress View */
.transfer-progress-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.transfer-progress-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: #e0e0e0;
}

.progress-summary {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4299e1;
}

.transfer-progress-container {
  margin-bottom: 1.5rem;
}

.transfer-progress-bar {
  width: 100%;
  height: 12px;
  background: #15151f;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2a2a3a;
}

.transfer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4299e1 0%, #3a7edf 100%);
  transition: width 0.3s ease;
  border-radius: 6px;
}

.transfer-status-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.transfer-status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #15151f;
  border: 1px solid #2a2a3a;
  transition: all 0.2s ease;
}

.transfer-status-item.pending {
  border-color: #4299e1;
  background: rgba(66, 153, 225, 0.1);
}

.transfer-status-item.success {
  border-color: #48bb78;
  background: rgba(72, 187, 120, 0.1);
}

.transfer-status-item.failed {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.status-info {
  flex: 1;
}

.status-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.25rem;
}

.status-message {
  font-size: 0.85rem;
  color: #888;
}

.transfer-warning {
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 0.9rem;
  text-align: center;
}

/* Complete View */
.transfer-complete-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.complete-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.transfer-complete-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #e0e0e0;
}

.transfer-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-stat {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #2a2a3a;
}

.summary-stat.success {
  background: rgba(72, 187, 120, 0.1);
  border-color: #48bb78;
}

.summary-stat.failed {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.summary-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.summary-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #e0e0e0;
}

.transfer-results-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.results-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.75rem;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid #2a2a3a;
}

.result-item.failed {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.result-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
}

.result-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.25rem;
}

.result-error {
  font-size: 0.85rem;
  color: #ef4444;
}

.no-failures {
  text-align: center;
  padding: 2rem;
  color: #48bb78;
  font-size: 1.1rem;
}

/* Actions */
.bulk-transfer-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.bulk-transfer-actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-weight: 600;
}

.bulk-transfer-actions .btn-primary {
  background: linear-gradient(135deg, #4a9eff 0%, #3a7edf 100%);
  color: white;
}

.bulk-transfer-actions .btn-primary:hover {
  background: linear-gradient(135deg, #3a8eef 0%, #2a6ecf 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.bulk-transfer-actions .btn-secondary {
  background: #2a2a3a;
  color: #e0e0e0;
  border: 1px solid #3a3a4a;
}

.bulk-transfer-actions .btn-secondary:hover {
  background: #3a3a4a;
  border-color: #4a4a5a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bulk-transfer-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .bulk-transfer-header {
    padding: 1rem;
  }
  
  .bulk-transfer-body {
    padding: 1rem;
  }
  
  .selected-items-list {
    max-height: 150px;
  }
  
  .transfer-summary {
    flex-direction: column;
  }
  
  .bulk-transfer-actions {
    flex-direction: column;
  }
  
  .bulk-transfer-actions .btn {
    width: 100%;
  }
}
