/* OCMarket File Uploader - Enhanced File Upload Styles */

/* Main Wrapper */
.ocm-upload-wrapper {
  position: relative;
  margin-bottom: 5px;
}

/* Dropzone Area */
.ocm-dropzone {
  width: 100%;
  border: 2px dashed #c8d6e5;
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ocm-dropzone:hover {
  border-color: #3498db;
  background: linear-gradient(135deg, #edf4fc 0%, #dce8f5 100%);
}

.ocm-dropzone.ocm-dragover {
  border-color: #2ecc71;
  background: linear-gradient(135deg, #e8f8f0 0%, #d5f5e3 100%);
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.15);
}

.ocm-dropzone-icon {
  font-size: 36px;
  color: #a0b4c8;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.ocm-dropzone:hover .ocm-dropzone-icon {
  color: #3498db;
  transform: translateY(-3px);
}

.ocm-dropzone.ocm-dragover .ocm-dropzone-icon {
  color: #2ecc71;
  transform: translateY(-5px) scale(1.1);
}

.ocm-dropzone-text {
  font-size: 14px;
  color: #5a6c7d;
  margin-bottom: 6px;
  font-weight: 500;
}

.ocm-dropzone-or {
  font-size: 12px;
  color: #95a5b6;
  margin-bottom: 8px;
  display: block;
}

/* Browse Button */
.ocm-browse-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.ocm-browse-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.ocm-browse-btn:active {
  transform: translateY(0);
}

/* Simple Upload Button (no drag & drop) */
.ocm-upload-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  width: 100%;
  display: block;
  text-align: center;
}

.ocm-upload-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.ocm-upload-btn i {
  margin-right: 6px;
}

/* Progress Bar */
.ocm-progress-container {
  margin-top: 10px;
  display: none;
}

.ocm-progress-bar-track {
  width: 100%;
  height: 6px;
  background: #e8ecf1;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.ocm-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.ocm-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: ocm-shimmer 1.5s infinite;
}

@keyframes ocm-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.ocm-progress-text {
  font-size: 11px;
  color: #7f8c9b;
  text-align: right;
  margin-top: 3px;
}

/* File List */
.ocm-file-list {
  margin-top: 8px;
}

.ocm-file-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fb;
  border: 1px solid #e4e9ef;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  animation: ocm-fadeIn 0.3s ease;
}

@keyframes ocm-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ocm-file-item:hover {
  background: #eef2f7;
  border-color: #d0d8e2;
}

.ocm-file-preview {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  margin-right: 10px;
  object-fit: cover;
  border: 1px solid #e0e5eb;
  flex-shrink: 0;
}

.ocm-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.ocm-file-icon.ocm-icon-pdf {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.ocm-file-icon.ocm-icon-doc {
  background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
}

.ocm-file-icon.ocm-icon-xls {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
}

.ocm-file-icon.ocm-icon-zip {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.ocm-file-info {
  flex: 1;
  min-width: 0;
}

.ocm-file-name {
  font-size: 13px;
  font-weight: 500;
  color: #34495e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ocm-file-size {
  font-size: 11px;
  color: #95a5a6;
  margin-top: 1px;
}

.ocm-file-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #bdc3c7;
  font-size: 14px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.ocm-file-remove:hover {
  background: #fee2e2;
  color: #e74c3c;
}

/* Allowed Extensions Info */
.ocm-upload-info {
  font-size: 11px;
  color: #95a5b6;
  margin-top: 6px;
  padding: 0 2px;
  line-height: 1.5;
}

.ocm-upload-info i {
  margin-right: 3px;
  color: #b0bec5;
}

/* Status Messages */
.ocm-upload-success {
  color: #27ae60;
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  animation: ocm-fadeIn 0.3s ease;
}

.ocm-upload-success i {
  margin-right: 5px;
}

.ocm-upload-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  animation: ocm-fadeIn 0.3s ease;
}

.ocm-upload-error i {
  margin-right: 5px;
}

/* File Item uploading state */
.ocm-file-item.ocm-uploading {
  opacity: 0.7;
}

.ocm-file-item.ocm-uploading .ocm-file-remove {
  display: none;
}

/* Responsive */
@media (max-width: 767px) {
  .ocm-dropzone {
    padding: 20px 10px;
  }

  .ocm-dropzone-icon {
    font-size: 28px;
  }

  .ocm-dropzone-text {
    font-size: 13px;
  }

  .ocm-file-preview {
    width: 32px;
    height: 32px;
  }

  .ocm-file-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}