/* Upload Details Widget - Fixed at bottom right corner */
.upload-details-widget {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  position: fixed !important;
  bottom: 0px !important;
  right: 20px !important;
  max-width: 400px;
  width:90%;
  background: transparent;
  box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.15);
  z-index: 99999 !important;
  transition: all 0.3s ease;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.upload-details-widget.minimized {
  max-width: 400px;
  width:90%;
}

.upload-details-widget.minimized .upload-details-body {
  max-height: 0px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
}

/* Header */
.upload-details-header {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  background: rgba(var(--bs-primary-rgb), 0.7);
  backdrop-filter: blur(5px);
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.upload-details-header:hover {
  background: rgba(var(--bs-primary-rgb), 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.upload-details-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.upload-details-title i {
  font-size: 16px;
}

.upload-details-toggle {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.upload-details-widget.minimized .upload-details-toggle {
  transform: rotate(180deg);
}

/* Body */
.upload-details-body {
  overflow-y: auto;
  background: #f8f9fa;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 1;
}

/* Upload Task Info */
.upload-task-info {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid rgba(102, 126, 234, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.upload-task-info i {
  color: var(--bs-primary);
  font-size: 16px;
}

.upload-task-info span {
  flex: 1;
  line-height: 1.4;
}

/* Summary Section */
.upload-summary {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #e9ecef;
}

.upload-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 8px;
}

.upload-stat {
  text-align: center;
}

.upload-stat-value {
  font-size: 20px;
  font-weight: bold;
  display: block;
}

.upload-stat-value.success {
  color: #28a745;
}

.upload-stat-value.error {
  color: #dc3545;
}

.upload-stat-value.pending {
  color: #ffc107;
}

.upload-stat-label {
  font-size: 12px;
  color: #6c757d;
  display: block;
  margin-top: 4px;
}

/* Upload Items List */
.upload-items-list {
  max-height: 200px;
  overflow-y: auto;
}

.upload-item {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.upload-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color:black;
}

.upload-item-name {
  font-size: 13px;
}

.upload-item-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.upload-item-status.pending {
  background: #fff3cd;
  color: #856404;
}

.upload-item-status.uploading {
  background: #cfe2ff;
  color: #084298;
}

.upload-item-status.success {
  background: #d1e7dd;
  color: #0f5132;
}

.upload-item-status.error {
  background: #f8d7da;
  color: #842029;
}

.upload-item-progress {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.upload-item-progress-fill {
  height: 100%;
  background: #667eea;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.upload-item-info {
  font-size: 11px;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
}

/* Scrollbar Styling */
.upload-details-body::-webkit-scrollbar {
  width: 6px;
}

.upload-details-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.upload-details-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.upload-details-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Empty State */
.upload-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #6c757d;
}

.upload-empty-state i {
  font-size: 48px;
  color: #dee2e6;
  margin-bottom: 12px;
}

.upload-empty-state-text {
  font-size: 14px;
}

/* Animation for new items */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.upload-item.new {
  animation: slideInUp 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .upload-details-widget {
    width: calc(100% - 40px);
    max-width: 400px;
  }
}