/* File Upload Component Styles */
.file-upload-container {
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.file-upload-header {
  padding: 15px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
}

.file-upload-header h3 {
  margin: 0;
  color: #333;
  font-size: 16px;
}

.file-upload-content {
  padding: 20px;
}

.file-drop-zone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.file-drop-zone:hover {
  border-color: #007cba;
  background: #f0f8ff;
}

.file-drop-zone.drag-over {
  border-color: #007cba;
  background: #e6f3ff;
  transform: scale(1.02);
}

.file-drop-zone .upload-icon {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 15px;
}

.file-drop-zone.drag-over .upload-icon {
  color: #007cba;
}

.file-drop-zone p {
  margin: 10px 0;
  color: #666;
}

.file-drop-zone .file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fff;
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-icon {
  font-size: 24px;
  margin-right: 12px;
  min-width: 30px;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  word-break: break-word;
}

.file-meta {
  font-size: 12px;
  color: #666;
}

.file-actions {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.file-action-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  color: #666;
  transition: all 0.2s ease;
}

.file-action-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.file-action-btn.delete {
  color: #dc3545;
  border-color: #dc3545;
}

.file-action-btn.delete:hover {
  background: #dc3545;
  color: #fff;
}

.upload-progress {
  margin-top: 15px;
}

.progress-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-filename {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.progress-bar {
  width: 100px;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin: 0 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #007cba;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-status {
  font-size: 12px;
  color: #666;
  min-width: 60px;
  text-align: right;
}

.progress-status.success {
  color: #28a745;
}

.progress-status.error {
  color: #dc3545;
}

.file-upload-info {
  margin-top: 15px;
  padding: 10px;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
}

.no-files-message {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .file-upload-content {
    padding: 15px;
  }

  .file-drop-zone {
    padding: 30px 15px;
  }

  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-actions {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-end;
  }

  .progress-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-bar {
    width: 100%;
    margin: 5px 0;
  }
}
