/* Chat File Upload Styles */

.file-upload-area {
  background: #f9fafb;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.file-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.file-upload-header span {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.close-upload-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-upload-btn:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.file-drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.file-drop-zone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.file-drop-zone.drag-over {
  border-color: #3b82f6;
  background: #dbeafe;
  transform: scale(1.02);
}

.file-drop-zone svg {
  color: #9ca3af;
  margin-bottom: 12px;
}

.file-drop-zone p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.file-browse-link {
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.file-browse-link:hover {
  color: #2563eb;
}

.uploaded-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.uploaded-file-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.file-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

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

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.remove-file-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-file-btn:hover {
  background: #fca5a5;
  transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .file-drop-zone {
    padding: 20px;
  }

  .uploaded-file-item {
    padding: 10px;
  }

  .file-icon {
    width: 36px;
    height: 36px;
  }
}

/* File upload button in input area */
.file-upload-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-btn:hover {
  background: #f3f4f6;
  color: #3b82f6;
}

.file-upload-btn.has-files {
  color: #3b82f6;
  background: #eff6ff;
}
